]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/hwasan/hwasan_flags.inc
Merge ^/head r338690 through r338730.
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / hwasan / hwasan_flags.inc
1 //===-- hwasan_flags.inc ------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Hwasan runtime flags.
11 //
12 //===----------------------------------------------------------------------===//
13 #ifndef HWASAN_FLAG
14 # error "Define HWASAN_FLAG prior to including this file!"
15 #endif
16
17 // HWASAN_FLAG(Type, Name, DefaultValue, Description)
18 // See COMMON_FLAG in sanitizer_flags.inc for more details.
19
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, "")
26
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, "")
30
31 // If false, use simple increment of a thread local counter to generate new
32 // tags.
33 HWASAN_FLAG(bool, random_tags, true, "")