Re: [PATCH v2] perf evlist: Warn when 'sleep' workload is used without system-wide (-a) option
From: Namhyung Kim
Date: Tue Aug 18 2026 - 17:26:40 EST
On Wed, 05 Aug 2026 21:14:14 -0700, Ian Rogers wrote:
> A common mistake when trying to record system-wide profiles for a given
> duration is running commands like 'perf record sleep 1' or 'perf stat
> sleep 1' without passing '-a' / '--all-cpus'. When '-a' is omitted, perf
> defaults to per-process monitoring of the sleep process itself, which
> does not collect system-wide activity and records very few events.
>
> Add a warning in evlist__prepare_workload() when the workload executable
> is 'sleep' and system-wide mode is not enabled.
>
> [...]
Applied to perf-tools-next, thanks!
Best regards,
Namhyung