blob: c5a92df8ac311c781cc2f89c615d28b63f2e12c7 [file] [log] [blame]
Josef Bacik965de872017-12-11 11:36:49 -05001#include <uapi/linux/ptrace.h>
2#include <uapi/linux/bpf.h>
3#include <linux/version.h>
Toke Høiland-Jørgensen7cf245a2020-01-20 14:06:49 +01004#include <bpf/bpf_helpers.h>
Josef Bacik965de872017-12-11 11:36:49 -05005
6SEC("kprobe/open_ctree")
7int bpf_prog1(struct pt_regs *ctx)
8{
9 unsigned long rc = -12;
10
11 bpf_override_return(ctx, rc);
12 return 0;
13}
14
15char _license[] SEC("license") = "GPL";
16u32 _version SEC("version") = LINUX_VERSION_CODE;