]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/bpf: Add case to test bpf_in_interrupt()
authorLeon Hwang <leon.hwang@linux.dev>
Wed, 3 Sep 2025 14:04:38 +0000 (22:04 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 4 Sep 2025 16:05:58 +0000 (09:05 -0700)
commit88a3bde432b8263660793bce84910dd44f46ef25
tree50d7bf4307adedc1d37590bd3e46cea744888184
parent4b69e31329b6ef22dc80b45d4a865f57c2346d44
selftests/bpf: Add case to test bpf_in_interrupt()

Add a timer test case to test 'bpf_in_interrupt()'.

cd tools/testing/selftests/bpf
./test_progs -t timer_interrupt
462     timer_interrupt:OK
Summary: 1/0 PASSED, 0 SKIPPED, 0 FAILED

Signed-off-by: Leon Hwang <leon.hwang@linux.dev>
Link: https://lore.kernel.org/r/20250903140438.59517-3-leon.hwang@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/timer.c
tools/testing/selftests/bpf/progs/timer_interrupt.c [new file with mode: 0644]