summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2026-08-17 15:16:12 -0400
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-08-20 21:01:42 +0200
commitdb00d61fa433d40fe444d8887d143b895372b274 (patch)
tree4ee3e87592413af32311d9a2771e1b2ee6505304 /scripts/Makefile.thinlto
parentee66e3796b80b8d95430ad5d765b4ab24be06d52 (diff)
downloadlinux-next-db00d61fa433d40fe444d8887d143b895372b274.tar.gz
linux-next-db00d61fa433d40fe444d8887d143b895372b274.zip
selftests/bpf: libarena: Inline nonatomic bitmap operations
The libarena code currently defines the non-atomic bitmap set/get operations as __weak functions, in accordance with the libarena coding style. This, however, is significant overhead to call functions that span single-digit instructions. Make an exception and expose the getters/setters as static inline functions in the header. Since the function body is now inlined into the caller, mark reads/writes with READ_ONCE()/WRITE_ONCE() to prevent compiler optimizations from breaking code that locklessly polls the bitmap. Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Link: https://lore.kernel.org/bpf/20260817191616.11071-3-emil@etsalapatis.com Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions