Yonghong Song | ecb96f7 | 2018-05-24 11:21:56 -0700 | [diff] [blame] | 1 | // 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ørgensen | 7cf245a | 2020-01-20 14:06:49 +0100 | [diff] [blame] | 5 | #include <bpf/bpf_helpers.h> |
Yonghong Song | ecb96f7 | 2018-05-24 11:21:56 -0700 | [diff] [blame] | 6 | |
Daniel T. Lee | d2e614c | 2019-02-27 02:52:26 -0500 | [diff] [blame] | 7 | SEC("kprobe/blk_mq_start_request") |
Yonghong Song | ecb96f7 | 2018-05-24 11:21:56 -0700 | [diff] [blame] | 8 | int bpf_prog1(struct pt_regs *ctx) |
| 9 | { |
| 10 | return 0; |
| 11 | } |
| 12 | |
Daniel T. Lee | 2bf8c7e | 2020-08-18 14:16:41 +0900 | [diff] [blame] | 13 | SEC("kretprobe/blk_account_io_done") |
Yonghong Song | ecb96f7 | 2018-05-24 11:21:56 -0700 | [diff] [blame] | 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; |