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/bpf_helpers.h> 6 7 SEC("kprobe/blk_mq_start_request") 8 int bpf_prog1(struct pt_regs *ctx) 9 { 10 return 0; 11 } 12 13 SEC("kretprobe/__blk_account_io_done") 14 int bpf_prog2(struct pt_regs *ctx) 15 { 16 return 0; 17 } 18 char _license[] SEC("license") = "GPL"; 19 u32 _version SEC("version") = LINUX_VERSION_CODE; 20
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.