WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / bpf / progs / test_trace_ext_tracing.c
blob52f3baf98f20b748181fe900068005e679b84859
1 // SPDX-License-Identifier: GPL-2.0
3 #include "vmlinux.h"
4 #include <bpf/bpf_helpers.h>
5 #include <bpf/bpf_tracing.h>
7 __u64 fentry_called = 0;
9 SEC("fentry/test_pkt_md_access_new")
10 int BPF_PROG(fentry, struct sk_buff *skb)
12 fentry_called = skb->len;
13 return 0;
16 __u64 fexit_called = 0;
18 SEC("fexit/test_pkt_md_access_new")
19 int BPF_PROG(fexit, struct sk_buff *skb)
21 fexit_called = skb->len;
22 return 0;
25 char _license[] SEC("license") = "GPL";