linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: TAKANO Mitsuhiro <takano32@gmail.com>
To: Hang Zhengyang <hang.zhengyang1010@gmail.com>
Cc: linux-perf-users@vger.kernel.org, TAKANO Mitsuhiro <takano32@gmail.com>
Subject: Re: [PATCH] perf evsel: Skip group members without fds when walking a group
Date: Wed, 11 Nov 2026 02:33:52 +0000	[thread overview]
Message-ID: <179436443230.1969401.16257974217570748224@gmail.com> (raw)
In-Reply-To: <20261110030832.3060145-1-hang.zhengyang1010@gmail.com>

Thanks for testing this on Zen 3, and for the EBADF detail: it says the
member is being grouped against a descriptor that is not a perf event at
all, which is what the patch stops the walk from doing.

On the counting improvement you describe, I would rather not fold it into
this patch.  Returning -1 from get_group_fd() for a leader that has no
perf event changes what the kernel is asked for: the members stop using
PERF_FORMAT_GROUP and start being read on their own, so on top of the
patch that stops the crash it becomes a change in how the group is
created, and it needs its own explanation and its own testing across the
PMU types that can lead a group.

Would you post it as a follow-up on top of this one?  You have the
measurement I do not: the "{user_time,cycles,instructions}" case counting
on Zen 3.  If you would rather have it here, say so and I will post a v2
that carries your diff with a Suggested-by, but then the changelog is
about a behaviour change rather than a segfault fix and I would want a
run of the group tests on a second host before asking anyone to take it.


  reply	other threads:[~2026-11-11  2:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  8:56 [PATCH] perf evsel: Skip group members without fds when walking a group TAKANO Mitsuhiro
2026-10-23  9:20 ` sashiko-bot
2026-10-23 16:24   ` TAKANO Mitsuhiro
2026-11-10  3:08     ` Hang Zhengyang
2026-11-11  2:33       ` TAKANO Mitsuhiro [this message]
2026-11-11  3:48         ` Hang Zhengyang
2026-11-11  6:16 ` Namhyung Kim
2026-11-11 10:16 ` [PATCH v2] libperf: Handle an evsel without an fd array in enable/disable TAKANO Mitsuhiro
2026-11-11 10:28   ` sashiko-bot

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=179436443230.1969401.16257974217570748224@gmail.com \
    --to=takano32@gmail.com \
    --cc=hang.zhengyang1010@gmail.com \
    --cc=linux-perf-users@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).