]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
tools/sched_ext/include: Sync bpf_arena_common.bpf.h with scx repo
authorTejun Heo <tj@kernel.org>
Sun, 8 Mar 2026 02:45:15 +0000 (16:45 -1000)
committerTejun Heo <tj@kernel.org>
Sun, 8 Mar 2026 08:45:12 +0000 (22:45 -1000)
commit9c6437f7c2e848aea2469df3396f8365d06adbb0
treeacd3a6e839bf13acf2c80cc9172b216490c1c620
parentc90af06c80a33a28f0bdba3ba136439afad4dd38
tools/sched_ext/include: Sync bpf_arena_common.bpf.h with scx repo

Sync the following changes from the scx repo:

- Guard __arena define with #ifndef to avoid redefinition when the
  attribute is already defined by another header.
- Add bpf_arena_reserve_pages() and bpf_arena_mapping_nr_pages() ksym
  declarations.
- Rename TEST to SCX_BPF_UNITTEST to avoid collision with generic TEST
  macros in other projects.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Andrea Righi <arighi@nvidia.com>
tools/sched_ext/include/scx/bpf_arena_common.bpf.h