bpf: Fix enum names for bpf_this_cpu_ptr() and bpf_per_cpu_ptr() helpers
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 11 Dec 2020 21:36:25 +0000 (22:36 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Dec 2020 22:19:07 +0000 (14:19 -0800)
commitb7906b70a2337e445b8dca3ce7ba8976b6ebd07d
tree1a83ccd888764451ba9c81cee95db8b3bc4f8f1f
parenta06caa4a68ce7d134b342966e65e7bd2dfa2eead
bpf: Fix enum names for bpf_this_cpu_ptr() and bpf_per_cpu_ptr() helpers

Remove bpf_ prefix, which causes these helpers to be reported in verifier
dump as bpf_bpf_this_cpu_ptr() and bpf_bpf_per_cpu_ptr(), respectively. Lets
fix it as long as it is still possible before UAPI freezes on these helpers.

Fixes: eaa6bcb71ef6 ("bpf: Introduce bpf_per_cpu_ptr()")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/uapi/linux/bpf.h
kernel/bpf/helpers.c
kernel/trace/bpf_trace.c
tools/include/uapi/linux/bpf.h