tracex7.bpf.c 301 B

123456789101112131415
  1. #include "vmlinux.h"
  2. #include <linux/version.h>
  3. #include <bpf/bpf_helpers.h>
  4. SEC("kprobe/open_ctree")
  5. int bpf_prog1(struct pt_regs *ctx)
  6. {
  7. unsigned long rc = -12;
  8. bpf_override_return(ctx, rc);
  9. return 0;
  10. }
  11. char _license[] SEC("license") = "GPL";
  12. u32 _version SEC("version") = LINUX_VERSION_CODE;