1 //===-- msan_flags.h --------------------------------------------*- 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 // This file is a part of MemorySanitizer. 11 // 12 // MemorySanitizer allocator. 13 //===----------------------------------------------------------------------===// 14 #ifndef MSAN_FLAGS_H 15 #define MSAN_FLAGS_H 16 17 namespace __msan { 18 19 // Flags. 20 struct Flags { 21 int exit_code; 22 int num_callers; 23 int verbosity; 24 bool poison_heap_with_zeroes; // default: false 25 bool poison_stack_with_zeroes; // default: false 26 bool poison_in_malloc; // default: true 27 bool report_umrs; 28 const char *strip_path_prefix; 29 // Use fast (frame-pointer-based) unwinder on fatal errors (if available). 30 bool fast_unwind_on_fatal; 31 // Use fast (frame-pointer-based) unwinder on malloc/free (if available). 32 bool fast_unwind_on_malloc; 33 }; 34 35 Flags *flags(); 36 37 } // namespace __msan 38 39 #endif // MSAN_FLAGS_H 40