aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-02-29 15:11:11 -0800
committerAlexei Starovoitov <ast@kernel.org>2020-03-02 16:25:14 -0800
commit396f544ed5e5a9c40de5663b774f643644cba059 (patch)
tree33208526d4177af87a61d5f2fdc6fdc521ccc8b9 /include/linux/bpf.h
parentlibbpf: Fix use of PT_REGS_PARM macros with vmlinux.h (diff)
downloadwireguard-linux-396f544ed5e5a9c40de5663b774f643644cba059.tar.xz
wireguard-linux-396f544ed5e5a9c40de5663b774f643644cba059.zip
selftests/bpf: Fix BPF_KRETPROBE macro and use it in attach_probe test
For kretprobes, there is no point in capturing input arguments from pt_regs, as they are going to be, most probably, clobbered by the time probed kernel function returns. So switch BPF_KRETPROBE to accept zero or one argument (optional return result). Fixes: ac065870d928 ("selftests/bpf: Add BPF_PROG, BPF_KPROBE, and BPF_KRETPROBE macros") Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Link: https://lore.kernel.org/bpf/20200229231112.1240137-4-andriin@fb.com
Diffstat (limited to 'include/linux/bpf.h')
0 files changed, 0 insertions, 0 deletions