Skip to content

perf auxtrace: Refactor with evsel__is_aux_event()

Leo Yan linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9perf auxtrace: Use evsel__is_aux_event() for checking AUX eventtools/perf/util/auxtrace.c+2 -21 reply
2/9perf auxtrace: Remove unused 'pmu' pointer from struct auxtrace_recordtools/perf/arch/arm/util/cs-etm.c tools/perf/arch/arm64/util/arm-spe.c tools/perf/arch/arm64/util/hisi-ptt.c +3 more+0 -63 replies
3/9perf auxtrace: Refactor auxtrace__evsel_is_auxtrace()tools/perf/util/arm-spe.c tools/perf/util/auxtrace.c tools/perf/util/auxtrace.h +5 more+3 -633 replies
4/9perf arm-spe: Remove the 'pmu_type' fieldtools/perf/util/arm-spe.c+1 -30 replies
5/9perf cs-etm: Remove the 'pmu_type' fieldtools/perf/util/cs-etm.c+1 -30 replies
6/9perf hisi-ptt: Remove the unused 'pmu_type' fieldtools/perf/util/hisi-ptt.c+0 -20 replies
7/9perf intel-bts: Remove the 'pmu_type' fieldtools/perf/util/intel-bts.c+1 -30 replies
8/9perf intel-pt: Remove the 'pmu_type' fieldtools/perf/util/intel-pt.c+17 -190 replies
9/9perf s390-cpumsf: Remove the unused 'pmu_type' fieldtools/perf/util/s390-cpumsf.c+0 -20 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchAdrian Hunter
1/9R-b
2/9R-b
3/9
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [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(-)
Signature · 1 line
2.34.1