diff options
| author | Dave Marchevsky <davemarchevsky@fb.com> | 2023-03-11 02:07:43 +0300 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2023-03-11 03:38:05 +0300 |
| commit | 5d8d6634cccf1ebd0db4e220e52e7128b030c7b4 (patch) | |
| tree | 4ec6a9eae1a29c21cf9b5f1d463d61299199948e /tools/perf/scripts/python/syscall-counts.py | |
| parent | 738c96d5e2e3700b370f02ac84a9dc159ca81f25 (diff) | |
| download | linux-5d8d6634cccf1ebd0db4e220e52e7128b030c7b4.tar.xz | |
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/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
