diff options
| author | Dave Marchevsky <[email protected]> | 2023-03-10 23:07:43 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2023-03-11 00:38:05 +0000 |
| commit | 5d8d6634cccf1ebd0db4e220e52e7128b030c7b4 (patch) | |
| tree | 4ec6a9eae1a29c21cf9b5f1d463d61299199948e /tools/testing/selftests/bpf/prog_tests/tcp_hdr_options.c | |
| parent | bpf: Allow local kptrs to be exchanged via bpf_kptr_xchg (diff) | |
| download | kernel-5d8d6634cccf1ebd0db4e220e52e7128b030c7b4.tar.gz kernel-5d8d6634cccf1ebd0db4e220e52e7128b030c7b4.zip | |
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 <[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/tcp_hdr_options.c')
0 files changed, 0 insertions, 0 deletions
