task_fd_query_kern.c 409 B

1234567891011121314151617181920
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <linux/version.h>
  3. #include <linux/ptrace.h>
  4. #include <uapi/linux/bpf.h>
  5. #include "bpf_helpers.h"
  6. SEC("kprobe/blk_start_request")
  7. int bpf_prog1(struct pt_regs *ctx)
  8. {
  9. return 0;
  10. }
  11. SEC("kretprobe/blk_account_io_completion")
  12. int bpf_prog2(struct pt_regs *ctx)
  13. {
  14. return 0;
  15. }
  16. char _license[] SEC("license") = "GPL";
  17. u32 _version SEC("version") = LINUX_VERSION_CODE;