diff options
author | Alan Maguire <[email protected]> | 2024-06-20 10:17:33 +0100 |
---|---|---|
committer | Andrii Nakryiko <[email protected]> | 2024-06-21 14:46:29 -0700 |
commit | 47a8cf0c5b3f6769b9d558301735c75119a0a165 (patch) | |
tree | 4af832750443c5224152d4bdae82c8e69fc674c8 /tools/perf/scripts/python | |
parent | 46fb0b62ea29c0dbcb3e44f1d67aafe79bc6e045 (diff) |
selftests/bpf: Add kfunc_call test for simple dtor in bpf_testmod
add simple kfuncs to create/destroy a context type to bpf_testmod,
register them and add a kfunc_call test to use them. This provides
test coverage for registration of dtor kfuncs from modules.
By transferring the context pointer to a map value as a __kptr
we also trigger the map-based dtor cleanup logic, improving test
coverage.
Suggested-by: Eduard Zingerman <[email protected]>
Signed-off-by: Alan Maguire <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions