History

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.

Andrii Nakryiko committed 5 years ago

Commit b7906b71 parent a06caa44 files · +8 −8Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/bpf.h+2−2
@@ -3897,8 +3897,8 @@ union bpf_attr { · 3896 unmodified lines
3897 FN(seq_printf_btf), \3897 FN(seq_printf_btf), \
3898 FN(skb_cgroup_classid), \3898 FN(skb_cgroup_classid), \
3899 FN(redirect_neigh), \3899 FN(redirect_neigh), \
3900 FN(bpf_per_cpu_ptr), \3900 FN(per_cpu_ptr), \
3901 FN(bpf_this_cpu_ptr), \3901 FN(this_cpu_ptr), \
3902 FN(redirect_peer), \3902 FN(redirect_peer), \
3903 /* */3903 /* */
3904 3904