]> www.infradead.org Git - users/jedix/linux-maple.git/commit
helpers: make few bpf helpers public
authorMykyta Yatsenko <yatsenko@meta.com>
Mon, 12 May 2025 20:53:46 +0000 (21:53 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 13 May 2025 01:29:03 +0000 (18:29 -0700)
commitd060b6aab031b6113f78cd3d1585115f13386eec
tree92b067babe341fa9525245bab1e442f060e74ada
parentfd5fd538a1f4b34cee6823ba0ddda2f7a55aca96
helpers: make few bpf helpers public

Make bpf_dynptr_slice_rdwr, bpf_dynptr_check_off_len and
__bpf_dynptr_write available outside of the helpers.c by
adding their prototypes into linux/include/bpf.h.
bpf_dynptr_check_off_len() implementation is moved to header and made
inline explicitly, as small function should typically be inlined.

These functions are going to be used from bpf_trace.c in the next
patch of this series.

Acked-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Mykyta Yatsenko <yatsenko@meta.com>
Link: https://lore.kernel.org/r/20250512205348.191079-2-mykyta.yatsenko5@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
kernel/bpf/helpers.c