aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tracing_struct.c
diff options
context:
space:
mode:
authorKumar Kartikeya Dwivedi <[email protected]>2024-02-04 22:23:49 +0000
committerAlexei Starovoitov <[email protected]>2024-02-06 03:58:47 +0000
commite8699c4ff85baedcf40f33db816cc487cee39397 (patch)
treeb0dda80da2bdd867ad47d5d108bbea0e1e5f822c /tools/testing/selftests/bpf/prog_tests/tracing_struct.c
parentbpf: Allow calling static subprogs while holding a bpf_spin_lock (diff)
downloadkernel-e8699c4ff85baedcf40f33db816cc487cee39397.tar.gz
kernel-e8699c4ff85baedcf40f33db816cc487cee39397.zip
selftests/bpf: Add test for static subprog call in lock cs
Add selftests for static subprog calls within bpf_spin_lock critical section, and ensure we still reject global subprog calls. Also test the case where a subprog call will unlock the caller's held lock, or the caller will unlock a lock taken by a subprog call, ensuring correct transfer of lock state across frames on exit. Acked-by: Yonghong Song <[email protected]> Acked-by: David Vernet <[email protected]> Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tracing_struct.c')
0 files changed, 0 insertions, 0 deletions