diff options
author | Dave Marchevsky <davemarchevsky@fb.com> | 2023-03-10 15:07:43 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-10 16:38:05 -0800 |
commit | 5d8d6634cccf1ebd0db4e220e52e7128b030c7b4 (patch) | |
tree | 4ec6a9eae1a29c21cf9b5f1d463d61299199948e /tools/testing/selftests/bpf/prog_tests/linked_funcs.c | |
parent | 738c96d5e2e3700b370f02ac84a9dc159ca81f25 (diff) |
selftests/bpf: Add local kptr stashing test
Add a new selftest, local_kptr_stash, which uses bpf_kptr_xchg to stash
a bpf_obj_new-allocated object in a map. Test the following scenarios:
* Stash two rb_nodes in an arraymap, don't unstash them, rely on map
free to destruct them
* Stash two rb_nodes in an arraymap, unstash the second one in a
separate program, rely on map free to destruct first
Signed-off-by: Dave Marchevsky <davemarchevsky@fb.com>
Link: https://lore.kernel.org/r/20230310230743.2320707-4-davemarchevsky@fb.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/linked_funcs.c')
0 files changed, 0 insertions, 0 deletions