diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-02-26 12:30:39 -0800 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-03-02 09:47:24 -0800 |
commit | 7788ad59d1d9617792037a83513be5b1dd14150f (patch) | |
tree | 6cd3ba57755085daa202b32e6a15f3b625a2ecc9 /tools/perf/builtin-top.c | |
parent | 7e55bc0110bbb8a6f5419a178168d5df1c1fc00a (diff) |
perf tools: Skip BPF sideband event for userspace profiling
The BPF sideband information is tracked using a separate thread and
evlist. But it's only useful for profiling kernel and we can skip it
when users profile their application only.
It seems it already fails to open the sideband event in that case.
Let's remove the noise in the verbose output anyway.
Reviewed-by: Ian Rogers <irogers@google.com>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20250226203039.1099131-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/builtin-top.c')
-rw-r--r-- | tools/perf/builtin-top.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index e1115b8317a0..2c41d3aea46b 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -1822,6 +1822,9 @@ int cmd_top(int argc, const char **argv) goto out_delete_evlist; } + if (!evlist__needs_bpf_sb_event(top.evlist)) + top.record_opts.no_bpf_event = true; + #ifdef HAVE_LIBBPF_SUPPORT if (!top.record_opts.no_bpf_event) { top.sb_evlist = evlist__new(); |