]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Add support for recording the max non-turbo ratio
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 23 Sep 2016 14:38:42 +0000 (17:38 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 29 Sep 2016 14:17:03 +0000 (11:17 -0300)
commit937e8249e5c08c745e71dd4dc4248253035d9bee
treeab928e5393f0da60cefc36d1901c2e16defdfc10
parent3553a93d4a483a5510e11d2a24dff9ce9ba677a5
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 <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: http://lkml.kernel.org/r/1474641528-18776-11-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/x86/util/intel-pt.c
tools/perf/util/intel-pt.c
tools/perf/util/intel-pt.h