From: Peter Zijlstra <peterz@infradead.org>
To: Matt Turner <mattst88@gmail.com>
Cc: Richard Henderson <richard.henderson@linaro.org>,
Magnus Lindholm <linmag7@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>,
linux-alpha@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-perf-users@vger.kernel.org
Subject: Re: [PATCH 0/5] alpha/perf: add ProfileMe sampling
Date: Fri, 30 Oct 2026 10:39:50 +0100 [thread overview]
Message-ID: <20261030093950.GI2668200@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <CAEdQ38F1+iCoxseW_M_16m9wXW0xe-4eKtr2OnehP=3XppF4MQ@mail.gmail.com>
On Fri, Oct 30, 2026 at 12:00:41AM -0400, Matt Turner wrote:
> On Thu, Oct 29, 2026 at 11:34 AM Matt Turner <mattst88@gmail.com> wrote:
> >
> > On Thu, Oct 29, 2026 at 5:11 AM Peter Zijlstra <peterz@infradead.org> wrote:
> > >
> > > On Wed, Oct 28, 2026 at 02:09:29PM -0400, Matt Turner wrote:
> > > > The 21264 from EV67 on, and the 21364, have a second performance counter
> > > > mode, ProfileMe, alongside the Aggregate mode that the driver uses today.
> > > > An Aggregate mode sample reports the PC where the overflow interrupt was
> > > > taken. On an EV7 that is anywhere from 15 instructions before to 12
> > > > after the one that overflowed the counter, which makes perf annotate
> > > > output close to useless. In ProfileMe mode the CPU picks one fetched
> > > > instruction, follows it down the pipeline, and reports its PC along with
> > > > what happened to it: whether it retired, whether it trapped and why,
> > > > whether it was a mispredicted branch, stalled before map, or was killed
> > > > on a wrong path, and what PCTR1 counted while it was in flight.
> > >
> > > Isn't this the thing that ended up as AMD's IBS?
> >
> > I have no idea, but it wouldn't surprise me too much :)
>
> Looking a bit further, it does seem so. ProfileMe was published by Dean
> et al. at MICRO-30 in 1997, and IBS works the same way: tag one
> instruction, follow it down the pipeline, and report what happened to
> it.
Right, I thought I remembered something like that.
Anyway, I was thinking that perhaps there was something to share with
the existing IBS work, but the AI overlords abused me of that idea quite
quickly. While they are very similar in spirit, they are very distinct
in practice.
Carry on the legacy compute :-)
prev parent reply other threads:[~2026-10-30 9:39 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-28 18:09 Matt Turner
2026-10-28 18:09 ` [PATCH 1/5] alpha/perf: pass PERFMON_CMD_LOGGING_ALL to the logging options call Matt Turner
2026-10-29 17:38 ` Magnus Lindholm
2026-10-30 3:58 ` Matt Turner
2026-10-28 18:09 ` [PATCH 2/5] alpha/perf: add sysfs format and event attributes Matt Turner
2026-10-28 18:09 ` [PATCH 3/5] alpha/perf: implement ProfileMe sampling Matt Turner
2026-10-29 15:18 ` Magnus Lindholm
2026-10-30 3:59 ` Matt Turner
2026-10-28 18:09 ` [PATCH 4/5] alpha/perf: attach ProfileMe status as PERF_SAMPLE_RAW data Matt Turner
2026-10-28 18:09 ` [PATCH 5/5] alpha/perf: optionally randomize the ProfileMe sampling interval Matt Turner
2026-10-29 15:01 ` Magnus Lindholm
2026-10-30 4:00 ` Matt Turner
2026-10-29 9:11 ` [PATCH 0/5] alpha/perf: add ProfileMe sampling Peter Zijlstra
2026-10-29 15:34 ` Matt Turner
2026-10-30 4:00 ` Matt Turner
2026-10-30 9:39 ` Peter Zijlstra [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=20261030093950.GI2668200@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=linmag7@gmail.com \
--cc=linux-alpha@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mattst88@gmail.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=richard.henderson@linaro.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®