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
17namespace __msan {
18
19// Flags.
20struct Flags {
21  int exit_code;
22  int origin_history_size;
23  int origin_history_per_stack_limit;
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 poison_in_free;  // default: true
28  bool report_umrs;
29  bool wrap_signals;
30  bool print_stats;
31  bool halt_on_error;
32  bool atexit;
33  int store_context_size; // like malloc_context_size, but for uninit stores
34};
35
36Flags *flags();
37
38}  // namespace __msan
39
40#endif  // MSAN_FLAGS_H
41