mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
perf stat: Do not open cgroups for BPF counters
The --bpf-counters and --for-each-cgroup options use a set of shared events among the given cgroups rather than adding events for each cgroup respectively. It only uses cgroup-ID to compare and calculate the result. So no need to open and keep FDs for cgroups in BPF mode. Signed-off-by: Namhyung Kim <namhyung@kernel.org>
This commit is contained in:
parent
eadce0f46a
commit
3f7909fa92
|
|
@ -2895,7 +2895,8 @@ int cmd_stat(int argc, const char **argv)
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (evlist__expand_cgroup(evsel_list, stat_config.cgroup_list, true) < 0) {
|
||||
if (evlist__expand_cgroup(evsel_list, stat_config.cgroup_list,
|
||||
!target.use_bpf) < 0) {
|
||||
parse_options_usage(stat_usage, stat_options,
|
||||
"for-each-cgroup", 0);
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user