xref: /aosp_15_r20/external/compiler-rt/lib/msan/msan_flags.inc (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1*7c3d14c8STreehugger Robot//===-- msan_flags.inc ------------------------------------------*- C++ -*-===//
2*7c3d14c8STreehugger Robot//
3*7c3d14c8STreehugger Robot//                     The LLVM Compiler Infrastructure
4*7c3d14c8STreehugger Robot//
5*7c3d14c8STreehugger Robot// This file is distributed under the University of Illinois Open Source
6*7c3d14c8STreehugger Robot// License. See LICENSE.TXT for details.
7*7c3d14c8STreehugger Robot//
8*7c3d14c8STreehugger Robot//===----------------------------------------------------------------------===//
9*7c3d14c8STreehugger Robot//
10*7c3d14c8STreehugger Robot// MSan runtime flags.
11*7c3d14c8STreehugger Robot//
12*7c3d14c8STreehugger Robot//===----------------------------------------------------------------------===//
13*7c3d14c8STreehugger Robot#ifndef MSAN_FLAG
14*7c3d14c8STreehugger Robot# error "Define MSAN_FLAG prior to including this file!"
15*7c3d14c8STreehugger Robot#endif
16*7c3d14c8STreehugger Robot
17*7c3d14c8STreehugger Robot// MSAN_FLAG(Type, Name, DefaultValue, Description)
18*7c3d14c8STreehugger Robot// See COMMON_FLAG in sanitizer_flags.inc for more details.
19*7c3d14c8STreehugger Robot
20*7c3d14c8STreehugger RobotMSAN_FLAG(int, exit_code, -1,
21*7c3d14c8STreehugger Robot          "DEPRECATED. Use exitcode from common flags instead.")
22*7c3d14c8STreehugger RobotMSAN_FLAG(int, origin_history_size, Origin::kMaxDepth, "")
23*7c3d14c8STreehugger RobotMSAN_FLAG(int, origin_history_per_stack_limit, 20000, "")
24*7c3d14c8STreehugger RobotMSAN_FLAG(bool, poison_heap_with_zeroes, false, "")
25*7c3d14c8STreehugger RobotMSAN_FLAG(bool, poison_stack_with_zeroes, false, "")
26*7c3d14c8STreehugger RobotMSAN_FLAG(bool, poison_in_malloc, true, "")
27*7c3d14c8STreehugger RobotMSAN_FLAG(bool, poison_in_free, true, "")
28*7c3d14c8STreehugger RobotMSAN_FLAG(bool, poison_in_dtor, false, "")
29*7c3d14c8STreehugger RobotMSAN_FLAG(bool, report_umrs, true, "")
30*7c3d14c8STreehugger RobotMSAN_FLAG(bool, wrap_signals, true, "")
31*7c3d14c8STreehugger RobotMSAN_FLAG(bool, print_stats, false, "")
32*7c3d14c8STreehugger RobotMSAN_FLAG(bool, halt_on_error, !&__msan_keep_going, "")
33*7c3d14c8STreehugger RobotMSAN_FLAG(bool, atexit, false, "")
34*7c3d14c8STreehugger RobotMSAN_FLAG(int, store_context_size, 20,
35*7c3d14c8STreehugger Robot          "Like malloc_context_size, but for uninit stores.")
36