Lines Matching refs:cgroup
2 # perf stat --bpf-counters --for-each-cgroup test
12 # skip if --bpf-counters --for-each-cgroup is not supported
15 if ! perf stat -a --bpf-counters --for-each-cgroup / true > /dev/null 2>&1; then
17 echo "Skipping: --bpf-counters --for-each-cgroup not supported"
18 perf --no-pager stat -a --bpf-counters --for-each-cgroup / true || true
28 if [ -d /sys/fs/cgroup/system.slice ] && [ -d /sys/fs/cgroup/user.slice ]; then
34 find_cgroups_self_cgrp=$(grep perf_event /proc/self/cgroup | cut -d: -f3)
36 # cgroup v2 doesn't specify perf_event
37 find_cgroups_self_cgrp=$(grep ^0: /proc/self/cgroup | cut -d: -f3)
47 # As cgroup events are cpu-wide, we cannot simply compare the result.
51 check_system_wide_counted_output=$(perf stat -a --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, sleep 1 2>&1)
66 expand_output=$(perf stat -a -x, --bpf-counters --for-each-cgroup / true 2>&1 | wc -l)