reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/asan/asan_activation.cpp
  104   asan_deactivated_flags.coverage = common_flags()->coverage;
  105   asan_deactivated_flags.coverage_dir = common_flags()->coverage_dir;
projects/compiler-rt/lib/asan/asan_errors.cpp
   26   bool fast = common_flags()->fast_unwind_on_fatal;
  274       "soft_rss_limit_mb=%zd\n", common_flags()->soft_rss_limit_mb);
projects/compiler-rt/lib/asan/asan_flags.cpp
   59     cf.CopyFrom(*common_flags());
  136   if (common_flags()->help) {
  142   if (!CAN_SANITIZE_LEAKS && common_flags()->detect_leaks) {
  155   CHECK_LE((uptr)common_flags()->malloc_context_size, kStackTraceMax);
  196   if (!f->replace_str && common_flags()->intercept_strlen) {
  200   if (!f->replace_str && common_flags()->intercept_strchr) {
  204   if (!f->replace_str && common_flags()->intercept_strndup) {
projects/compiler-rt/lib/asan/asan_interceptors.cpp
   71   if (CAN_SANITIZE_LEAKS && common_flags()->detect_leaks &&
   73     return common_flags()->exitcode;
projects/compiler-rt/lib/asan/asan_poisoning.h
   57       shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) {
projects/compiler-rt/lib/asan/asan_report.cpp
  151     if (common_flags()->print_cmdline)
  154     if (common_flags()->print_module_map == 2) PrintModuleMap();
  171     if (halt_on_error_ && common_flags()->abort_on_error) {
  445   if (!common_flags()->suppress_equal_pcs) return false;
projects/compiler-rt/lib/asan/asan_rtl.cpp
   48   if (common_flags()->print_module_map >= 1) PrintModuleMap();
  373          (uptr)common_flags()->malloc_context_size);
  423   SetMallocContextSize(common_flags()->malloc_context_size);
  437   __sanitizer_set_report_path(common_flags()->log_path);
  469   allocator_options.SetFrom(flags(), common_flags());
  485   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
  485   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
  503     if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit) {
  503     if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit) {
projects/compiler-rt/lib/asan/asan_shadow_setup.cpp
   40   if (common_flags()->use_madv_dontdump) DontDumpShadowMemory(beg, size);
projects/compiler-rt/lib/asan/asan_thread.cpp
  104   if (common_flags()->use_sigaltstack) UnsetAlternateSignalStack();
  252   if (common_flags()->use_sigaltstack) SetAlternateSignalStack();
projects/compiler-rt/lib/cfi/cfi.cpp
  392   if (common_flags()->help) {
projects/compiler-rt/lib/dfsan/dfsan.cpp
  389   if (common_flags()->help) parser.PrintFlagDescriptions();
projects/compiler-rt/lib/hwasan/hwasan.cpp
   83     cf.CopyFrom(*common_flags());
  141   if (common_flags()->help) parser.PrintFlagDescriptions();
  367   __sanitizer_set_report_path(common_flags()->log_path);
  392   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
  392   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
projects/compiler-rt/lib/hwasan/hwasan_allocator.cpp
   85   SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
   86   allocator.Init(common_flags()->allocator_release_to_os_interval_ms);
projects/compiler-rt/lib/hwasan/hwasan_linux.cpp
  254   if (common_flags()->use_madv_dontdump)
  269   if (common_flags()->print_module_map)
  275     if (common_flags()->exitcode)
  276       internal__exit(common_flags()->exitcode);
  429   stack->Unwind(pc, frame, uc, common_flags()->fast_unwind_on_fatal);
  466                 common_flags()->fast_unwind_on_fatal);
projects/compiler-rt/lib/hwasan/hwasan_poisoning.cpp
   31   uptr threshold = common_flags()->clear_shadow_mmap_threshold;
projects/compiler-rt/lib/hwasan/hwasan_report.cpp
   48     if (common_flags()->print_module_map >= 2 ||
   49         (fatal && common_flags()->print_module_map))
  202                   common_flags()->symbolize_vs_style,
  203                   common_flags()->strip_path_prefix);
projects/compiler-rt/lib/lsan/lsan.cpp
   60     cf.CopyFrom(*common_flags());
   81   SetVerbosity(common_flags()->verbosity);
   85   if (common_flags()->help) parser.PrintFlagDescriptions();
   87   __sanitizer_set_report_path(common_flags()->log_path);
   93                 common_flags()->fast_unwind_on_fatal);
  122   if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit)
  122   if (common_flags()->detect_leaks && common_flags()->leak_check_at_exit)
  125   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
  125   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
projects/compiler-rt/lib/lsan/lsan_allocator.cpp
   40   SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
   42       common_flags()->allocator_release_to_os_interval_ms);
projects/compiler-rt/lib/lsan/lsan_common.cpp
   38   if (common_flags()->detect_leaks) {
  116   if (common_flags()->detect_leaks) {
  596   if (common_flags()->print_suppressions)
  799   if (!common_flags()->detect_leaks)
  870   if (common_flags()->detect_leaks)
  878   if (common_flags()->detect_leaks)
projects/compiler-rt/lib/lsan/lsan_common_linux.cpp
  115   if (common_flags()->exitcode) Die();
projects/compiler-rt/lib/lsan/lsan_interceptors.cpp
  473   if (status == 0 && HasReportedLeaks()) status = common_flags()->exitcode;
projects/compiler-rt/lib/msan/msan.cpp
  143     cf.CopyFrom(*common_flags());
  187   if (common_flags()->help) parser.PrintFlagDescriptions();
  195     cf.CopyFrom(*common_flags());
  382                 common_flags()->fast_unwind_on_fatal);
  411   __sanitizer_set_report_path(common_flags()->log_path);
  443   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
  443   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
projects/compiler-rt/lib/msan/msan_allocator.cpp
  119   SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
  120   allocator.Init(common_flags()->allocator_release_to_os_interval_ms);
projects/compiler-rt/lib/msan/msan_linux.cpp
  147       if (common_flags()->use_madv_dontdump)
  166     if (common_flags()->exitcode)
  167       internal__exit(common_flags()->exitcode);
projects/compiler-rt/lib/msan/msan_poisoning.cpp
  126       shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) {
projects/compiler-rt/lib/sanitizer_common/sanitizer_common.cpp
   88   if (!common_flags()->print_summary)
  181   if (!common_flags()->mmap_limit_mb) return;
  186   RAW_CHECK((total_mmaped >> 20) < common_flags()->mmap_limit_mb);
  190   if (!common_flags()->mmap_limit_mb) return;
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
  369   if (common_flags()->intercept_strlen)
  383   if (common_flags()->intercept_strlen)
  472   if (common_flags()->strict_string_checks) {
  535   if (common_flags()->strict_string_checks) {
  575   if (common_flags()->intercept_strstr)
  596   if (common_flags()->intercept_strstr)
  613   if (!common_flags()->intercept_strtok) {
  616   if (common_flags()->strict_string_checks) {
  664   if (common_flags()->intercept_memmem) {
  685   if (common_flags()->intercept_strchr) {
  703   if (common_flags()->intercept_strchr)
  718   if (common_flags()->intercept_strchr)
  732   if (common_flags()->intercept_strspn) {
  743   if (common_flags()->intercept_strspn) {
  762   if (common_flags()->intercept_strpbrk) {
  835   if (common_flags()->intercept_memcmp) {
  836     if (common_flags()->strict_memcmp) {
 1819   if (!common_flags()->handle_ioctl) return REAL(ioctl)(d, request, arg);
 3059   if (common_flags()->intercept_send && res >= 0 && msg)
 3082       if (common_flags()->intercept_send)
 6438   if (common_flags()->intercept_send && res > 0)
 6453   if (common_flags()->intercept_send && res > 0)
 6529   if (common_flags()->intercept_stat)
 6545   if (common_flags()->intercept_stat)
 6561   if (common_flags()->intercept_stat)
 6577   if (common_flags()->intercept_stat)
 7115   if (common_flags()->detect_write_exec)
 7125   if (common_flags()->detect_write_exec)
 7144   if (common_flags()->detect_write_exec)
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp
   34   const uptr hard_rss_limit_mb = common_flags()->hard_rss_limit_mb;
   35   const uptr soft_rss_limit_mb = common_flags()->soft_rss_limit_mb;
   36   const bool heap_profile = common_flags()->heap_profile;
  119   if (!common_flags()->hard_rss_limit_mb &&
  120       !common_flags()->soft_rss_limit_mb &&
  121       !common_flags()->heap_profile) return;
projects/compiler-rt/lib/sanitizer_common/sanitizer_coverage_libcdep_new.cpp
   43                     common_flags()->coverage_dir, name, internal_getpid(),
  143     if (!initialized || !common_flags()->coverage) return;
projects/compiler-rt/lib/sanitizer_common/sanitizer_file.cpp
   55   if (common_flags()->log_exe_name && exe_name) {
projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
 1681       return common_flags()->handle_abort;
 1683       return common_flags()->handle_sigill;
 1685       return common_flags()->handle_sigtrap;
 1687       return common_flags()->handle_sigfpe;
 1689       return common_flags()->handle_segv;
 1691       return common_flags()->handle_sigbus;
 1698   if (result == kHandleSignalYes && !common_flags()->allow_user_segv_handler)
projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
  623   if (!common_flags()->can_use_proc_maps_statm)
  764   if (common_flags()->log_to_syslog && ShouldLogAfterPrintf())
projects/compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
  338   return common_flags()->test_only_emulate_no_memorymap &&
  344   if (!common_flags()->decorate_proc_maps || !name)
projects/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
   73   if (common_flags()->no_huge_pages_for_shadow)
  110   if (common_flags()->disable_coredump) {
  209   if (common_flags()->use_sigaltstack) sigact.sa_flags |= SA_ONSTACK;
  218   if (common_flags()->use_sigaltstack) SetAlternateSignalStack();
projects/compiler-rt/lib/sanitizer_common/sanitizer_printf.cpp
  277       if (common_flags()->log_exe_name && exe_name) {
projects/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp
   28   int dedup_frames = common_flags()->dedup_token_length;
   38       RenderFrame(&frame_desc, common_flags()->stack_trace_format, frame_num++,
   39                   cur->info, common_flags()->symbolize_vs_style,
   40                   common_flags()->strip_path_prefix);
  125                 common_flags()->symbolize_vs_style,
  126                 common_flags()->strip_path_prefix);
  147   RenderData(&data_desc, fmt, &DI, common_flags()->strip_path_prefix);
projects/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_libcdep.cpp
  277     const char *const inline_flag = common_flags()->symbolize_inline_frames
projects/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cpp
  397   const char *path = common_flags()->external_symbolizer_path;
  435   if (common_flags()->allow_addr2line) {
  446   if (!common_flags()->symbolize) {
projects/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
   33   if (!common_flags()->print_summary) return;
   36   RenderFrame(&buff, "%L %F", 0, info, common_flags()->symbolize_vs_style,
   37               common_flags()->strip_path_prefix);
   67   const char *flag = common_flags()->color;
   75   if (!common_flags()->print_summary)
  105   bool fast = common_flags()->fast_unwind_on_fatal;
  150   if (!common_flags()->dump_instruction_bytes || (pc < GetPageSizeCached()))
  166   if (!common_flags()->dump_registers) return;
  277       internal__exit(common_flags()->exitcode);
projects/compiler-rt/lib/sanitizer_common/sanitizer_termination.cpp
   57   if (common_flags()->abort_on_error)
   59   internal__exit(common_flags()->exitcode);
projects/compiler-rt/lib/sanitizer_common/sanitizer_tls_get_addr.cpp
   73   if (!common_flags()->intercept_tls_get_addr) return;
   91   if (!common_flags()->intercept_tls_get_addr) return 0;
  130   if (!common_flags()->intercept_tls_get_addr) return;
projects/compiler-rt/lib/scudo/scudo_allocator.cpp
  264     SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
  265     Backend.init(common_flags()->allocator_release_to_os_interval_ms);
  266     HardRssLimitMb = common_flags()->hard_rss_limit_mb;
  267     SoftRssLimitMb = common_flags()->soft_rss_limit_mb;
projects/compiler-rt/lib/scudo/scudo_errors.cpp
   69       "soft_rss_limit_mb=%zd\n", common_flags()->soft_rss_limit_mb);
projects/compiler-rt/lib/scudo/scudo_flags.cpp
   53     cf.CopyFrom(*common_flags());
projects/compiler-rt/lib/scudo/scudo_termination.cpp
   28   if (common_flags()->abort_on_error)
   30   internal__exit(common_flags()->exitcode);
projects/compiler-rt/lib/scudo/scudo_utils.cpp
   53   if (common_flags()->abort_on_error)
projects/compiler-rt/lib/tsan/dd/dd_rtl.cpp
   77     cf.CopyFrom(*common_flags());
   87   SetVerbosity(common_flags()->verbosity);
projects/compiler-rt/lib/tsan/rtl/tsan_flags.cpp
   57     cf.CopyFrom(*common_flags());
  110   if (common_flags()->help) parser.PrintFlagDescriptions();
projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
 1103   if (!common_flags()->legacy_pthread_cond)
 1211   if (common_flags()->legacy_pthread_cond) {
 1509   READ_STRING(thr, pc, name, 0);
 1519   READ_STRING(thr, pc, name, 0);
 1532   READ_STRING(thr, pc, name, 0);
 1542   READ_STRING(thr, pc, name, 0);
projects/compiler-rt/lib/tsan/rtl/tsan_mman.cpp
  117   SetAllocatorMayReturnNull(common_flags()->allocator_may_return_null);
  118   allocator()->Init(common_flags()->allocator_release_to_os_interval_ms);
projects/compiler-rt/lib/tsan/rtl/tsan_platform_posix.cpp
   37   if (common_flags()->use_madv_dontdump)
projects/compiler-rt/lib/tsan/rtl/tsan_report.cpp
  131     RenderFrame(&res, common_flags()->stack_trace_format, i, frame->info,
  132                 common_flags()->symbolize_vs_style,
  133                 common_flags()->strip_path_prefix, kInterposedFunctionPrefix);
  388   if (common_flags()->print_module_map == 2) PrintModuleMap();
projects/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
  342                 common_flags()->fast_unwind_on_fatal);
  379   if (common_flags()->detect_deadlocks)
  394   __sanitizer_set_report_path(common_flags()->log_path);
  445   if (common_flags()->print_module_map == 1) PrintModuleMap();
  476   if (common_flags()->print_suppressions)
  490   return failed ? common_flags()->exitcode : 0;
  924   if (SANITIZER_WINDOWS || size < common_flags()->clear_shadow_mmap_threshold) {
projects/compiler-rt/lib/tsan/rtl/tsan_rtl_mutex.cpp
   93   if (common_flags()->detect_deadlocks) {
  144   if (!(flagz & MutexFlagTryLock) && common_flags()->detect_deadlocks) {
  193   if (first && common_flags()->detect_deadlocks) {
  207   if (first && pre_lock && common_flags()->detect_deadlocks) {
  239   if (common_flags()->detect_deadlocks && s->recursion == 0 &&
  249   if (common_flags()->detect_deadlocks && !report_bad_unlock) {
  258   if (!(flagz & MutexFlagTryLock) && common_flags()->detect_deadlocks) {
  288   if (common_flags()->detect_deadlocks) {
  302   if (pre_lock  && common_flags()->detect_deadlocks) {
  324   if (common_flags()->detect_deadlocks && s->recursion == 0) {
  334   if (common_flags()->detect_deadlocks) {
  372   if (common_flags()->detect_deadlocks && s->recursion == 0) {
  381   if (common_flags()->detect_deadlocks) {
projects/compiler-rt/lib/tsan/rtl/tsan_rtl_proc.cpp
   28   if (common_flags()->detect_deadlocks)
   40   if (common_flags()->detect_deadlocks)
projects/compiler-rt/lib/tsan/rtl/tsan_rtl_thread.cpp
  109   if (common_flags()->detect_deadlocks)
  142   if (common_flags()->detect_deadlocks)
projects/compiler-rt/lib/tsan/rtl/tsan_sync.cpp
   34   if (common_flags()->detect_deadlocks)
projects/compiler-rt/lib/ubsan/ubsan_diag.cpp
   54                 common_flags()->fast_unwind_on_fatal);
   81   if (!common_flags()->print_summary)
  155                            SLoc.getColumn(), common_flags()->symbolize_vs_style,
  156                            common_flags()->strip_path_prefix);
  166                            common_flags()->symbolize_vs_style,
  167                            common_flags()->strip_path_prefix);
  170                            Info.module_arch, common_flags()->strip_path_prefix);
projects/compiler-rt/lib/ubsan/ubsan_diag_standalone.cpp
   35   stack.Unwind(pc, bp, nullptr, common_flags()->fast_unwind_on_fatal);
projects/compiler-rt/lib/ubsan/ubsan_flags.cpp
   56     cf.CopyFrom(*common_flags());
   75   if (common_flags()->help) parser.PrintFlagDescriptions();
projects/compiler-rt/lib/ubsan/ubsan_init.cpp
   40   __sanitizer_set_report_path(common_flags()->log_path);
   42   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
   42   InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
projects/compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp
   50                       sig.context, common_flags()->fast_unwind_on_fatal);
projects/compiler-rt/lib/xray/xray_flags.cpp
   79   if (common_flags()->help) {