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