summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorEmil Tsalapatis <emil@etsalapatis.com>2026-08-17 15:16:16 -0400
committerKumar Kartikeya Dwivedi <memxor@gmail.com>2026-08-20 21:01:43 +0200
commit8be79805b06e23ebdb7321fe3cdb788e949c984e (patch)
tree306b5183cea58411949ee3c7e278ce1000319f5b /scripts/Makefile.thinlto
parent047099824cbe646c590478550b511530a70969f2 (diff)
downloadlinux-next-8be79805b06e23ebdb7321fe3cdb788e949c984e.tar.gz
linux-next-8be79805b06e23ebdb7321fe3cdb788e949c984e.zip
selftests/bpf: libarena: Optimize and make public arena_memset
Clang currently provides no __builtin_{memset, memcpy, memcmp} for its BPF backend. This is especially an issue for arena code that is more likely to do these operations on buffers with user-provided bounds. One example is the arena ASAN implementation that uses memset to update the shadow bitmap. Arena ASAN actually already has a naive implementation of this operation. Another user would be a calloc() call that has to zero the memory it returns. Introduce a more optimized version of the memset() operation for arena memory and make it public to all libarena users. The operation uses word-sized assignments to speed up the function for larger sizes. We expose the function through common.h to allow for inlining from the callers. Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com> Link: https://lore.kernel.org/bpf/20260817191616.11071-7-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