xref: /openbmc/linux/tools/testing/selftests/bpf/progs/uprobe_multi_usdt.c (revision c900529f3d9161bfde5cca0754f83b4d3c3e0220)
1*85209e83SJiri Olsa // SPDX-License-Identifier: GPL-2.0
2*85209e83SJiri Olsa 
3*85209e83SJiri Olsa #include "vmlinux.h"
4*85209e83SJiri Olsa #include <bpf/bpf_helpers.h>
5*85209e83SJiri Olsa #include <bpf/usdt.bpf.h>
6*85209e83SJiri Olsa 
7*85209e83SJiri Olsa char _license[] SEC("license") = "GPL";
8*85209e83SJiri Olsa 
9*85209e83SJiri Olsa int count;
10*85209e83SJiri Olsa 
11*85209e83SJiri Olsa SEC("usdt")
usdt0(struct pt_regs * ctx)12*85209e83SJiri Olsa int usdt0(struct pt_regs *ctx)
13*85209e83SJiri Olsa {
14*85209e83SJiri Olsa 	count++;
15*85209e83SJiri Olsa 	return 0;
16*85209e83SJiri Olsa }
17