]> Git Repo - linux.git/blob - tools/testing/selftests/bpf/progs/missed_tp_recursion.c
Linux 6.14-rc3
[linux.git] / tools / testing / selftests / bpf / progs / missed_tp_recursion.c
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")
13 int BPF_PROG(trigger)
14 {
15         return 0;
16 }
17
18 SEC("kprobe/bpf_fentry_test1")
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")
26 int test2(struct pt_regs *ctx)
27 {
28         return 0;
29 }
30
31 SEC("tp/bpf_trace/bpf_trace_printk")
32 int test3(struct pt_regs *ctx)
33 {
34         return 0;
35 }
36
37 SEC("tp/bpf_trace/bpf_trace_printk")
38 int test4(struct pt_regs *ctx)
39 {
40         return 0;
41 }
This page took 0.032919 seconds and 4 git commands to generate.