]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests/bpf: Add tests for raw_tp NULL args
authorKumar Kartikeya Dwivedi <memxor@gmail.com>
Fri, 13 Dec 2024 22:19:29 +0000 (14:19 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 14 Dec 2024 00:24:53 +0000 (16:24 -0800)
commit0da1955b5bd2af3a1c3d13916df06e34ffa6df3d
tree0b40e120945f91a39787e98643ddfcac18d73f4f
parent838a10bd2ebfe11a60dd67687533a7cfc220cc86
selftests/bpf: Add tests for raw_tp NULL args

Add tests to ensure that arguments are correctly marked based on their
specified positions, and whether they get marked correctly as maybe
null. For modules, all tracepoint parameters should be marked
PTR_MAYBE_NULL by default.

Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20241213221929.3495062-4-memxor@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/raw_tp_null.c
tools/testing/selftests/bpf/progs/raw_tp_null_fail.c [new file with mode: 0644]