When running tests concurrently, perf rate limiting will often cause some events to be skipped and make some tests flaky, disabling it making running tests more robust. Signed-off-by: Yucong Sun <sunyucong@xxxxxxxxx> --- tools/testing/selftests/bpf/test_progs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/testing/selftests/bpf/test_progs.c b/tools/testing/selftests/bpf/test_progs.c index 4e2028189471..2ac922f8aa2c 100644 --- a/tools/testing/selftests/bpf/test_progs.c +++ b/tools/testing/selftests/bpf/test_progs.c @@ -1376,6 +1376,8 @@ int main(int argc, char **argv) } } + system("echo 0 > /proc/sys/kernel/perf_cpu_time_max_percent"); + /* ignore workers if we are just listing */ if (env.get_test_cnt || env.list_test_names) env.workers = 0; -- 2.30.2