brintos

brintos / linux-shallow public Read only

0
0
Text · 265 B · 28f8487 Raw
14 lines · c
1// SPDX-License-Identifier: GPL-2.02#include <linux/bpf.h>3#include <bpf/bpf_helpers.h>4#include <bpf/bpf_tracing.h>5 6char _license[] SEC("license") = "GPL";7 8SEC("kprobe.multi")9int test_override(struct pt_regs *ctx)10{11	bpf_override_return(ctx, 123);12	return 0;13}14