Skip to content

Fixes from evsel__group_pmu_name asan error

Ian Rogers linux-perf-users lkml 3 versions – Applied

Status from this message: Thanks, applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyApplied
  2. v22 patches 0 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2perf evsel: evsel__group_pmu_name fixestools/perf/util/evsel.c tools/perf/util/evsel.h tools/perf/util/parse-events.c+67 -360 replies
2/2perf evsel: for_each_group fixestools/perf/util/evsel.h tools/perf/util/evsel_fprintf.c+17 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] Fixes from evsel__group_pmu_name asan error

evsel__group_pmu_name triggered an asan error as a list_head was cast to an evsel, when it was the head, and the accessed as if it were a full evsel. Further investigation showed problematic list iteration for evsel__group_pmu_name whilst the list was being sorted so switch to pre-computation.

v3: Rebase on perf-tools-next (branch getting ready for 6.5) rather
than perf-tools (fixes for 6.4).
v2: Address review comments/feedback from Adrian Hunter
<[email protected]>.

Ian Rogers (2):
perf evsel: evsel__group_pmu_name fixes
perf evsel: for_each_group fixes

 tools/perf/util/evsel.c         | 31 ++++-----------
 tools/perf/util/evsel.h         | 26 +++++++-----
 tools/perf/util/evsel_fprintf.c |  1 +
 tools/perf/util/parse-events.c  | 70 +++++++++++++++++++++++++++------
 4 files changed, 84 insertions(+), 44 deletions(-)
Signature · 1 line
2.41.0.rc0.172.g3f132b7071-goog