[PATCH v2 0/2] selftests/bpf: fix bpf_cookie failures

Sun Jian
2026-02-28T07:46:15Z

Fix bpf_cookie failures due to missing bpf_testmod and flaky perf_event
triggering.

Tested:
./test_progs -t bpf_cookie/perf_event -vv (30 runs): 0 failures
./test_progs -t bpf_cookie -vv

Sun Jian (2):
selftests/bpf: bpf_cookie: skip kprobe_multi tests without bpf_testmod
selftests/bpf: bpf_cookie: make perf_event subtest trigger reliably

.../selftests/bpf/prog_tests/bpf_cookie.c | 29 ++++++++++++++-----
1 file changed, 21 insertions(+), 8 deletions(-)

base-commit: f4d0ec0aa20d49f09dc01d82894ce80d72de0560
--
2.43.0