xref: /linux/tools/testing/selftests/bpf/progs/kprobe_multi_override.c (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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 
6 char _license[] SEC("license") = "GPL";
7 
8 SEC("kprobe.multi")
9 int test_override(struct pt_regs *ctx)
10 {
11 	bpf_override_return(ctx, 123);
12 	return 0;
13 }
14