Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

perf auxtrace: Remove unused 'pmu' pointer from struct auxtrace_record

The 'pmu' pointer in the auxtrace_record structure is not used after
support multiple AUX events, remove it.

Reviewed-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Leo Yan <leo.yan@arm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mike Leach <mike.leach@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Suzuki Poulouse <suzuki.poulose@arm.com>
Cc: coresight@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
Link: https://lore.kernel.org/r/20240806204130.720977-3-leo.yan@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Leo Yan and committed by
Arnaldo Carvalho de Melo
d5726f1c c87826dd

-6
-1
tools/perf/arch/arm/util/cs-etm.c
··· 888 888 } 889 889 890 890 ptr->cs_etm_pmu = cs_etm_pmu; 891 - ptr->itr.pmu = cs_etm_pmu; 892 891 ptr->itr.parse_snapshot_options = cs_etm_parse_snapshot_options; 893 892 ptr->itr.recording_options = cs_etm_recording_options; 894 893 ptr->itr.info_priv_size = cs_etm_info_priv_size;
-1
tools/perf/arch/arm64/util/arm-spe.c
··· 514 514 } 515 515 516 516 sper->arm_spe_pmu = arm_spe_pmu; 517 - sper->itr.pmu = arm_spe_pmu; 518 517 sper->itr.snapshot_start = arm_spe_snapshot_start; 519 518 sper->itr.snapshot_finish = arm_spe_snapshot_finish; 520 519 sper->itr.find_snapshot = arm_spe_find_snapshot;
-1
tools/perf/arch/arm64/util/hisi-ptt.c
··· 174 174 } 175 175 176 176 pttr->hisi_ptt_pmu = hisi_ptt_pmu; 177 - pttr->itr.pmu = hisi_ptt_pmu; 178 177 pttr->itr.recording_options = hisi_ptt_recording_options; 179 178 pttr->itr.info_priv_size = hisi_ptt_info_priv_size; 180 179 pttr->itr.info_fill = hisi_ptt_info_fill;
-1
tools/perf/arch/x86/util/intel-bts.c
··· 434 434 } 435 435 436 436 btsr->intel_bts_pmu = intel_bts_pmu; 437 - btsr->itr.pmu = intel_bts_pmu; 438 437 btsr->itr.recording_options = intel_bts_recording_options; 439 438 btsr->itr.info_priv_size = intel_bts_info_priv_size; 440 439 btsr->itr.info_fill = intel_bts_info_fill;
-1
tools/perf/arch/x86/util/intel-pt.c
··· 1197 1197 } 1198 1198 1199 1199 ptr->intel_pt_pmu = intel_pt_pmu; 1200 - ptr->itr.pmu = intel_pt_pmu; 1201 1200 ptr->itr.recording_options = intel_pt_recording_options; 1202 1201 ptr->itr.info_priv_size = intel_pt_info_priv_size; 1203 1202 ptr->itr.info_fill = intel_pt_info_fill;
-1
tools/perf/util/auxtrace.h
··· 411 411 int (*read_finish)(struct auxtrace_record *itr, int idx); 412 412 unsigned int alignment; 413 413 unsigned int default_aux_sample_size; 414 - struct perf_pmu *pmu; 415 414 struct evlist *evlist; 416 415 }; 417 416