From: Namhyung Kim <namhyung@kernel.org>
To: Aaron Tomlin <atomlin@atomlin.com>
Cc: peterz@infradead.org, mingo@redhat.com, acme@kernel.org,
mark.rutland@arm.com, alexander.shishkin@linux.intel.com,
jolsa@kernel.org, irogers@google.com, adrian.hunter@intel.com,
james.clark@linaro.org, howardchu95@gmail.com, neelx@suse.com,
sean@ashe.io, linux-perf-users@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4] perf trace: Introduce --show-cpu option to display cpu id
Date: Sun, 17 May 2026 23:50:48 -0700 [thread overview]
Message-ID: <agq2yOddNDgqjh5W@google.com> (raw)
In-Reply-To: <fjphwjezyi2rfq54kyx6f7z5nee2iurou4ll6rhlporzbqvonr@5qxhd7q6qvej>
Hello,
On Sat, May 16, 2026 at 10:03:40AM -0400, Aaron Tomlin wrote:
> On Fri, Apr 24, 2026 at 05:29:33PM -0400, Aaron Tomlin wrote:
> > When tracing system-wide workloads or specific events, it is highly
> > valuable to know exactly which CPU executed a specific event. Currently,
> > perf trace output defaults to omitting CPU information.
> >
> > Introduce a new "--show-cpu" command-line option. When provided, this
> > flag extracts the CPU from the perf sample and prints it in a "[000]"
> > format immediately following the timestamp. This mirrors the behaviour of
> > other tracing tools like ftrace and perf script. For example:
> >
> > # perf trace -e sched:sched_switch --max-events 5 --show-cpu
> > 0.000 [002] :0/0 sched:sched_switch(prev_comm: "swapper/2", prev_prio: 120, next_comm: "rcu_preempt", next_pid: 16 (rcu_preempt), next_prio: 120)
> > 0.009 [002] rcu_preempt/16 sched:sched_switch(prev_comm: "rcu_preempt", prev_pid: 16 (rcu_preempt), prev_prio: 120, prev_state: 128, next_comm: "swapper/2", next_prio: 120)
> > 0.033 [002] :0/0 sched:sched_switch(prev_comm: "swapper/2", prev_prio: 120, next_comm: "kworker/u32:48", next_pid: 35840 (kworker/u32:48-), next_prio: 120)
> > 0.041 [002] kworker/u32:48/35840 sched:sched_switch(prev_comm: "kworker/u32:48", prev_pid: 35840 (kworker/u32:48-), prev_prio: 120, prev_state: 128, next_comm: "swapper/2", next_prio: 120)
> > 0.045 [002] :0/0 sched:sched_switch(prev_comm: "swapper/2", prev_prio: 120, next_comm: "kworker/u32:48", next_pid: 35840 (kworker/u32:48-), next_prio: 120)
> >
> > The feature is implemented strictly as an opt-in toggle to prevent
> > cluttering the standard output and to preserve backwards compatibility
> > for scripts parsing the default output format.
>
> Hi Peter, Ingo, Arnaldo, Namhyung,
>
> Just a gentle ping on this patch. It has been a few weeks since v4 was
> submitted [1].
>
> Are there any further comments or revisions needed, or is this in a good
> state to be picked up?
>
> [1]: https://lore.kernel.org/lkml/20260424212933.151154-1-atomlin@atomlin.com/
Acked-by: Namhyung Kim <namhyung@kernel.org>
Thanks,
Namhyung
prev parent reply other threads:[~2026-05-18 6:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-24 21:29 [PATCH v4] perf trace: Introduce --show-cpu option to display cpu id Aaron Tomlin
2026-05-16 14:03 ` Aaron Tomlin
2026-05-18 6:50 ` Namhyung Kim [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=agq2yOddNDgqjh5W@google.com \
--to=namhyung@kernel.org \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=atomlin@atomlin.com \
--cc=howardchu95@gmail.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=neelx@suse.com \
--cc=peterz@infradead.org \
--cc=sean@ashe.io \
/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