bpf: Extend bpf_base_func_proto helpers with bpf_get_current_task_btf()
authorDaniel Xu <dxu@dxuuu.xyz>
Tue, 24 Aug 2021 02:43:48 +0000 (19:43 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Aug 2021 17:37:05 +0000 (10:37 -0700)
commita396eda5517ac958fb4eb7358f4708eb829058c4
treea709d88f5714c1737f4100b3ec58d61671b2758f
parent33c5cb36015ac1034b50b823fae367e908d05147
bpf: Extend bpf_base_func_proto helpers with bpf_get_current_task_btf()

bpf_get_current_task() is already supported so it's natural to also
include the _btf() variant for btf-powered helpers.

This is required for non-tracing progs to use bpf_task_pt_regs() in the
next commit.

Signed-off-by: Daniel Xu <dxu@dxuuu.xyz>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/f99870ed5f834c9803d73b3476f8272b1bb987c0.1629772842.git.dxu@dxuuu.xyz
kernel/bpf/helpers.c
kernel/trace/bpf_trace.c