All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/4] selftests/bpf: libarena: compatibility fixups
@ 2026-10-27 16:29 Emil Tsalapatis
  2026-10-27 16:29 ` [PATCH bpf-next 1/4] libarena: remove in-code licenses Emil Tsalapatis
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Emil Tsalapatis @ 2026-10-27 16:29 UTC (permalink / raw)
  To: bpf; +Cc: ast, andrii, eddyz87, memxor, daniel, Emil Tsalapatis

This patchset fixes several issues found while integrating with large
BPF codebases.

Patch 1 fixes a mismatch between the in-code licenses for some files
that do not actually correspond to the licenses at the top of the file.
Remove the in-code license sections, since libarena is distributed only
as source code anyway.

Patches 2-3 add an explicit allocator growth call. Some allocator
users prefer to explicitly expand the arena instead of implicitly
letting the allocator do so when required to satisfy an alloc. The
change is non-functional for existing users.

Patch 4 changes the type of the volatile zero variable used for loop
convergence to __u32. This is available from <linux/types.h>, while u32
needs to be typedef'ed in for userspace programs.

Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>

Emil Tsalapatis (4):
  libarena: remove in-code licenses
  selftests/bpf: libarena: make allocator growth on alloc failure
    optional
  selftests/bpf: libarena: add explicit buddy_grow() call
  selftests/bpf: libarena: Make zero variable type __u32 instead of u32

 .../bpf/libarena/include/libarena/buddy.h     |  2 +
 .../bpf/libarena/include/libarena/common.h    |  2 +-
 .../selftests/bpf/libarena/src/asan.bpf.c     |  2 -
 .../selftests/bpf/libarena/src/buddy.bpf.c    | 48 +++++++++++++++++--
 .../selftests/bpf/libarena/src/common.bpf.c   |  4 +-
 5 files changed, 48 insertions(+), 10 deletions(-)

-- 
2.52.0


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

end of thread, other threads:[~2026-10-27 16:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 16:29 [PATCH bpf-next 0/4] selftests/bpf: libarena: compatibility fixups Emil Tsalapatis
2026-10-27 16:29 ` [PATCH bpf-next 1/4] libarena: remove in-code licenses Emil Tsalapatis
2026-10-27 16:36   ` sashiko-bot
2026-10-27 16:29 ` [PATCH bpf-next 2/4] selftests/bpf: libarena: make allocator growth on alloc failure optional Emil Tsalapatis
2026-10-27 16:29 ` [PATCH bpf-next 3/4] selftests/bpf: libarena: add explicit buddy_grow() call Emil Tsalapatis
2026-10-27 16:52   ` sashiko-bot
2026-10-27 16:29 ` [PATCH bpf-next 4/4] selftests/bpf: libarena: Make zero variable type __u32 instead of u32 Emil Tsalapatis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.