test-bpf.c 272 B

123456789101112131415161718
  1. #include <linux/bpf.h>
  2. int main(void)
  3. {
  4. union bpf_attr attr;
  5. attr.prog_type = BPF_PROG_TYPE_KPROBE;
  6. attr.insn_cnt = 0;
  7. attr.insns = 0;
  8. attr.license = 0;
  9. attr.log_buf = 0;
  10. attr.log_size = 0;
  11. attr.log_level = 0;
  12. attr.kern_version = 0;
  13. attr = attr;
  14. return 0;
  15. }