mbox series

[v2,bpf-next,0/2] likely/unlikely for bpf_helpers and a small comment fix

Message ID 20250331203618.1973691-1-a.s.protopopov@gmail.com (mailing list archive)
Headers show
Series likely/unlikely for bpf_helpers and a small comment fix | expand

Message

Anton Protopopov March 31, 2025, 8:36 p.m. UTC
These two commits fix a comment describing bpf_attr in <linux/bpf.h>
and add likely/unlikely macros to <bph/bpf_helpers.h> to be consumed
by selftests and, later, by the static_branch_likely/unlikely macros.

v1 -> v2:
  * squash libbpf and selftests fixes into one patch (Andrii)

Anton Protopopov (2):
  bpf: fix a comment describing bpf_attr
  libbpf: add likely/unlikely macros and use them in selftests

 include/uapi/linux/bpf.h                          | 2 +-
 tools/include/uapi/linux/bpf.h                    | 2 +-
 tools/lib/bpf/bpf_helpers.h                       | 8 ++++++++
 tools/testing/selftests/bpf/bpf_arena_spin_lock.h | 3 ---
 tools/testing/selftests/bpf/progs/iters.c         | 2 --
 5 files changed, 10 insertions(+), 7 deletions(-)