asan_activation_flags.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef COMMON_ACTIVATION_FLAG
  16. # error "Define COMMON_ACTIVATION_FLAG prior to including this file!"
  17. #endif
  18. // ASAN_ACTIVATION_FLAG(Type, Name)
  19. // See COMMON_FLAG in sanitizer_flags.inc for more details.
  20. ASAN_ACTIVATION_FLAG(int, redzone)
  21. ASAN_ACTIVATION_FLAG(int, max_redzone)
  22. ASAN_ACTIVATION_FLAG(int, quarantine_size_mb)
  23. ASAN_ACTIVATION_FLAG(int, thread_local_quarantine_size_kb)
  24. ASAN_ACTIVATION_FLAG(bool, alloc_dealloc_mismatch)
  25. ASAN_ACTIVATION_FLAG(bool, poison_heap)
  26. COMMON_ACTIVATION_FLAG(bool, allocator_may_return_null)
  27. COMMON_ACTIVATION_FLAG(int, malloc_context_size)
  28. COMMON_ACTIVATION_FLAG(bool, coverage)
  29. COMMON_ACTIVATION_FLAG(const char *, coverage_dir)
  30. COMMON_ACTIVATION_FLAG(int, verbosity)
  31. COMMON_ACTIVATION_FLAG(bool, help)
  32. COMMON_ACTIVATION_FLAG(s32, allocator_release_to_os_interval_ms)