public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/4] likely/unlikely for bpf_helpers
@ 2025-03-31  8:13 Anton Protopopov
  2025-03-31  8:13 ` [PATCH bpf-next 1/4] bpf: fix a comment describing bpf_attr Anton Protopopov
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Anton Protopopov @ 2025-03-31  8:13 UTC (permalink / raw)
  To: bpf; +Cc: Andrii Nakryiko, Anton Protopopov

Andrii suggested to send this piece with small fixes
separately from the insn set rfc.

The first patch fixes a comment in <linux/bpf.h>, and the latter
three patches add likely/unlikely macros to <bph/bpf_helpers.h>.
The reason there are three patches and not one is to separate
libbpf changes such that userspace libbpf can be updated more
easily, and the order is such that each commit can be built.

Anton Protopopov (4):
  bpf: fix a comment describing bpf_attr
  selftests/bpf: add guard macros around likely/unlikely
  libbpf: add likely/unlikely macros
  selftests/bpf: remove likely/unlikely definitions

 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] 7+ messages in thread

end of thread, other threads:[~2025-03-31 20:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31  8:13 [PATCH bpf-next 0/4] likely/unlikely for bpf_helpers Anton Protopopov
2025-03-31  8:13 ` [PATCH bpf-next 1/4] bpf: fix a comment describing bpf_attr Anton Protopopov
2025-03-31  8:13 ` [PATCH bpf-next 2/4] selftests/bpf: add guard macros around likely/unlikely Anton Protopopov
2025-03-31  8:13 ` [PATCH bpf-next 3/4] libbpf: add likely/unlikely macros Anton Protopopov
2025-03-31  8:13 ` [PATCH bpf-next 4/4] selftests/bpf: remove likely/unlikely definitions Anton Protopopov
2025-03-31 20:12 ` [PATCH bpf-next 0/4] likely/unlikely for bpf_helpers Andrii Nakryiko
2025-03-31 20:38   ` Anton Protopopov

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