1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include <linux/bpf.h> |
3 | #include <bpf/bpf_helpers.h> |
4 | #include <bpf/bpf_tracing.h> |
5 | |
6 | SEC("fentry/bpf_modify_return_test" ) |
7 | int BPF_PROG(fentry_test, int a, int *b) |
8 | { |
9 | return 0; |
10 | } |
11 | |
12 | SEC("fmod_ret/bpf_modify_return_test" ) |
13 | int BPF_PROG(fmod_ret_test, int a, int *b, int ret) |
14 | { |
15 | return 0; |
16 | } |
17 | |
18 | SEC("fexit/bpf_modify_return_test" ) |
19 | int BPF_PROG(fexit_test, int a, int *b, int ret) |
20 | { |
21 | return 0; |
22 | } |
23 | |
24 | char _license[] SEC("license" ) = "GPL" ; |
25 | |