Commit | Line | Data |
---|---|---|
e7e6c774 | 1 | #include "vmlinux.h" |
965de87e | 2 | #include <linux/version.h> |
7cf245a3 | 3 | #include <bpf/bpf_helpers.h> |
965de87e JB |
4 | |
5 | SEC("kprobe/open_ctree") | |
6 | int bpf_prog1(struct pt_regs *ctx) | |
7 | { | |
8 | unsigned long rc = -12; | |
9 | ||
10 | bpf_override_return(ctx, rc); | |
11 | return 0; | |
12 | } | |
13 | ||
14 | char _license[] SEC("license") = "GPL"; | |
15 | u32 _version SEC("version") = LINUX_VERSION_CODE; |