diff options
author | Andrii Nakryiko <andrii@kernel.org> | 2024-04-27 20:09:54 -0700 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2024-04-29 16:48:33 -0700 |
commit | 1bba3b3d373dbafae891e7cb06b8c82c8d62aba1 (patch) | |
tree | a0dbfaaf0e1970a93b7b2536632329019a219d49 /kernel | |
parent | f973fccd43d34b096077d5d21d051ef75b22a7ea (diff) |
selftests/bpf: validate nulled-out struct_ops program is handled properly
Add a selftests validating that it's possible to have some struct_ops
callback set declaratively, then disable it (by setting to NULL)
programmatically. Libbpf should detect that such program should
not be loaded. Otherwise, it will unnecessarily fail the loading
when the host kernel does not have the type information.
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240428030954.3918764-2-andrii@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions