diff options
Diffstat (limited to 'compiler-rt')
| -rw-r--r-- | compiler-rt/lib/fuzzer/FuzzerTracePC.cpp | 3 | ||||
| -rw-r--r-- | compiler-rt/test/fuzzer/extra-counters.test | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp b/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp index 5e9f9f2f6dc..701ef087319 100644 --- a/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp +++ b/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp @@ -134,6 +134,9 @@ void TracePC::PrintModuleInfo() { } if (size_t NumClangCounters = ClangCountersEnd() - ClangCountersBegin()) Printf("INFO: %zd Clang Coverage Counters\n", NumClangCounters); + + if (size_t NumExtraCounters = ExtraCountersEnd() - ExtraCountersBegin()) + Printf("INFO: %zd Extra Counters\n", NumExtraCounters); } ATTRIBUTE_NO_SANITIZE_ALL diff --git a/compiler-rt/test/fuzzer/extra-counters.test b/compiler-rt/test/fuzzer/extra-counters.test index 230f74a1b0b..485410dcbe5 100644 --- a/compiler-rt/test/fuzzer/extra-counters.test +++ b/compiler-rt/test/fuzzer/extra-counters.test @@ -2,6 +2,7 @@ REQUIRES: linux RUN: %cpp_compiler %S/TableLookupTest.cpp -o %t-TableLookupTest RUN: not %t-TableLookupTest -print_final_stats=1 2>&1 | FileCheck %s +CHECK: INFO: {{[0-9]+}} Extra Counters CHECK: BINGO // Expecting >= 4096 new_units_added CHECK: stat::new_units_added:{{.*[4][0-9][0-9][0-9]}} |

