1 // SPDX-License-Identifier: GPL-2.0 2 3 #include "vmlinux.h" 4 #include <bpf/bpf_helpers.h> 5 #include <bpf/bpf_tracing.h> 6 7 void *user_ptr = 0; 8 9 SEC("kprobe.multi") 10 int handle_kprobe_multi_sleepable(struct pt_regs *ctx) 11 { 12 int a, err; 13 14 err = bpf_copy_from_user(&a, sizeof(a), user_ptr); 15 barrier_var(a); 16 return err; 17 } 18 19 SEC("fentry/bpf_fentry_test1") 20 int BPF_PROG(fentry) 21 { 22 return 0; 23 } 24 25 char _license[] SEC("license") = "GPL"; 26