[PATCH v1 0/9] perf auxtrace: Refactor with evsel__is_aux_event()
Leo Yan
leo.yan at arm.com
Tue Aug 6 13:41:21 PDT 2024
As the evsel__is_aux_event() function can be used to detect AUX event,
it is not necessary for every AUX module to maintain a 'pmu_type' field
and compare it for detecting AUX event.
This patch series refactors auxtrace with using evsel__is_aux_event(),
and remove unused the 'pmu_type' field from every AXU module's
structure.
This series has been tested on Arm SPE and Intel PT.
Leo Yan (9):
perf auxtrace: Use evsel__is_aux_event() for checking AUX event
perf auxtrace: Remove unused 'pmu' pointer from struct auxtrace_record
perf auxtrace: Refactor auxtrace__evsel_is_auxtrace()
perf arm-spe: Remove the 'pmu_type' field
perf cs-etm: Remove the 'pmu_type' field
perf hisi-ptt: Remove the unused 'pmu_type' field
perf intel-bts: Remove the 'pmu_type' field
perf intel-pt: Remove the 'pmu_type' field
perf s390-cpumsf: Remove the unused 'pmu_type' field
tools/perf/arch/arm/util/cs-etm.c | 1 -
tools/perf/arch/arm64/util/arm-spe.c | 1 -
tools/perf/arch/arm64/util/hisi-ptt.c | 1 -
tools/perf/arch/x86/util/intel-bts.c | 1 -
tools/perf/arch/x86/util/intel-pt.c | 1 -
tools/perf/util/arm-spe.c | 13 +-------
tools/perf/util/auxtrace.c | 8 ++---
tools/perf/util/auxtrace.h | 3 --
tools/perf/util/cs-etm.c | 17 ++--------
tools/perf/util/hisi-ptt.c | 11 -------
tools/perf/util/intel-bts.c | 14 +-------
tools/perf/util/intel-pt.c | 46 ++++++++++-----------------
tools/perf/util/s390-cpumsf.c | 11 -------
13 files changed, 25 insertions(+), 103 deletions(-)
--
2.34.1
More information about the linux-arm-kernel
mailing list