public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v1 0/9] perf auxtrace: Refactor with evsel__is_aux_event()
@ 2024-08-06 20:41 Leo Yan
  2024-08-06 20:41 ` [PATCH v1 1/9] perf auxtrace: Use evsel__is_aux_event() for checking AUX event Leo Yan
                   ` (8 more replies)
  0 siblings, 9 replies; 17+ messages in thread
From: Leo Yan @ 2024-08-06 20:41 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Namhyung Kim, Ian Rogers, Adrian Hunter,
	James Clark, Suzuki K Poulose, Mike Leach, coresight,
	linux-arm-kernel, linux-kernel, Liang, Kan
  Cc: Leo Yan

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



^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2024-08-30  7:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-06 20:41 [PATCH v1 0/9] perf auxtrace: Refactor with evsel__is_aux_event() Leo Yan
2024-08-06 20:41 ` [PATCH v1 1/9] perf auxtrace: Use evsel__is_aux_event() for checking AUX event Leo Yan
2024-08-09  7:55   ` Adrian Hunter
2024-08-06 20:41 ` [PATCH v1 2/9] perf auxtrace: Remove unused 'pmu' pointer from struct auxtrace_record Leo Yan
2024-08-09  8:02   ` Adrian Hunter
2024-08-28 21:16     ` Arnaldo Carvalho de Melo
2024-08-30  7:32       ` Leo Yan
2024-08-06 20:41 ` [PATCH v1 3/9] perf auxtrace: Refactor auxtrace__evsel_is_auxtrace() Leo Yan
2024-08-08 12:58   ` Adrian Hunter
2024-08-09 10:08     ` James Clark
2024-08-09 10:57       ` Leo Yan
2024-08-06 20:41 ` [PATCH v1 4/9] perf arm-spe: Remove the 'pmu_type' field Leo Yan
2024-08-06 20:41 ` [PATCH v1 5/9] perf cs-etm: " Leo Yan
2024-08-06 20:41 ` [PATCH v1 6/9] perf hisi-ptt: Remove the unused " Leo Yan
2024-08-06 20:41 ` [PATCH v1 7/9] perf intel-bts: Remove the " Leo Yan
2024-08-06 20:41 ` [PATCH v1 8/9] perf intel-pt: " Leo Yan
2024-08-06 20:41 ` [PATCH v1 9/9] perf s390-cpumsf: Remove the unused " Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox