xref: /openbmc/linux/samples/bpf/tracex7.bpf.c (revision 6db6b729)
1 #include "vmlinux.h"
2 #include <linux/version.h>
3 #include <bpf/bpf_helpers.h>
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;
16