blob: c821294e17742b36f2dc5262506cab193b813ba3 [file] [log] [blame]
Yonghong Songecb96f72018-05-24 11:21:56 -07001// SPDX-License-Identifier: GPL-2.0
2#include <linux/version.h>
3#include <linux/ptrace.h>
4#include <uapi/linux/bpf.h>
Toke Høiland-Jørgensen7cf245a2020-01-20 14:06:49 +01005#include <bpf/bpf_helpers.h>
Yonghong Songecb96f72018-05-24 11:21:56 -07006
Daniel T. Leed2e614c2019-02-27 02:52:26 -05007SEC("kprobe/blk_mq_start_request")
Yonghong Songecb96f72018-05-24 11:21:56 -07008int bpf_prog1(struct pt_regs *ctx)
9{
10 return 0;
11}
12
Daniel T. Lee2bf8c7e2020-08-18 14:16:41 +090013SEC("kretprobe/blk_account_io_done")
Yonghong Songecb96f72018-05-24 11:21:56 -070014int bpf_prog2(struct pt_regs *ctx)
15{
16 return 0;
17}
18char _license[] SEC("license") = "GPL";
19u32 _version SEC("version") = LINUX_VERSION_CODE;