All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Thaumy Cheng" <thaumy.love@gmail.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf/core: Preserve the hardware index field for missing branch stacks
Date: Mon, 23 Nov 2026 05:13:53 +0000	[thread overview]
Message-ID: <sashiko-outbox-228707@kernel.org> (raw)
In-Reply-To: <20261123050706.18428-1-thaumy.love@gmail.com>

> PERF_SAMPLE_BRANCH_HW_INDEX selects a branch-stack layout containing a
> hardware index after nr, including when nr is zero. The generic fallback
> for a missing branch stack currently emits only nr, unlike the non-NULL
> stack path and the layout expected by perf's sample parser.
> 
> Emit an unknown hardware index (-1ULL) when the field is requested and
> account for it when preparing the sample. Events without HW_INDEX and
> samples with a supplied branch stack retain their existing layout.
> 
> This makes the fallback consistent with the ABI; no reproducer for reaching
> this fallback with HW_INDEX enabled is claimed here.
> 
> Signed-off-by: Thaumy Cheng <thaumy.love@gmail.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123050706.18428-1-thaumy.love@gmail.com?part=1

      reply	other threads:[~2026-11-23  5:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23  5:07 [PATCH] perf/core: Preserve the hardware index field for missing branch stacks Thaumy Cheng
2026-11-23  5:13 ` 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-228707@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=thaumy.love@gmail.com \
    /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.