]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/msan/msan_flags.inc
Merge compiler-rt trunk r366426, resolve conflicts, and add
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / msan / msan_flags.inc
1 //===-- msan_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 // MSan runtime flags.
10 //
11 //===----------------------------------------------------------------------===//
12 #ifndef MSAN_FLAG
13 # error "Define MSAN_FLAG prior to including this file!"
14 #endif
15
16 // MSAN_FLAG(Type, Name, DefaultValue, Description)
17 // See COMMON_FLAG in sanitizer_flags.inc for more details.
18
19 MSAN_FLAG(int, exit_code, -1,
20           "DEPRECATED. Use exitcode from common flags instead.")
21 MSAN_FLAG(int, origin_history_size, Origin::kMaxDepth, "")
22 MSAN_FLAG(int, origin_history_per_stack_limit, 20000, "")
23 MSAN_FLAG(bool, poison_heap_with_zeroes, false, "")
24 MSAN_FLAG(bool, poison_stack_with_zeroes, false, "")
25 MSAN_FLAG(bool, poison_in_malloc, true, "")
26 MSAN_FLAG(bool, poison_in_free, true, "")
27 MSAN_FLAG(bool, poison_in_dtor, false, "")
28 MSAN_FLAG(bool, report_umrs, true, "")
29 MSAN_FLAG(bool, wrap_signals, true, "")
30 MSAN_FLAG(bool, print_stats, false, "")
31 MSAN_FLAG(bool, halt_on_error, !&__msan_keep_going, "")
32 MSAN_FLAG(bool, atexit, false, "")
33 MSAN_FLAG(int, store_context_size, 20,
34           "Like malloc_context_size, but for uninit stores.")