diff options
author | 2025-05-23 13:53:31 -0700 | |
---|---|---|
committer | 2025-05-27 10:30:07 -0700 | |
commit | 92de53d247dffdf29d2abecf7deb4760dde98d6c (patch) | |
tree | eb2f156b17093645f4ee76ada91fa002a56f3b1e /tools/bpf/bpftool/prog.c | |
parent | bpf: Warn with __bpf_trap() kfunc maybe due to uninitialized variable (diff) | |
download | wireguard-linux-92de53d247dffdf29d2abecf7deb4760dde98d6c.tar.xz wireguard-linux-92de53d247dffdf29d2abecf7deb4760dde98d6c.zip |
selftests/bpf: Add unit tests with __bpf_trap() kfunc
Add some inline-asm tests and C tests where __bpf_trap() or
__builtin_trap() is used in the code. The __builtin_trap()
test is guarded with llvm21 ([1]) since otherwise the compilation
failure will happen.
[1] https://github.com/llvm/llvm-project/pull/131731
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20250523205331.1291734-1-yonghong.song@linux.dev
Tested-by: Eduard Zingerman <eddyz87@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions