From: sashiko-bot@kernel.org
To: "Jan Bernloehr" <jbernloehr@nvidia.com>,
linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf arm-spe: Honor --time ranges when synthesizing samples
Date: Fri, 27 Nov 2026 12:47:01 +0000 [thread overview]
Message-ID: <sashiko-outbox-237432@kernel.org> (raw)
In-Reply-To: <20261127123855.78212-1-jbernloehr@nvidia.com>
> perf script and perf report pass their --time ranges to the AUX trace
> decoders through itrace_synth_opts. Intel PT uses them to skip decoding
> outside the ranges, but Arm SPE ignores them: it synthesizes a sample
> for every record, only for the tool to drop the samples outside the
> ranges in its sample handler.
>
> Check each record's timestamp against the ranges before synthesizing
> samples for it. The check runs after the --itrace period count and
> converts the record timestamp with tsc_to_perf_time(), as
> arm_spe_prep_sample() does for sample->time, so the tool receives the
> same samples as before. Without timestamps (timeless decoding) nothing
> changes.
>
> Decoding still runs to the end of each queue rather than stopping at the
> first record past the last range: record timestamps do not always
> increase within a queue, and on Neoverse V2 traces such an early stop
> dropped samples that were inside the range.
>
> On 28 GB and 55 GB Neoverse V2 traces, perf script --itrace=i1i with
> --time=70%-95% goes from 212 s to 188 s and from 383 s to 339 s, and
> with --time=70%-70.01% from 101 s to 72 s and from 188 s to 131 s, with
> byte-identical output.
>
> The code and this message were drafted with an AI coding assistant
> (Claude Opus 5.5).
>
> Signed-off-by: Jan Bernloehr <jbernloehr@nvidia.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261127123855.78212-1-jbernloehr@nvidia.com?part=1
next prev parent reply other threads:[~2026-11-27 12:47 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:38 [PATCH] perf arm-spe: Honor --time ranges when synthesizing samples Jan Bernloehr
2026-11-27 12:47 ` sashiko-bot [this message]
2026-11-27 13:07 ` James Clark
2026-11-29 9:29 ` Jan Bernloehr
2026-12-01 11:56 ` James Clark
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-237432@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=jbernloehr@nvidia.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.