github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/testdata/kfunc-kmod.c (about)

     1  #include "common.h"
     2  
     3  char __license[] __section("license") = "Dual MIT/GPL";
     4  
     5  extern void bpf_testmod_test_mod_kfunc(int) __ksym;
     6  
     7  __section("tc") int call_kfunc() {
     8  	bpf_testmod_test_mod_kfunc(0);
     9  	return 1;
    10  }