aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_progs.c
diff options
context:
space:
mode:
authorYuntao Wang <ytcoode@gmail.com>2022-05-19 23:06:10 +0800
committerAndrii Nakryiko <andrii@kernel.org>2022-05-20 16:12:14 -0700
commitb23316aabffa835ecc516cb81daeef5b9155e8a5 (patch)
tree725acecb7560873d925c36bb5f3ebcbfde7f32de /tools/testing/selftests/bpf/test_progs.c
parentMerge branch 'bpf: mptcp: Support for mptcp_sock' (diff)
downloadlinux-dev-b23316aabffa835ecc516cb81daeef5b9155e8a5.tar.xz
linux-dev-b23316aabffa835ecc516cb81daeef5b9155e8a5.zip
selftests/bpf: Add missing trampoline program type to trampoline_count test
Currently the trampoline_count test doesn't include any fmod_ret bpf programs, fix it to make the test cover all possible trampoline program types. Since fmod_ret bpf programs can't be attached to __set_task_comm function, as it's neither whitelisted for error injection nor a security hook, change it to bpf_modify_return_test. This patch also does some other cleanups such as removing duplicate code, dropping inconsistent comments, etc. Signed-off-by: Yuntao Wang <ytcoode@gmail.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/bpf/20220519150610.601313-1-ytcoode@gmail.com
Diffstat (limited to 'tools/testing/selftests/bpf/test_progs.c')
0 files changed, 0 insertions, 0 deletions