1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017 Facebook
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
7 #include <bpf/bpf_core_read.h>
11 int kretprobe_res = 0;
13 int uretprobe_res = 0;
14 int uprobe_byname_res = 0;
18 int handle_kprobe(struct pt_regs *ctx)
25 int handle_kretprobe(struct pt_regs *ctx)
32 int handle_uprobe(struct pt_regs *ctx)
39 int handle_uretprobe(struct pt_regs *ctx)
46 int handle_uprobe_byname(struct pt_regs *ctx)
48 uprobe_byname_res = 5;
53 char _license[] SEC("license") = "GPL";