diff options
author | Dave Marchevsky <davemarchevsky@fb.com> | 2023-12-04 13:17:22 -0800 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2023-12-05 15:06:47 +0100 |
commit | 1b4c7e20bfd6cfe0efbc51756d930a9406d41ea7 (patch) | |
tree | 039941b0e3e680eb0957a1cc32f62f43012a19bd /tools/testing/selftests/bpf/prog_tests/autoload.c | |
parent | ce3c49da11d77aa7d53cd549d308eb5f7fed8576 (diff) |
selftests/bpf: Test bpf_kptr_xchg stashing of bpf_rb_root
There was some confusion amongst Meta sched_ext folks regarding whether
stashing bpf_rb_root - the tree itself, rather than a single node - was
supported. This patch adds a small test which demonstrates this
functionality: a local kptr with rb_root is created, a node is created
and added to the tree, then the tree is kptr_xchg'd into a mapval.
Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/bpf/20231204211722.571346-1-davemarchevsky@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions