xref: /linux/tools/testing/selftests/bpf/progs/uprobe_syscall_executed.c (revision 55d0969c451159cff86949b38c39171cab962069)
1 // SPDX-License-Identifier: GPL-2.0
2 #include "vmlinux.h"
3 #include <bpf/bpf_helpers.h>
4 #include <string.h>
5 
6 struct pt_regs regs;
7 
8 char _license[] SEC("license") = "GPL";
9 
10 int executed = 0;
11 
12 SEC("uretprobe.multi")
13 int test(struct pt_regs *regs)
14 {
15 	executed = 1;
16 	return 0;
17 }
18