diff options
| author | Emil Tsalapatis <emil@etsalapatis.com> | 2026-04-26 15:03:35 -0400 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-04-26 18:12:22 -0700 |
| commit | cfc00618b9dfc75cd507f1a4f0d83b4429627399 (patch) | |
| tree | 080cd3bd0295f57c2b5577e485f9c79876ac5baf /tools/testing/selftests/bpf/libarena/src | |
| parent | 9ab78691eb5fd0d3ad0a1994d4103223678eb78b (diff) | |
| download | lwn-cfc00618b9dfc75cd507f1a4f0d83b4429627399.tar.gz lwn-cfc00618b9dfc75cd507f1a4f0d83b4429627399.zip | |
selftests/bpf: Add ASAN support for libarena selftests
Expand the arena library selftest infrastructure to support
address sanitization. Add the compiler flags necessary to
compile the library under ASAN when supported.
Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://lore.kernel.org/r/20260426190338.4615-6-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/libarena/src')
| -rw-r--r-- | tools/testing/selftests/bpf/libarena/src/common.bpf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/libarena/src/common.bpf.c b/tools/testing/selftests/bpf/libarena/src/common.bpf.c index 659ccead5624..84e8a8b7d42e 100644 --- a/tools/testing/selftests/bpf/libarena/src/common.bpf.c +++ b/tools/testing/selftests/bpf/libarena/src/common.bpf.c @@ -2,6 +2,8 @@ /* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */ #include <libarena/common.h> +#include <libarena/asan.h> + const volatile u32 zero = 0; int arena_fls(__u64 word) |
