diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2015-07-17 19:33:54 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2015-08-24 17:46:43 -0300 |
commit | 11fa7cb86b56d3610043ba2ac6cbd81feab4b7c4 (patch) | |
tree | 873474f97b28cd777ec81971614ef6c3c5b0e5f7 /tools/perf/util/intel-pt-decoder | |
parent | 3d49807870f08d6f3406b77efd94bb3788372162 (diff) | |
download | talos-obmc-linux-11fa7cb86b56d3610043ba2ac6cbd81feab4b7c4.tar.gz talos-obmc-linux-11fa7cb86b56d3610043ba2ac6cbd81feab4b7c4.zip |
perf tools: Pass Intel PT information for decoding MTC and CYC
Record additional information in the AUXTRACE_INFO event in preparation
for decoding MTC and CYC packets. Pass the information to the decoder.
The AUXTRACE_INFO record can be extended by using the size to indicate
the presence of new members.
The additional information includes PMU config bit positions and the TSC
to CTC (hardware crystal clock) ratio needed to decode MTC packets.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1437150840-31811-20-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-decoder')
-rw-r--r-- | tools/perf/util/intel-pt-decoder/intel-pt-decoder.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.h b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.h index cbf57044c385..56cc47baca11 100644 --- a/tools/perf/util/intel-pt-decoder/intel-pt-decoder.h +++ b/tools/perf/util/intel-pt-decoder/intel-pt-decoder.h @@ -87,6 +87,9 @@ struct intel_pt_params { uint64_t period; enum intel_pt_period_type period_type; unsigned max_non_turbo_ratio; + unsigned int mtc_period; + uint32_t tsc_ctc_ratio_n; + uint32_t tsc_ctc_ratio_d; }; struct intel_pt_decoder; |