trace-cmd library: Add tracecmd_get_tsc2nsec() API

Add tracecmd_get_tsc2nsec() to be able to extract the multiplier, shift
and offset used to calculate the nanoseconds from the raw timestamp.

Link: https://lore.kernel.org/linux-trace-devel/20230606184526.7d7a48e4@gandalf.local.home

Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
4 files changed