Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | selftests/bpf: Add missing trampoline program type to trampoline_count test | Yuntao Wang | 2022-05-20 | 1 | -7/+9 |
| | | | | | | | | | | | | | | | | | | 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 | ||||
* | libbpf: Merge selftests' bpf_trace_helpers.h into libbpf's bpf_tracing.h | Andrii Nakryiko | 2020-03-02 | 1 | -1/+2 |
| | | | | | | | | | Move BPF_PROG, BPF_KPROBE, and BPF_KRETPROBE macro into libbpf's bpf_tracing.h header to make it available for non-selftests users. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200229231112.1240137-5-andriin@fb.com | ||||
* | selftest/bpf: Add test for allowed trampolines count | Jiri Olsa | 2020-01-25 | 1 | -0/+21 |
There's limit of 40 programs tht can be attached to trampoline for one function. Adding test that tries to attach that many plus one extra that needs to fail. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200123161508.915203-4-jolsa@kernel.org |