1 // SPDX-License-Identifier: GPL-2.0 2 #include <linux/bpf.h> 3 #include <bpf/bpf_helpers.h> 4 5 __noinline test_ctx_global_func(struct __sk_buff * skb)6int test_ctx_global_func(struct __sk_buff *skb) 7 { 8 volatile int retval = 1; 9 return retval; 10 } 11 12 SEC("freplace/test_pkt_access") new_test_pkt_access(struct __sk_buff * skb)13int new_test_pkt_access(struct __sk_buff *skb) 14 { 15 return test_ctx_global_func(skb); 16 } 17 18 char _license[] SEC("license") = "GPL"; 19