1 //===-- asan_activation_flags.inc -------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // A subset of ASan (and common) runtime flags supported at activation time.
11 //===----------------------------------------------------------------------===//
12 #ifndef ASAN_ACTIVATION_FLAG
13 # error "Define ASAN_ACTIVATION_FLAG prior to including this file!"
16 #ifndef COMMON_ACTIVATION_FLAG
17 # error "Define COMMON_ACTIVATION_FLAG prior to including this file!"
20 // ASAN_ACTIVATION_FLAG(Type, Name)
21 // See COMMON_FLAG in sanitizer_flags.inc for more details.
23 ASAN_ACTIVATION_FLAG(int, redzone)
24 ASAN_ACTIVATION_FLAG(int, max_redzone)
25 ASAN_ACTIVATION_FLAG(int, quarantine_size_mb)
26 ASAN_ACTIVATION_FLAG(int, thread_local_quarantine_size_kb)
27 ASAN_ACTIVATION_FLAG(bool, alloc_dealloc_mismatch)
28 ASAN_ACTIVATION_FLAG(bool, poison_heap)
30 COMMON_ACTIVATION_FLAG(bool, allocator_may_return_null)
31 COMMON_ACTIVATION_FLAG(int, malloc_context_size)
32 COMMON_ACTIVATION_FLAG(bool, coverage)
33 COMMON_ACTIVATION_FLAG(const char *, coverage_dir)
34 COMMON_ACTIVATION_FLAG(int, verbosity)
35 COMMON_ACTIVATION_FLAG(bool, help)
36 COMMON_ACTIVATION_FLAG(s32, allocator_release_to_os_interval_ms)