]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: test bpf_get_func_arg() for tp_btf
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 21 Jan 2026 04:43:48 +0000 (12:43 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 21 Jan 2026 17:31:35 +0000 (09:31 -0800)
commit1ed797764315496a115cd0568450a7f72da80df6
tree99c12798e0613c2722ce1a42d20a9df0c2c9f035
parent85c7f914714741de992fc19c2ba673f6c400a584
selftests/bpf: test bpf_get_func_arg() for tp_btf

Test bpf_get_func_arg() and bpf_get_func_arg_cnt() for tp_btf. The code
is most copied from test1 and test2.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260121044348.113201-3-dongml2@chinatelecom.cn
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/get_func_args_test.c
tools/testing/selftests/bpf/progs/get_func_args_test.c
tools/testing/selftests/bpf/test_kmods/bpf_testmod-events.h
tools/testing/selftests/bpf/test_kmods/bpf_testmod.c