perf intel-pt: Add support for recording the max non-turbo ratio
authorAdrian Hunter <[email protected]>
Fri, 23 Sep 2016 14:38:42 +0000 (17:38 +0300)
committerArnaldo Carvalho de Melo <[email protected]>
Thu, 29 Sep 2016 14:17:03 +0000 (11:17 -0300)
commitfa8025c37454501a2df4a90ae84ff01f4aff8ba8
treeab928e5393f0da60cefc36d1901c2e16defdfc10
parent810c398bc09b2f2dfde52a7d2483a710612c5fb8
perf intel-pt: Add support for recording the max non-turbo ratio

Previously the maximum non-turbo ratio was calculated from TSC assuming
a 100 MHz multiplier which is correct for current hardware supporting
Intel PT.  However more recent kernels also now export the value, so use
that in preference to the calculated value.

Signed-off-by: Adrian Hunter <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Masami Hiramatsu <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/arch/x86/util/intel-pt.c
tools/perf/util/intel-pt.c
tools/perf/util/intel-pt.h