Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 #include <linux/version.h>
0003 #include <linux/ptrace.h>
0004 #include <uapi/linux/bpf.h>
0005 #include <bpf/bpf_helpers.h>
0006 
0007 SEC("kprobe/blk_mq_start_request")
0008 int bpf_prog1(struct pt_regs *ctx)
0009 {
0010     return 0;
0011 }
0012 
0013 SEC("kretprobe/blk_account_io_done")
0014 int bpf_prog2(struct pt_regs *ctx)
0015 {
0016     return 0;
0017 }
0018 char _license[] SEC("license") = "GPL";
0019 u32 _version SEC("version") = LINUX_VERSION_CODE;