From: sashiko-bot@kernel.org
To: "Ian Rogers" <irogers@google.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2] perf evlist: Reparent first_wildcard_match when evsels are removed
Date: Fri, 04 Dec 2026 06:29:20 +0000 [thread overview]
Message-ID: <sashiko-outbox-249225@kernel.org> (raw)
In-Reply-To: <20261204061226.2483613-1-irogers@google.com>
> When a wildcard event expands across multiple PMUs (such as hybrid core
> PMUs cpu_atom/cpu_core or multiple uncore PMU instances), the later
> evsels point their first_wildcard_match field to the first matched
> evsel. During stat aggregation and display, evsel__merge_aliases() merges
> aliases into their first_wildcard_match and print_counter_aggrdata()
> skips any evsel with a non-NULL first_wildcard_match (for uncore events
> and hybrid events under --hybrid-merge).
>
> If that first matched evsel is subsequently removed from the evlist --
> either by __perf_evlist__propagate_maps() during perf_evlist__set_maps()
> or perf_evlist__add() when its CPU map intersection with -C or a
> per-event cpu= term is empty, or via evlist__remove() when opening fails
> -- the remaining aliases keep a stale first_wildcard_match pointing to
> the removed evsel. As a result, they are neither merged nor displayed
> (and evlist__expand_cgroup() copies a NULL priv pointer from the removed
> [ ... ]
> evlist__remove(), empty-CPU map propagation via evlist__create_maps(),
> and empty-CPU map propagation during evlist__splice_list_tail().
>
> Fixes: 137359b7895f ("perf parse-events: Use wildcard processing to set an event to merge into")
> Signed-off-by: Ian Rogers <irogers@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204061226.2483613-1-irogers@google.com?part=1
prev parent reply other threads:[~2026-12-04 6:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 6:12 [PATCH v2] perf evlist: Reparent first_wildcard_match when evsels are removed Ian Rogers
2026-12-04 6:29 ` sashiko-bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=sashiko-outbox-249225@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=irogers@google.com \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox