]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/bpf: Augment send_signal test with remote signaling
authorPuranjay Mohan <puranjay@kernel.org>
Wed, 16 Oct 2024 08:41:36 +0000 (08:41 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Mon, 21 Oct 2024 22:02:49 +0000 (15:02 -0700)
commit0e14189459f6c424a95a146d288d59f0ed27fd3f
treed77b5782e22dc705ddec5bccce32e86274d88713
parent6280cf718db0c557b5fe44e2d2e8ad8e832696a7
selftests/bpf: Augment send_signal test with remote signaling

Add testcases to test bpf_send_signal_task(). In these new test cases,
the main process triggers the BPF program and the forked process
receives the signals. The target process's signal handler receives a
cookie from the bpf program.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241016084136.10305-3-puranjay@kernel.org
tools/testing/selftests/bpf/prog_tests/send_signal.c
tools/testing/selftests/bpf/progs/test_send_signal_kern.c