diff options
author | Yuntao Wang <ytcoode@gmail.com> | 2022-05-19 23:06:10 +0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2022-05-20 16:12:14 -0700 |
commit | b23316aabffa835ecc516cb81daeef5b9155e8a5 (patch) | |
tree | 725acecb7560873d925c36bb5f3ebcbfde7f32de /tools/testing/selftests/bpf/test_progs.c | |
parent | 96af42c50adb6cee517c355bfd50060ef27bfa87 (diff) |
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