Files
linux/tools/perf/util
Ian Rogers 78148c8529 perf evlist: Warn when 'sleep' workload is used without system-wide (-a) option
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.

Assisted-by: Antigravity:gemini-3.6-flash
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
2026-08-17 16:04:06 -07:00
..
2026-06-15 14:33:49 -03:00
2026-01-13 17:03:25 -03:00
2026-01-13 17:03:25 -03:00
2026-03-13 14:13:02 -07:00
2026-04-02 19:35:16 -07:00
2023-03-14 08:29:46 -03:00
2026-06-30 10:17:10 -07:00
2026-06-30 10:17:10 -07:00
2021-08-11 09:35:44 -03:00
2024-08-19 14:52:13 -03:00
2023-01-23 10:00:47 -03:00
2026-06-30 10:17:10 -07:00
2024-08-19 14:51:46 -03:00
2026-06-15 09:01:27 -03:00
2026-06-15 09:01:27 -03:00
2025-05-02 15:36:14 -03:00
2025-02-10 11:46:02 -08:00
2026-06-30 10:17:11 -07:00
2023-04-06 21:40:28 -03:00
2023-09-12 17:47:00 -03:00
2026-06-30 10:17:11 -07:00
2025-03-10 11:31:24 -07:00
2025-03-10 11:31:24 -07:00
2025-12-17 09:30:37 -03:00
2026-03-26 15:22:18 -07:00
2025-07-11 12:36:40 -07:00
2025-07-11 12:36:40 -07:00
2024-12-12 15:53:36 -03:00
2025-06-09 11:18:18 -07:00
2025-07-26 16:31:43 -07:00
2025-09-19 12:14:29 -03:00
2023-04-10 19:20:53 -03:00
2024-09-27 15:38:52 -03:00