1 // SPDX-License-Identifier: GPL-2.0
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;
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;
25 char _license[] SEC("license") = "GPL";