2015-01-20 20:19:14 +08:00
|
|
|
//===-- asan_activation_flags.inc -------------------------------*- C++ -*-===//
|
|
|
|
//
|
2019-01-19 16:50:56 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-01-20 20:19:14 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// A subset of ASan (and common) runtime flags supported at activation time.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef ASAN_ACTIVATION_FLAG
|
|
|
|
# error "Define ASAN_ACTIVATION_FLAG prior to including this file!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef COMMON_ACTIVATION_FLAG
|
|
|
|
# error "Define COMMON_ACTIVATION_FLAG prior to including this file!"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// ASAN_ACTIVATION_FLAG(Type, Name)
|
|
|
|
// See COMMON_FLAG in sanitizer_flags.inc for more details.
|
|
|
|
|
|
|
|
ASAN_ACTIVATION_FLAG(int, redzone)
|
|
|
|
ASAN_ACTIVATION_FLAG(int, max_redzone)
|
|
|
|
ASAN_ACTIVATION_FLAG(int, quarantine_size_mb)
|
2017-01-13 02:51:25 +08:00
|
|
|
ASAN_ACTIVATION_FLAG(int, thread_local_quarantine_size_kb)
|
2015-01-20 20:19:14 +08:00
|
|
|
ASAN_ACTIVATION_FLAG(bool, alloc_dealloc_mismatch)
|
|
|
|
ASAN_ACTIVATION_FLAG(bool, poison_heap)
|
|
|
|
|
|
|
|
COMMON_ACTIVATION_FLAG(bool, allocator_may_return_null)
|
|
|
|
COMMON_ACTIVATION_FLAG(int, malloc_context_size)
|
|
|
|
COMMON_ACTIVATION_FLAG(bool, coverage)
|
|
|
|
COMMON_ACTIVATION_FLAG(const char *, coverage_dir)
|
2015-01-20 21:21:20 +08:00
|
|
|
COMMON_ACTIVATION_FLAG(int, verbosity)
|
2015-01-20 20:19:14 +08:00
|
|
|
COMMON_ACTIVATION_FLAG(bool, help)
|
2016-11-29 08:22:50 +08:00
|
|
|
COMMON_ACTIVATION_FLAG(s32, allocator_release_to_os_interval_ms)
|