lkml.org 
[lkml]   [2023]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subject[PATCH v2 0/2] Fixes from evsel__group_pmu_name asan error
From
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.

v2: Address review comments/feedback from Adrian Hunter
<adrian.hunter@intel.com>.

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(-)

--
2.40.1.698.g37aff9b760-goog

\
 
 \ /
  Last update: 2023-05-23 20:39    [W:0.037 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site