1 //===-- hwasan_flags.inc ------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Hwasan runtime flags.
12 //===----------------------------------------------------------------------===//
14 # error "Define HWASAN_FLAG prior to including this file!"
17 // HWASAN_FLAG(Type, Name, DefaultValue, Description)
18 // See COMMON_FLAG in sanitizer_flags.inc for more details.
20 HWASAN_FLAG(bool, tag_in_malloc, true, "")
21 HWASAN_FLAG(bool, tag_in_free, true, "")
22 HWASAN_FLAG(bool, retag_in_realloc, true, "")
23 HWASAN_FLAG(bool, print_stats, false, "")
24 HWASAN_FLAG(bool, halt_on_error, true, "")
25 HWASAN_FLAG(bool, atexit, false, "")
27 // Test only flag to disable malloc/realloc/free memory tagging on startup.
28 // Tagging can be reenabled with __hwasan_enable_allocator_tagging().
29 HWASAN_FLAG(bool, disable_allocator_tagging, false, "")
31 // If false, use simple increment of a thread local counter to generate new
33 HWASAN_FLAG(bool, random_tags, true, "")