Linux Audio

Check our new training course

Loading...
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0
 2#include <linux/bpf.h>
 3#include <bpf/bpf_helpers.h>
 4#include <bpf/bpf_tracing.h>
 5
 6char _license[] SEC("license") = "GPL";
 7
 8int count;
 9
10SEC("uprobe.multi/./uprobe_multi:uprobe_multi_func_*")
11int uprobe_bench(struct pt_regs *ctx)
12{
13	count++;
14	return 0;
15}
v6.8
 1// SPDX-License-Identifier: GPL-2.0
 2#include <linux/bpf.h>
 3#include <bpf/bpf_helpers.h>
 4#include <bpf/bpf_tracing.h>
 5
 6char _license[] SEC("license") = "GPL";
 7
 8int count;
 9
10SEC("uprobe.multi/./uprobe_multi:uprobe_multi_func_*")
11int uprobe_bench(struct pt_regs *ctx)
12{
13	count++;
14	return 0;
15}