xref: /linux/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf_fentry.c (revision e7d759f31ca295d589f7420719c311870bb3166f)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright Leon Hwang */
3 
4 #include "vmlinux.h"
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
7 
8 int count = 0;
9 
10 SEC("fentry/subprog_tail")
11 int BPF_PROG(fentry, struct sk_buff *skb)
12 {
13 	count++;
14 
15 	return 0;
16 }
17 
18 char _license[] SEC("license") = "GPL";
19