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

     1  #include "common.h"
     2  
     3  char __license[] __section("license") = "Dual MIT/GPL";
     4  
     5  __section("fentry/target") int trace_on_entry() {
     6  	return 0;
     7  }
     8  
     9  __section("fexit/target") int trace_on_exit() {
    10  	return 0;
    11  }
    12  
    13  __section("tc") int target() {
    14  	return 0;
    15  }