From: Emil Tsalapatis <emil@etsalapatis.com>
To: bpf@vger.kernel.org
Cc: ast@kernel.org, andrii@kernel.org, memxor@gmail.com,
daniel@iogearbox.net, eddyz87@gmail.com,
mattbobrowski@google.com, song@kernel.org,
Emil Tsalapatis <emil@etsalapatis.com>
Subject: [PATCH RESEND bpf-next v3 0/6] selftests/bpf: libarena cleanup and bitmap struct
Date: Mon, 6 Jul 2026 14:17:24 -0400 [thread overview]
Message-ID: <20260706181730.21731-1-emil@etsalapatis.com> (raw)
Cleanup patches for libarena, along with a new bitmap data type that is
in use by sched-ext. Patch 1 is an NFC that properly renames the buddy
selftests for consistency. Patch 2 fixes the zero variable used in
libarena for can_loop based looping, and afterwrds removes all bpf_for()
instances from the code. Patch 3 fixes an (untriggered) edge case that
could cause spurious selftest failures. Finally, patches 4 to 6
introduce the bitmap data structure along with selftests.
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
CHANGELOG
=========
v3 was resent as the first submission was missing the first patch.
v2 -> v3: (https://lore.kernel.org/bpf/20260701185235.4516-1-emil@etsalapatis.com)
- Remove unused macros and fix typo in commit message (AI)
v1 -> v2: (https://lore.kernel.org/bpf/20260618085626.19633-1-emil@etsalapatis.com)
- Added acks by Ihor and Eduard
- Fix missing commit message (Ihor)
- Enforce 64 bits per cell with BITS_TO_LONG_LONG (Sashiko)
- Add test for bmp_copy (Ihor)
- Add atomic versions of _set() and _clear() (Ihor) and add a parallel
selftest for them.
Emil Tsalapatis (6):
selftests/bpf: libarena: Replace leftover st_ prefix with test_
selftests/bpf: libarena: Fix can-loop zero variable definition
selftests/bpf: libarena: Clean up allocation state before buddy tests
selftests/bpf: Add arena-based bitmap data structure
selftests/bpf: libarena: Add bitmap selftests
selftests/bpf: libarena: Add parallel bitmap selftest
.../bpf/libarena/include/libarena/bitmap.h | 34 ++
.../bpf/libarena/include/libarena/common.h | 2 +-
...asan_buddy.bpf.c => test_asan_buddy.bpf.c} | 10 +-
.../{st_asan_common.h => test_asan_common.h} | 0
.../bpf/libarena/selftests/test_bitmap.bpf.c | 394 ++++++++++++++++++
.../{st_buddy.bpf.c => test_buddy.bpf.c} | 8 +-
.../selftests/test_parallel_bitmap.bpf.c | 190 +++++++++
.../selftests/test_parallel_spmc.bpf.c | 9 +-
.../selftests/bpf/libarena/src/bitmap.bpf.c | 245 +++++++++++
.../selftests/bpf/libarena/src/common.bpf.c | 9 +-
.../selftests/bpf/prog_tests/libarena.c | 8 +-
.../selftests/bpf/prog_tests/libarena_asan.c | 8 +-
12 files changed, 900 insertions(+), 17 deletions(-)
create mode 100644 tools/testing/selftests/bpf/libarena/include/libarena/bitmap.h
rename tools/testing/selftests/bpf/libarena/selftests/{st_asan_buddy.bpf.c => test_asan_buddy.bpf.c} (98%)
rename tools/testing/selftests/bpf/libarena/selftests/{st_asan_common.h => test_asan_common.h} (100%)
create mode 100644 tools/testing/selftests/bpf/libarena/selftests/test_bitmap.bpf.c
rename tools/testing/selftests/bpf/libarena/selftests/{st_buddy.bpf.c => test_buddy.bpf.c} (97%)
create mode 100644 tools/testing/selftests/bpf/libarena/selftests/test_parallel_bitmap.bpf.c
create mode 100644 tools/testing/selftests/bpf/libarena/src/bitmap.bpf.c
--
2.54.0
next reply other threads:[~2026-07-06 18:17 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-06 18:17 Emil Tsalapatis [this message]
2026-07-06 18:17 ` [PATCH RESEND bpf-next v3 1/6] selftests/bpf: libarena: Replace leftover st_ prefix with test_ Emil Tsalapatis
2026-07-06 18:17 ` [PATCH RESEND bpf-next v3 2/6] selftests/bpf: libarena: Fix can-loop zero variable definition Emil Tsalapatis
2026-07-06 18:17 ` [PATCH RESEND bpf-next v3 3/6] selftests/bpf: libarena: Clean up allocation state before buddy tests Emil Tsalapatis
2026-07-06 18:17 ` [PATCH RESEND bpf-next v3 4/6] selftests/bpf: Add arena-based bitmap data structure Emil Tsalapatis
2026-07-06 18:27 ` sashiko-bot
2026-07-06 19:04 ` Kumar Kartikeya Dwivedi
2026-07-06 19:17 ` Emil Tsalapatis
2026-07-06 19:23 ` Kumar Kartikeya Dwivedi
2026-07-06 18:17 ` [PATCH RESEND bpf-next v3 5/6] selftests/bpf: libarena: Add bitmap selftests Emil Tsalapatis
2026-07-06 18:17 ` [PATCH RESEND bpf-next v3 6/6] selftests/bpf: libarena: Add parallel bitmap selftest Emil Tsalapatis
2026-07-06 18:32 ` sashiko-bot
2026-07-06 19:10 ` [PATCH RESEND bpf-next v3 0/6] selftests/bpf: libarena cleanup and bitmap struct patchwork-bot+netdevbpf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260706181730.21731-1-emil@etsalapatis.com \
--to=emil@etsalapatis.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=mattbobrowski@google.com \
--cc=memxor@gmail.com \
--cc=song@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox