blob: f4b0a9ea674d65eba3ca4ff2ba4b4c6fe1f5dc24 [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>
5#include "bpf_helpers.h"
6
7SEC("kprobe/blk_start_request")
8int bpf_prog1(struct pt_regs *ctx)
9{
10 return 0;
11}
12
13SEC("kretprobe/blk_account_io_completion")
14int bpf_prog2(struct pt_regs *ctx)
15{
16 return 0;
17}
18char _license[] SEC("license") = "GPL";
19u32 _version SEC("version") = LINUX_VERSION_CODE;