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

source code of linux/tools/testing/selftests/bpf/progs/missed_tp_recursion.c