File: nsan_flags.inc

package info (click to toggle)
llvm-toolchain-19 1%3A19.1.7-19
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,999,616 kB
  • sloc: cpp: 6,951,724; ansic: 1,486,157; asm: 913,598; python: 232,059; f90: 80,126; objc: 75,281; lisp: 37,276; pascal: 16,990; sh: 10,079; ml: 5,058; perl: 4,724; awk: 3,523; makefile: 3,430; javascript: 2,504; xml: 892; fortran: 664; cs: 573
file content (49 lines) | stat: -rw-r--r-- 2,524 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//===-- nsan_flags.inc ------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// NSan runtime flags.
//
//===----------------------------------------------------------------------===//
#ifndef NSAN_FLAG
#error "Define NSAN_FLAG prior to including this file!"
#endif

// NSAN_FLAG(Type, Name, DefaultValue, Description)
// See COMMON_FLAG in sanitizer_flags.inc for more details.

NSAN_FLAG(bool, halt_on_error, true, "If true, halt after the first error.")
NSAN_FLAG(bool, resume_after_warning, true,
          "If true, we resume resume the computation from the original "
          "application floating-point value after a warning. If false, "
          "computations continue with the shadow value.")
NSAN_FLAG(const char *, suppressions, "", "Suppressions file name.")
NSAN_FLAG(bool, resume_after_suppression, true,
          "If true, a suppression will also resume the computation from the FT"
          " domain. If false, output is suppressed but the shadow value is"
          " retained.")
// FIXME: should this be specified in units of epsilon instead?
NSAN_FLAG(int, log2_max_relative_error, 19,
          "Log2 maximum admissible relative error, e.g. 19 means max relative "
          "error of 1/2^19 ~= 0.000002.")
NSAN_FLAG(int, log2_absolute_error_threshold, 32,
          "Log2 maximum admissible absolute error. Any numbers closer than "
          "1/2^n are considered to be the same.")
NSAN_FLAG(bool, disable_warnings, false,
          "If true, disable warning printing. This is useful to only compute "
          "stats.")
NSAN_FLAG(bool, enable_check_stats, false,
          "If true, compute check stats, i.e. for each line, the number of "
          "times a check was performed on this line.")
NSAN_FLAG(bool, enable_warning_stats, false,
          "If true, compute warning stats, i.e. for each line, the number of "
          "times a warning was emitted for this line.")
NSAN_FLAG(bool, enable_loadtracking_stats, false,
          "If true, compute load tracking stats, i.e. for each load from "
          "memory, the number of times nsan resumed from the original value "
          "due to invalid or unknown types.")
NSAN_FLAG(bool, print_stats_on_exit, false, "If true, print stats on exit.")