From: sashiko-bot@kernel.org
To: "Ian Rogers" <irogers@google.com>, linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v2 3/4] perf tool_pmu: Add schedstat events
Date: Fri, 13 Nov 2026 23:51:17 +0000 [thread overview]
Message-ID: <sashiko-outbox-213878@kernel.org> (raw)
In-Reply-To: <20261113233739.3626499-4-irogers@google.com>
> Add per-CPU tool PMU events backed by /proc/schedstat runqueue
> statistics:
> - schedstat_yield: Calls to sched_yield().
> - schedstat_schedule: Calls to schedule().
> - schedstat_schedule_idle: Calls to schedule() leaving the CPU idle.
> - schedstat_wake: Calls to try_to_wake_up().
> - schedstat_wake_local: Calls to try_to_wake_up() for the local CPU.
> - schedstat_runtime: Task runtime on this CPU in nanoseconds.
> - schedstat_wait: Task runqueue wait time on this CPU in nanoseconds.
> - schedstat_timeslices: Number of timeslices run on this CPU.
>
> Because /proc/schedstat reports per-CPU runqueue counters, reject
> per-process and cgroup modes, exclude schedstat events from
> perf_pmu__reads_only_on_cpu_idx0(), and update should_skip_zero_counter()
> so zero-valued per-CPU tool events are not suppressed on CPUs > 0. Track
> [ ... ]
> CPU1 3,535 tool/schedstat_timeslices/
>
> 0.101808548 seconds time elapsed
>
> Signed-off-by: Ian Rogers <irogers@google.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261113233739.3626499-1-irogers@google.com?part=3
next prev parent reply other threads:[~2026-11-13 23:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 23:37 [PATCH v2 0/4] perf tool_pmu: Add procfs memory, network and schedstat events Ian Rogers
2026-11-13 23:37 ` [PATCH v2 1/4] perf tool_pmu: Add memory events Ian Rogers
2026-11-14 0:05 ` sashiko-bot
2026-11-13 23:37 ` [PATCH v2 2/4] perf tool_pmu: Add network events Ian Rogers
2026-11-13 23:59 ` sashiko-bot
2026-11-13 23:37 ` [PATCH v2 3/4] perf tool_pmu: Add schedstat events Ian Rogers
2026-11-13 23:51 ` sashiko-bot [this message]
2026-11-13 23:37 ` [PATCH v2 4/4] perf test tool_pmu: Add memory, network and schedstat tests Ian Rogers
2026-11-13 23:45 ` sashiko-bot
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-213878@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=irogers@google.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox