aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/tests/shell/stat_bpf_counters_cgrp.sh
diff options
context:
space:
mode:
authorMichael Petlan <mpetlan@redhat.com>2024-11-01 11:28:12 +0100
committerNamhyung Kim <namhyung@kernel.org>2024-11-04 22:10:48 -0800
commitc741c7b5e98357e9f45e012f8c4295b5aed8d5c0 (patch)
tree56229d42d2029fc9464d99bd1b29558f18c3cf07 /tools/perf/tests/shell/stat_bpf_counters_cgrp.sh
parentperf build: Make libunwind opt-in rather than opt-out (diff)
downloadwireguard-linux-c741c7b5e98357e9f45e012f8c4295b5aed8d5c0.tar.xz
wireguard-linux-c741c7b5e98357e9f45e012f8c4295b5aed8d5c0.zip
perf test: Remove cpu-list BPF cgroup counter test
The cpu-list part of this testcase has proven itself to be unreliable. Sometimes, we get "<not counted>" for system.slice when pinned to CPUs 0 and 1. In such case, the test fails. Since we cannot simply guarantee that any system.slice load will run on any arbitrary list of CPUs, except the whole set of all CPUs, let's rather remove the cpu-list subtest. Fixes: a84260e314029e6dc9904fd ("perf test stat_bpf_counters_cgrp: Enhance perf stat cgroup BPF counter test") Signed-off-by: Michael Petlan <mpetlan@redhat.com> Cc: vmolnaro@redhat.com Cc: bpf@vger.kernel.org Link: https://lore.kernel.org/r/20241101102812.576425-1-mpetlan@redhat.com Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to '')
-rwxr-xr-xtools/perf/tests/shell/stat_bpf_counters_cgrp.sh13
1 files changed, 0 insertions, 13 deletions
diff --git a/tools/perf/tests/shell/stat_bpf_counters_cgrp.sh b/tools/perf/tests/shell/stat_bpf_counters_cgrp.sh
index e75d0780dc78..2ec69060c42f 100755
--- a/tools/perf/tests/shell/stat_bpf_counters_cgrp.sh
+++ b/tools/perf/tests/shell/stat_bpf_counters_cgrp.sh
@@ -58,22 +58,9 @@ check_system_wide_counted()
fi
}
-check_cpu_list_counted()
-{
- check_cpu_list_counted_output=$(perf stat -C 0,1 --bpf-counters --for-each-cgroup ${test_cgroups} -e cpu-clock -x, taskset -c 1 sleep 1 2>&1)
- if echo ${check_cpu_list_counted_output} | grep -q -F "<not "; then
- echo "Some CPU events are not counted"
- if [ "${verbose}" = "1" ]; then
- echo ${check_cpu_list_counted_output}
- fi
- exit 1
- fi
-}
-
check_bpf_counter
find_cgroups
check_system_wide_counted
-check_cpu_list_counted
exit 0