aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/intel-pt.h
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2016-09-23 17:38:42 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-09-29 11:17:03 -0300
commitfa8025c37454501a2df4a90ae84ff01f4aff8ba8 (patch)
treeab928e5393f0da60cefc36d1901c2e16defdfc10 /tools/perf/util/intel-pt.h
parentperf intel-pt: Fix snapshot overlap detection decoder errors (diff)
downloadwireguard-linux-fa8025c37454501a2df4a90ae84ff01f4aff8ba8.tar.xz
wireguard-linux-fa8025c37454501a2df4a90ae84ff01f4aff8ba8.zip
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>
Diffstat (limited to 'tools/perf/util/intel-pt.h')
-rw-r--r--tools/perf/util/intel-pt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/intel-pt.h b/tools/perf/util/intel-pt.h
index 0065949df693..8b8356233e6a 100644
--- a/tools/perf/util/intel-pt.h
+++ b/tools/perf/util/intel-pt.h
@@ -34,6 +34,7 @@ enum {
INTEL_PT_TSC_CTC_N,
INTEL_PT_TSC_CTC_D,
INTEL_PT_CYC_BIT,
+ INTEL_PT_MAX_NONTURBO_RATIO,
INTEL_PT_AUXTRACE_PRIV_MAX,
};