]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf parse-events: Use wildcard processing to set an event to merge into
authorIan Rogers <irogers@google.com>
Tue, 13 May 2025 21:45:02 +0000 (14:45 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 14 May 2025 12:36:24 +0000 (09:36 -0300)
commit137359b7895f61cd07fcdbaf9d195567bde8cc85
tree11143313dcb5485ce651891ff1cf1803f3889273
parent7d45f402d3117e0be6de8a19034249abf7606705
perf parse-events: Use wildcard processing to set an event to merge into

The merge stat code fails for uncore events if they are repeated twice,
for example `perf stat -e clockticks,clockticks -I 1000` as the counts
of the second set of uncore events will be merged into the first
counter.

Reimplement the logic to have a first_wildcard_match so that merged
later events correctly merge into the first wildcard event that they
will be aggregated into.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Chun-Tse Shao <ctshao@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Dr. David Alan Gilbert <linux@treblig.org>
Cc: Howard Chu <howardchu95@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@linaro.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Levi Yun <yeoreum.yun@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Weilin Wang <weilin.wang@intel.com>
Link: https://lore.kernel.org/r/20250513215401.2315949-3-ctshao@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c
tools/perf/util/evsel.h
tools/perf/util/parse-events.c
tools/perf/util/stat-display.c
tools/perf/util/stat.c