From: Jan Bernloehr <jbernloehr@nvidia.com>
To: James Clark <james.clark@linaro.org>
Cc: Leo Yan <leo.yan@linux.dev>, Will Deacon <will@kernel.org>,
Mike Leach <mike.leach@arm.com>,
John Garry <john.garry@linux.dev>,
Namhyung Kim <namhyung@kernel.org>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, Matt Ochs <mochs@nvidia.com>,
linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf arm-spe: Honor --time ranges when synthesizing samples
Date: Sun, 29 Nov 2026 10:29:36 +0100 [thread overview]
Message-ID: <20261129092936.44711-1-jbernloehr@nvidia.com> (raw)
In-Reply-To: <f1cd9130-76d3-4828-9cd0-aebb43e51de2@linaro.org>
On 27/11/2026 13:07, James Clark wrote:
> Do you care that timestamps don't always increase? Seems like it would
> be acceptable to stop after the first timestamp that you see outside of
> the range, even if there are some edge cases where there may be an
> earlier one later.
>
> Also can you elaborate why they don't always increase? I would have
> thought that they would always generally increase in SPE data, if not
> for some allowance for instruction re-ordering or something like that.
> But that would be tiny and not really relevant for this feature.
Hi James,
Thanks for the review. You're right, real timestamps do increase, and
the commit message is wrong there.
What I actually hit: on some CPUs the first SPE record in the trace
carries a stale timestamp from before the session started (0, or days
old). tsc_to_perf_time() wraps it, so the sample lands about 2^61 ns
in the future. With the early stop, that one record ended the CPU's
whole queue, which cut a fifth of the in-range samples on one trace.
For v2 I'd bring the early stop back, skip records timestamped before
time_cycles, and fix the commit message. Does that sound OK?
Thanks,
Jan
prev parent reply other threads:[~2026-11-29 9:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:38 Jan Bernloehr
2026-11-27 13:07 ` James Clark
2026-11-29 9:29 ` Jan Bernloehr [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=20261129092936.44711-1-jbernloehr@nvidia.com \
--to=jbernloehr@nvidia.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=john.garry@linux.dev \
--cc=leo.yan@linux.dev \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mike.leach@arm.com \
--cc=mochs@nvidia.com \
--cc=namhyung@kernel.org \
--cc=will@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
all inboxes | Powered by JetHome®