1//===-- asan_activation_flags.inc -------------------------------*- C++ -*-===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8//
9// A subset of ASan (and common) runtime flags supported at activation time.
10//
11//===----------------------------------------------------------------------===//
12#ifndef ASAN_ACTIVATION_FLAG
13# error "Define ASAN_ACTIVATION_FLAG prior to including this file!"
14#endif
15
16#ifndef COMMON_ACTIVATION_FLAG
17# error "Define COMMON_ACTIVATION_FLAG prior to including this file!"
18#endif
19
20// ASAN_ACTIVATION_FLAG(Type, Name)
21// See COMMON_FLAG in sanitizer_flags.inc for more details.
22
23ASAN_ACTIVATION_FLAG(int, redzone)
24ASAN_ACTIVATION_FLAG(int, max_redzone)
25ASAN_ACTIVATION_FLAG(int, quarantine_size_mb)
26ASAN_ACTIVATION_FLAG(int, thread_local_quarantine_size_kb)
27ASAN_ACTIVATION_FLAG(bool, alloc_dealloc_mismatch)
28ASAN_ACTIVATION_FLAG(bool, poison_heap)
29
30COMMON_ACTIVATION_FLAG(bool, allocator_may_return_null)
31COMMON_ACTIVATION_FLAG(int, malloc_context_size)
32COMMON_ACTIVATION_FLAG(bool, coverage)
33COMMON_ACTIVATION_FLAG(const char *, coverage_dir)
34COMMON_ACTIVATION_FLAG(int, verbosity)
35COMMON_ACTIVATION_FLAG(bool, help)
36COMMON_ACTIVATION_FLAG(s32, allocator_release_to_os_interval_ms)
37