[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240806204130.720977-1-leo.yan@arm.com>
Date: Tue, 6 Aug 2024 21:41:21 +0100
From: Leo Yan <leo.yan@....com>
To: Arnaldo Carvalho de Melo <acme@...nel.org>,
Namhyung Kim <namhyung@...nel.org>,
Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
James Clark <james.clark@...aro.org>,
Suzuki K Poulose <suzuki.poulose@....com>,
Mike Leach <mike.leach@...aro.org>,
coresight@...ts.linaro.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
"Liang, Kan" <kan.liang@...ux.intel.com>
Cc: Leo Yan <leo.yan@....com>
Subject: [PATCH v1 0/9] perf auxtrace: Refactor with evsel__is_aux_event()
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
Powered by blists - more mailing lists