BPF List
 help / color / mirror / Atom feed
* [PATCH v2 bpf-next 0/2] likely/unlikely for bpf_helpers and a small comment fix
@ 2025-03-31 20:36 Anton Protopopov
  2025-03-31 20:36 ` [PATCH bpf-next 1/2] bpf: fix a comment describing bpf_attr Anton Protopopov
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Anton Protopopov @ 2025-03-31 20:36 UTC (permalink / raw)
  To: bpf; +Cc: Andrii Nakryiko, Anton Protopopov

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(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-04-04 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 20:36 [PATCH v2 bpf-next 0/2] likely/unlikely for bpf_helpers and a small comment fix Anton Protopopov
2025-03-31 20:36 ` [PATCH bpf-next 1/2] bpf: fix a comment describing bpf_attr Anton Protopopov
2025-03-31 20:36 ` [PATCH bpf-next 2/2] libbpf: add likely/unlikely macros and use them in selftests Anton Protopopov
2025-04-04 16:00 ` [PATCH v2 bpf-next 0/2] likely/unlikely for bpf_helpers and a small comment fix patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox