diff options
| author | Alan Maguire <alan.maguire@oracle.com> | 2024-06-20 10:17:33 +0100 |
|---|---|---|
| committer | Andrii Nakryiko <andrii@kernel.org> | 2024-06-21 14:46:29 -0700 |
| commit | 47a8cf0c5b3f6769b9d558301735c75119a0a165 (patch) | |
| tree | 4af832750443c5224152d4bdae82c8e69fc674c8 /tools/perf/scripts/python/gecko.py | |
| 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 <eddyz87@gmail.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20240620091733.1967885-7-alan.maguire@oracle.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions
