1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "vmlinux.h" |
3 | #include <bpf/bpf_helpers.h> |
4 | #include <bpf/bpf_tracing.h> |
5 | #include "../bpf_testmod/bpf_testmod_kfunc.h" |
6 | |
7 | char _license[] SEC("license" ) = "GPL" ; |
8 | |
9 | /* |
10 | * No tests in here, just to trigger 'bpf_fentry_test*' |
11 | * through tracing test_run |
12 | */ |
13 | SEC("fentry/bpf_modify_return_test" ) |
14 | int BPF_PROG(trigger) |
15 | { |
16 | return 0; |
17 | } |
18 | |
19 | SEC("kprobe.multi/bpf_fentry_test1" ) |
20 | int test1(struct pt_regs *ctx) |
21 | { |
22 | bpf_kfunc_common_test(); |
23 | return 0; |
24 | } |
25 | |
26 | SEC("kprobe/bpf_kfunc_common_test" ) |
27 | int test2(struct pt_regs *ctx) |
28 | { |
29 | return 0; |
30 | } |
31 | |
32 | SEC("kprobe/bpf_kfunc_common_test" ) |
33 | int test3(struct pt_regs *ctx) |
34 | { |
35 | return 0; |
36 | } |
37 | |
38 | SEC("kprobe/bpf_kfunc_common_test" ) |
39 | int test4(struct pt_regs *ctx) |
40 | { |
41 | return 0; |
42 | } |
43 | |
44 | SEC("kprobe.multi/bpf_kfunc_common_test" ) |
45 | int test5(struct pt_regs *ctx) |
46 | { |
47 | return 0; |
48 | } |
49 | |