annotate libsanitizer/lsan/lsan_flags.inc @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 //===-- lsan_flags.inc ------------------------------------------*- C++ -*-===//
kono
parents:
diff changeset
2 //
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
4 // See https://llvm.org/LICENSE.txt for license information.
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
111
kono
parents:
diff changeset
6 //
kono
parents:
diff changeset
7 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
8 //
kono
parents:
diff changeset
9 // LSan runtime flags.
kono
parents:
diff changeset
10 //
kono
parents:
diff changeset
11 //===----------------------------------------------------------------------===//
kono
parents:
diff changeset
12 #ifndef LSAN_FLAG
kono
parents:
diff changeset
13 # error "Define LSAN_FLAG prior to including this file!"
kono
parents:
diff changeset
14 #endif
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 // LSAN_FLAG(Type, Name, DefaultValue, Description)
kono
parents:
diff changeset
17 // See COMMON_FLAG in sanitizer_flags.inc for more details.
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 LSAN_FLAG(bool, report_objects, false,
kono
parents:
diff changeset
20 "Print addresses of leaked objects after main leak report.")
kono
parents:
diff changeset
21 LSAN_FLAG(
kono
parents:
diff changeset
22 int, resolution, 0,
kono
parents:
diff changeset
23 "Aggregate two objects into one leak if this many stack frames match. If "
kono
parents:
diff changeset
24 "zero, the entire stack trace must match.")
kono
parents:
diff changeset
25 LSAN_FLAG(int, max_leaks, 0, "The number of leaks reported.")
kono
parents:
diff changeset
26
kono
parents:
diff changeset
27 // Flags controlling the root set of reachable memory.
kono
parents:
diff changeset
28 LSAN_FLAG(bool, use_globals, true,
kono
parents:
diff changeset
29 "Root set: include global variables (.data and .bss)")
kono
parents:
diff changeset
30 LSAN_FLAG(bool, use_stacks, true, "Root set: include thread stacks")
kono
parents:
diff changeset
31 LSAN_FLAG(bool, use_registers, true, "Root set: include thread registers")
kono
parents:
diff changeset
32 LSAN_FLAG(bool, use_tls, true,
kono
parents:
diff changeset
33 "Root set: include TLS and thread-specific storage")
kono
parents:
diff changeset
34 LSAN_FLAG(bool, use_root_regions, true,
kono
parents:
diff changeset
35 "Root set: include regions added via __lsan_register_root_region().")
kono
parents:
diff changeset
36 LSAN_FLAG(bool, use_ld_allocations, true,
kono
parents:
diff changeset
37 "Root set: mark as reachable all allocations made from dynamic "
kono
parents:
diff changeset
38 "linker. This was the old way to handle dynamic TLS, and will "
kono
parents:
diff changeset
39 "be removed soon. Do not use this flag.")
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 LSAN_FLAG(bool, use_unaligned, false, "Consider unaligned pointers valid.")
kono
parents:
diff changeset
42 LSAN_FLAG(bool, use_poisoned, false,
kono
parents:
diff changeset
43 "Consider pointers found in poisoned memory to be valid.")
kono
parents:
diff changeset
44 LSAN_FLAG(bool, log_pointers, false, "Debug logging")
kono
parents:
diff changeset
45 LSAN_FLAG(bool, log_threads, false, "Debug logging")
kono
parents:
diff changeset
46 LSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")