summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/uprobe_syscall_executed.c
blob: 0d7f1a7db2e2eccf025aa9322a068ba3d682bebc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: GPL-2.0
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <string.h>

struct pt_regs regs;

char _license[] SEC("license") = "GPL";

int executed = 0;

SEC("uretprobe.multi")
int test(struct pt_regs *regs)
{
	executed = 1;
	return 0;
}