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, song@kernel.org,
mattbobrowski@google.com, Emil Tsalapatis <emil@etsalapatis.com>
Subject: [RESEND PATCH bpf-next 0/2] selftests/bpf: libarena: Add initial data structures
Date: Mon, 11 May 2026 17:40:58 -0400 [thread overview]
Message-ID: <20260511214100.9487-1-emil@etsalapatis.com> (raw)
Add two new data structures to libarena. These data structures initially
resided in the sched-ext repo (https://github.com/sched-ext/scx) and
have been adapted to the internal libarena build system. The data
structures are:
- Red black tree: Fundamental tree data structure that can also serve
as a base for more domain-specific data structures.
- Lev-Chase deque: Queue data structure that allows efficient work
stealing, useful in scheduling scenarios.
The data structures are accompanied by selftests that are automatically
discovered by the existing libarena test_progs selftest and incorporated
in the CI.
Emil Tsalapatis (2):
selftests/bpf: libarena: Add rbtree data structure
selftests/bpf: libarena: Add Lev-Chase queue data structure
.../bpf/libarena/include/libarena/lvqueue.h | 33 +
.../bpf/libarena/include/libarena/rbtree.h | 89 ++
.../bpf/libarena/selftests/st_lvqueue.bpf.c | 194 ++++
.../bpf/libarena/selftests/st_rbtree.bpf.c | 974 ++++++++++++++++
.../selftests/bpf/libarena/src/lvqueue.bpf.c | 241 ++++
.../selftests/bpf/libarena/src/rbtree.bpf.c | 1032 +++++++++++++++++
6 files changed, 2563 insertions(+)
create mode 100644 tools/testing/selftests/bpf/libarena/include/libarena/lvqueue.h
create mode 100644 tools/testing/selftests/bpf/libarena/include/libarena/rbtree.h
create mode 100644 tools/testing/selftests/bpf/libarena/selftests/st_lvqueue.bpf.c
create mode 100644 tools/testing/selftests/bpf/libarena/selftests/st_rbtree.bpf.c
create mode 100644 tools/testing/selftests/bpf/libarena/src/lvqueue.bpf.c
create mode 100644 tools/testing/selftests/bpf/libarena/src/rbtree.bpf.c
---
Resending this because I typo'ed Matt's email _again_, sorry about
that.
--
2.54.0
next reply other threads:[~2026-05-11 21:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 21:40 Emil Tsalapatis [this message]
2026-05-11 21:40 ` [RESEND PATCH bpf-next 1/2] selftests/bpf: libarena: Add rbtree data structure Emil Tsalapatis
2026-05-11 22:24 ` bot+bpf-ci
2026-05-11 21:41 ` [RESEND PATCH bpf-next 2/2] selftests/bpf: libarena: Add Lev-Chase queue " Emil Tsalapatis
2026-05-11 22:12 ` bot+bpf-ci
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=20260511214100.9487-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