Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 1 | //===-- lsan_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 | // LSan runtime flags. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | #ifndef LSAN_FLAG |
| 14 | # error "Define LSAN_FLAG prior to including this file!" |
| 15 | #endif |
| 16 | |
| 17 | // LSAN_FLAG(Type, Name, DefaultValue, Description) |
| 18 | // See COMMON_FLAG in sanitizer_flags.inc for more details. |
| 19 | |
| 20 | LSAN_FLAG(bool, report_objects, false, |
| 21 | "Print addresses of leaked objects after main leak report.") |
| 22 | LSAN_FLAG( |
| 23 | int, resolution, 0, |
| 24 | "Aggregate two objects into one leak if this many stack frames match. If " |
| 25 | "zero, the entire stack trace must match.") |
| 26 | LSAN_FLAG(int, max_leaks, 0, "The number of leaks reported.") |
Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 27 | |
| 28 | // Flags controlling the root set of reachable memory. |
| 29 | LSAN_FLAG(bool, use_globals, true, |
| 30 | "Root set: include global variables (.data and .bss)") |
| 31 | LSAN_FLAG(bool, use_stacks, true, "Root set: include thread stacks") |
| 32 | LSAN_FLAG(bool, use_registers, true, "Root set: include thread registers") |
| 33 | LSAN_FLAG(bool, use_tls, true, |
| 34 | "Root set: include TLS and thread-specific storage") |
| 35 | LSAN_FLAG(bool, use_root_regions, true, |
| 36 | "Root set: include regions added via __lsan_register_root_region().") |
| 37 | |
| 38 | LSAN_FLAG(bool, use_unaligned, false, "Consider unaligned pointers valid.") |
| 39 | LSAN_FLAG(bool, use_poisoned, false, |
| 40 | "Consider pointers found in poisoned memory to be valid.") |
| 41 | LSAN_FLAG(bool, log_pointers, false, "Debug logging") |
| 42 | LSAN_FLAG(bool, log_threads, false, "Debug logging") |
| 43 | LSAN_FLAG(const char *, suppressions, "", "Suppressions file name.") |