diff options
author | Mathieu Poirier <mathieu.poirier@linaro.org> | 2016-01-14 16:46:15 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-29 15:14:30 -0500 |
commit | 14a05e13a044c1cd6aaa3eb1a5fcdad7b4f6c990 (patch) | |
tree | c17fc39cf6c93e62fe2699138e8f6351ba74ddf5 /tools/perf/arch | |
parent | a639a623904cc526cebd7679debf86e5c8e5590b (diff) |
perf auxtrace: Add perf_evlist pointer to *info_priv_size()
On some architecture the size of the private header may be dependent on
the number of tracers used in the session. As such adding a "struct
perf_evlist *" parameter, which should contain all the required
information.
Also adjusting the existing client of the interface to take the new
parameter into account.
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Al Grant <al.grant@arm.com>
Cc: Chunyan Zhang <zhang.chunyan@linaro.org>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-doc@vger.kernel.org
Cc: Mike Leach <mike.leach@arm.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rabin Vincent <rabin@rab.in>
Cc: Tor Jeremiassen <tor@ti.com>
Link: http://lkml.kernel.org/r/1452807977-8069-22-git-send-email-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch')
-rw-r--r-- | tools/perf/arch/x86/util/intel-bts.c | 4 | ||||
-rw-r--r-- | tools/perf/arch/x86/util/intel-pt.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/arch/x86/util/intel-bts.c b/tools/perf/arch/x86/util/intel-bts.c index 8d8150f1cf9b..d66f9ad4df2e 100644 --- a/tools/perf/arch/x86/util/intel-bts.c +++ b/tools/perf/arch/x86/util/intel-bts.c | |||
@@ -60,7 +60,9 @@ struct branch { | |||
60 | u64 misc; | 60 | u64 misc; |
61 | }; | 61 | }; |
62 | 62 | ||
63 | static size_t intel_bts_info_priv_size(struct auxtrace_record *itr __maybe_unused) | 63 | static size_t |
64 | intel_bts_info_priv_size(struct auxtrace_record *itr __maybe_unused, | ||
65 | struct perf_evlist *evlist __maybe_unused) | ||
64 | { | 66 | { |
65 | return INTEL_BTS_AUXTRACE_PRIV_SIZE; | 67 | return INTEL_BTS_AUXTRACE_PRIV_SIZE; |
66 | } | 68 | } |
diff --git a/tools/perf/arch/x86/util/intel-pt.c b/tools/perf/arch/x86/util/intel-pt.c index f05daacc9e78..6f7d453b0e32 100644 --- a/tools/perf/arch/x86/util/intel-pt.c +++ b/tools/perf/arch/x86/util/intel-pt.c | |||
@@ -273,7 +273,9 @@ intel_pt_pmu_default_config(struct perf_pmu *intel_pt_pmu) | |||
273 | return attr; | 273 | return attr; |
274 | } | 274 | } |
275 | 275 | ||
276 | static size_t intel_pt_info_priv_size(struct auxtrace_record *itr __maybe_unused) | 276 | static size_t |
277 | intel_pt_info_priv_size(struct auxtrace_record *itr __maybe_unused, | ||
278 | struct perf_evlist *evlist __maybe_unused) | ||
277 | { | 279 | { |
278 | return INTEL_PT_AUXTRACE_PRIV_SIZE; | 280 | return INTEL_PT_AUXTRACE_PRIV_SIZE; |
279 | } | 281 | } |