aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/bpf/progs/tailcall_bpf2bpf_fentry.c
blob: 8436c6729167c96482d0317970fd1893551f36af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0
/* Copyright Leon Hwang */

#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>

int count = 0;

SEC("fentry/subprog_tail")
int BPF_PROG(fentry, struct sk_buff *skb)
{
	count++;

	return 0;
}

char _license[] SEC("license") = "GPL";