github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/testdata/kconfig.c (about) 1 #include "common.h" 2 3 char __license[] __section("license") = "MIT"; 4 5 extern int LINUX_KERNEL_VERSION __kconfig; 6 extern _Bool LINUX_HAS_SYSCALL_WRAPPER __kconfig; 7 8 __section("socket") int kernel_version() { 9 return LINUX_KERNEL_VERSION; 10 } 11 12 __section("socket") int syscall_wrapper() { 13 return LINUX_HAS_SYSCALL_WRAPPER; 14 }