aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/progs/uprobe_multi_bench.c
blob: 5367f6105e30333d35fc0001c3833fb8f391094d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// SPDX-License-Identifier: GPL-2.0
#include <linux/bpf.h>
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>

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

int count;

SEC("uprobe.multi/./uprobe_multi:uprobe_multi_func_*")
int uprobe_bench(struct pt_regs *ctx)
{
	count++;
	return 0;
}