All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Ian Rogers" <irogers@google.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v3] libperf evlist: Update group leader and nr_members in perf_evlist__remove()
Date: Fri, 04 Dec 2026 06:26:42 +0000	[thread overview]
Message-ID: <sashiko-outbox-249214@kernel.org> (raw)
In-Reply-To: <20261204061123.2477233-1-irogers@google.com>

> perf_evlist__remove() deletes the evsel from evlist->entries via
> list_del_init() without updating group leadership or member counts:
> 
> 1. If the removed evsel is a group leader, remaining members in the
>    evlist keep a dangling leader pointer to the detached evsel whose
>    list_head now points to itself. Subsequent group walks such as
>    for_each_group_evsel() in evsel__group_desc() then spin in an
>    infinite loop.
> 
>    This can be triggered directly on hybrid x86 systems (for example,
>    with cpu_core on CPUs 0-15 and cpu_atom on CPUs 16-27):
> 
>      $ perf stat -C 0 -e '{cycles,duration_time}' -- true
> 
>    The parser regroups this into '{cpu_atom/cycles/,duration_time},
> [ ... ]
> removal and empty-CPU map propagation removal for both group leaders and
> group members.
> 
> Fixes: f7e36d02d771 ("libperf: evlist: Fix --cpu argument on hybrid platform")
> Signed-off-by: Ian Rogers <irogers@google.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204061123.2477233-1-irogers@google.com?part=1

      reply	other threads:[~2026-12-04  6:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04  6:11 [PATCH v3] libperf evlist: Update group leader and nr_members in perf_evlist__remove() Ian Rogers
2026-12-04  6:26 ` 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-249214@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.