Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <vmlinux.h>
0003 #include <bpf/bpf_helpers.h>
0004 
0005 extern int bpf_testmod_ksym_percpu __ksym;
0006 
0007 SEC("tc")
0008 int ksym_fail(struct __sk_buff *ctx)
0009 {
0010     return *(int *)bpf_this_cpu_ptr(&bpf_testmod_ksym_percpu);
0011 }
0012 
0013 char _license[] SEC("license") = "GPL";