Merge tag 'drm-fixes-for-v4.16-rc6' of git://people.freedesktop.org/~airlied/linux
[linux/fpc-iii.git] / samples / bpf / tracex7_kern.c
blob1ab308a43e0ff0dd99d156c05536eef41717a2be
1 #include <uapi/linux/ptrace.h>
2 #include <uapi/linux/bpf.h>
3 #include <linux/version.h>
4 #include "bpf_helpers.h"
6 SEC("kprobe/open_ctree")
7 int bpf_prog1(struct pt_regs *ctx)
9 unsigned long rc = -12;
11 bpf_override_return(ctx, rc);
12 return 0;
15 char _license[] SEC("license") = "GPL";
16 u32 _version SEC("version") = LINUX_VERSION_CODE;