/freebsd-src/contrib/libucl/ |
H A D | Makefile.am | 11 COVERAGE_INFO_FILE = $(top_builddir)/coverage.info 12 COVERAGE_REPORT_DIR = $(top_builddir)/coverage 14 .PHONY = coverage-requirement-check clean-coverage-report 16 coverage-requirement-check: 22 coverage: coverage-requirement-check clean-coverage coverage-build coverage-check coverage-report target 25 coverage-build: coverage-requirement-check 39 coverage-check: coverage-requirement-check 48 coverage-lcov: coverage-check coverage-requirement-check 57 coverage-report: coverage-lcov 67 clean-coverage-report: [all …]
|
/freebsd-src/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageFilters.cpp | 21 const coverage::CoverageMapping &, in matches() 22 const coverage::FunctionRecord &Function) const { in matches() 28 const coverage::CoverageMapping &, in matches() 29 const coverage::FunctionRecord &Function) const { in matches() 38 const coverage::CoverageMapping &, in matches() 39 const coverage::FunctionRecord &Function) const { in matches() 44 const coverage::CoverageMapping &CM, in matches() 45 const coverage::FunctionRecord &Function) const { in matches() 51 const coverage::CoverageMapping &CM, in matches() 52 const coverage::FunctionRecord &Function) const { in matches() [all …]
|
H A D | CoverageFilters.h | 23 namespace coverage { 34 virtual bool matches(const coverage::CoverageMapping &CM, in matches() 35 const coverage::FunctionRecord &Function) const { in matches() 52 bool matches(const coverage::CoverageMapping &CM, 53 const coverage::FunctionRecord &Function) const override; 63 bool matches(const coverage::CoverageMapping &CM, 64 const coverage::FunctionRecord &Function) const override; 78 bool matches(const coverage::CoverageMapping &CM, 79 const coverage::FunctionRecord &Function) const override; 115 bool matches(const coverage::CoverageMapping &CM, [all …]
|
H A D | CoverageExporterLcov.cpp | 57 const iterator_range<coverage::FunctionRecordIterator> &Functions) { in renderFunctions() 67 const coverage::CoverageData &FileCoverage) { in renderLineExecutionCounts() 68 coverage::LineCoverageIterator LCI{FileCoverage, 1}; in renderLineExecutionCounts() 69 coverage::LineCoverageIterator LCIEnd = LCI.getEnd(); in renderLineExecutionCounts() 71 const coverage::LineCoverageStats &LCS = *LCI; in renderLineExecutionCounts() 78 std::vector<llvm::coverage::CountedRegion> 79 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches() 80 ArrayRef<llvm::coverage::ExpansionRecord> Expansions, in collectNestedBranches() 82 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches() 108 bool sortLine(llvm::coverage::CountedRegion I, in sortLine() [all …]
|
H A D | CoverageExporterJson.cpp | 1 //===- CoverageExporterJson.cpp - Code coverage export --------------------===// 9 // This file implements export of code coverage data to JSON. 15 // The json code coverage export follows the following format 19 // -- Files: array => List of objects describing coverage for files 34 // -- Summary: dict => Object summarizing the coverage for this file 35 // -- LineCoverage: dict => Object summarizing line coverage 36 // -- FunctionCoverage: dict => Object summarizing function coverage 37 // -- RegionCoverage: dict => Object summarizing region coverage 38 // -- BranchCoverage: dict => Object summarizing branch coverage 39 // -- MCDCCoverage: dict => Object summarizing MC/DC coverage [all...] |
H A D | CoverageReport.h | 1 //===- CoverageReport.h - Code coverage report ----------------------------===// 9 // This class implements rendering of a code coverage report. 25 /// Displays the code coverage report. 28 const coverage::CoverageMapping &Coverage; 36 const coverage::CoverageMapping &Coverage) in CoverageReport() 44 prepareFileReports(const coverage::CoverageMapping &Coverage, 51 const coverage::CoverageMapping *Coverage, 57 /// Render file reports for every unique file in the coverage mapping. 82 const coverage::CoverageMapping &Coverage, 101 const coverage [all...] |
/openbsd-src/gnu/llvm/llvm/tools/llvm-cov/ |
H A D | CoverageFilters.cpp | 21 const coverage::CoverageMapping &, in matches() 22 const coverage::FunctionRecord &Function) const { in matches() 28 const coverage::CoverageMapping &, in matches() 29 const coverage::FunctionRecord &Function) const { in matches() 38 const coverage::CoverageMapping &, in matches() 39 const coverage::FunctionRecord &Function) const { in matches() 44 const coverage::CoverageMapping &CM, in matches() 45 const coverage::FunctionRecord &Function) const { in matches() 51 const coverage::CoverageMapping &CM, in matches() 52 const coverage::FunctionRecord &Function) const { in matches() [all …]
|
H A D | CoverageFilters.h | 23 namespace coverage { 34 virtual bool matches(const coverage::CoverageMapping &CM, in matches() 35 const coverage::FunctionRecord &Function) const { in matches() 52 bool matches(const coverage::CoverageMapping &CM, 53 const coverage::FunctionRecord &Function) const override; 63 bool matches(const coverage::CoverageMapping &CM, 64 const coverage::FunctionRecord &Function) const override; 78 bool matches(const coverage::CoverageMapping &CM, 79 const coverage::FunctionRecord &Function) const override; 115 bool matches(const coverage::CoverageMapping &CM, [all …]
|
H A D | CoverageExporterLcov.cpp | 57 const iterator_range<coverage::FunctionRecordIterator> &Functions) { in renderFunctions() 67 const coverage::CoverageData &FileCoverage) { in renderLineExecutionCounts() 68 coverage::LineCoverageIterator LCI{FileCoverage, 1}; in renderLineExecutionCounts() 69 coverage::LineCoverageIterator LCIEnd = LCI.getEnd(); in renderLineExecutionCounts() 71 const coverage::LineCoverageStats &LCS = *LCI; in renderLineExecutionCounts() 78 std::vector<llvm::coverage::CountedRegion> 79 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches() 80 ArrayRef<llvm::coverage::ExpansionRecord> Expansions, in collectNestedBranches() 82 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches() 108 bool sortLine(llvm::coverage::CountedRegion I, in sortLine() [all …]
|
H A D | CoverageExporterJson.cpp | 79 json::Array renderSegment(const coverage::CoverageSegment &Segment) { in renderSegment() 85 json::Array renderRegion(const coverage::CountedRegion &Region) { in renderRegion() 92 json::Array renderBranch(const coverage::CountedRegion &Region) { in renderBranch() 100 json::Array renderRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderRegions() 107 json::Array renderBranchRegions(ArrayRef<coverage::CountedRegion> Regions) { in renderBranchRegions() 115 std::vector<llvm::coverage::CountedRegion> 116 collectNestedBranches(const coverage::CoverageMapping &Coverage, in collectNestedBranches() 117 ArrayRef<llvm::coverage::ExpansionRecord> Expansions) { in collectNestedBranches() 118 std::vector<llvm::coverage::CountedRegion> Branches; in collectNestedBranches() 137 json::Object renderExpansion(const coverage::CoverageMapping &Coverage, in renderExpansion() [all …]
|
/freebsd-src/sys/contrib/openzfs/config/ |
H A D | ax_code_coverage.m4 | 15 # coverage support. Also defines CODE_COVERAGE_RULES which should be 19 # --enable-code-coverage option, which defaults to being disabled. 25 # coverage is enabled. 41 # This results in a "check-code-coverage" rule being added to any 43 # has been configured with --enable-code-coverage). Running `make 44 # check-code-coverage` in that directory will run the module's test suite 45 # (`make check`) and build a code coverage report detailing the code which 81 dnl Check for --enable-code-coverage 86 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])], 90 AC_MSG_CHECKING([whether to build with code coverage support]) [all …]
|
/freebsd-src/contrib/openpam/ |
H A D | Makefile.am | 23 coverage: coverage-clean all coverage-prepare coverage-run coverage-report target 24 coverage-clean: 26 coverage-prepare: 31 coverage-run: 34 coverage-report: 45 coverage: target
|
/freebsd-src/contrib/file/magic/Magdir/ |
H A D | coverage | 3 # $File: coverage,v 1.3 2021/02/23 00:51:10 christos Exp $ 4 # xoverage: file(1) magic for test coverage data 6 # File formats used to store test coverage data 11 # gcc -ftest-coverage 21 # GCC coverage tracefiles 29 0 lelong 0x67636e6f GCC gcno coverage (-ftest-coverage), 34 0 belong 0x67636e6f GCC gcno coverage (-ftest-coverage), 41 0 lelong 0x67636461 GCC gcda coverage (-fprofile-arcs), 46 0 belong 0x67636461 GCC gcda coverage (-fprofile-arcs), 52 # cf. http://ltp.sourceforge.net/coverage/lcov/geninfo.1.php [all …]
|
/openbsd-src/gnu/llvm/llvm/utils/lit/utils/ |
H A D | check-coverage | 32 rm -f tests/.coverage 33 find tests -name .coverage.\* -exec rm {} \; 36 lit -sv --param check-coverage=1 "$@" 39 find tests/* -name .coverage.\* -exec mv {} tests \; 42 (cd tests && python -m coverage combine) 45 (cd tests && python -m coverage report) 49 (cd tests && python -m coverage html)
|
/openbsd-src/gnu/llvm/llvm/docs/CommandGuide/ |
H A D | llvm-cov.rst | 1 llvm-cov - emit coverage information 14 The :program:`llvm-cov` tool shows code coverage information for 16 work with ``gcov``\-style coverage or with ``clang``\'s instrumentation 46 The :program:`llvm-cov gcov` tool reads code coverage data files and displays 47 the coverage information for a specified source file. It is compatible with the 52 of your application that collects coverage data as it runs. Compile with the 53 ``-fprofile-arcs`` and ``-ftest-coverage`` options to add the 54 instrumentation. (Alternatively, you can use the ``--coverage`` option, which 59 coverage data. The other half of the data comes from ``.gcda`` files that are 76 Once you have generated the coverage data files, run :program:`llvm-cov gcov` [all …]
|
/freebsd-src/contrib/libucl/m4/ |
H A D | gcov.m4 | 3 # Add code coverage support with gcov/lcov. 9 # Provides a --enable-coverage option which checks for available 14 # $Id: coverage.m4 40881 2013-08-20 17:54:39Z damon $ 28 AC_ARG_ENABLE(coverage, AC_HELP_STRING([--enable-coverage],[configure code coverage analysis tools]… optenable 51 # include coverage compiler options 65 COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" 66 COVERAGE_LDFLAGS="--coverage -fprofile-arcs -ftest-coverage"
|
/freebsd-src/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_activation.cpp | 30 bool coverage; member 56 cf.coverage = coverage; in OverrideFromActivationFlags() 75 coverage = cf.coverage; in OverrideFromActivationFlags() 89 allocator_options.may_return_null, coverage, coverage_dir, in Print() 104 asan_deactivated_flags.coverage = common_flags()->coverage; in AsanDeactivate()
|
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/ |
H A D | asan_activation.cpp | 30 bool coverage; member 56 cf.coverage = coverage; in OverrideFromActivationFlags() 75 coverage = cf.coverage; in OverrideFromActivationFlags() 89 allocator_options.may_return_null, coverage, coverage_dir, in Print() 104 asan_deactivated_flags.coverage = common_flags()->coverage; in AsanDeactivate()
|
/openbsd-src/gnu/llvm/clang/docs/ |
H A D | SourceBasedCodeCoverage.rst | 11 This document explains how to use clang's source-based code coverage feature. 13 information directly. This allows it to generate very precise coverage data. 15 Clang ships two other code coverage implementations: 18 various sanitizers. It can provide up to edge-level coverage. 20 * gcov - A GCC-compatible coverage implementation which operates on DebugInfo. 21 This is enabled by ``-ftest-coverage`` or ``--coverage``. 23 From this point onwards "code coverage" will refer to the source-based kind. 25 The code coverage workflow 28 The code coverage workflow consists of three main steps: 30 * Compiling with coverage enabled. [all …]
|
H A D | SanitizerCoverage.rst | 11 LLVM has a simple code coverage instrumentation built in (SanitizerCoverage). 14 simple coverage reporting and visualization, 15 however if you need *just* coverage visualization you may want to use 21 With ``-fsanitize-coverage=trace-pc-guard`` the compiler will insert the following code 100 clang++ -g -fsanitize-coverage=trace-pc-guard trace-pc-guard-example.cc -c 127 With ``-fsanitize-coverage=inline-8bit-counters`` the compiler will insert 129 This is similar to ``-fsanitize-coverage=trace-pc-guard`` but instead of a 148 With ``-fsanitize-coverage=inline-bool-flag`` the compiler will insert 150 This is similar to ``-fsanitize-coverage=inline-8bit-counter`` but instead of 174 With ``-fsanitize-coverage=pc-table`` the compiler will create a table of [all …]
|
/openbsd-src/gnu/gcc/gcc/ |
H A D | gcov.c | 242 coverage_t coverage; member 524 coverage_t coverage; in process_file() local 526 memset (&coverage, 0, sizeof (coverage)); in process_file() 527 coverage.name = fn->name; in process_file() 528 add_line_counts (flag_function_summary ? &coverage : NULL, fn); in process_file() 531 function_summary (&coverage, "Function"); in process_file() 539 function_summary (&src->coverage, "File"); in process_file() 686 src->coverage.name = src->name; in find_source() 1311 add_branch_counts (coverage_t *coverage, const arc_t *arc) in add_branch_counts() argument 1315 coverage->calls++; in add_branch_counts() [all …]
|
/openbsd-src/gnu/llvm/llvm/cmake/modules/ |
H A D | CoverageReport.cmake | 1 # if coverage reports are not enabled, skip all of this 7 "${LLVM_SOURCE_DIR}/utils/prepare-code-coverage-artifact.py" 18 …message(WARNING "Could not find code coverage tools, skipping generating targets. You may explicit… 22 set(LLVM_CODE_COVERAGE_TARGETS "" CACHE STRING "Targets to run code coverage on (defaults to all ex… 26 # by default run the coverage report across all the exports provided 41 set(LLVM_COVERAGE_SOURCE_DIRS "" CACHE STRING "Source directories to restrict coverage reports to.") 57 # automaticall plumb through the targets that we want to run coverage against. 58 add_custom_target(generate-coverage-report
|
/openbsd-src/gnu/llvm/llvm/docs/ |
H A D | CoverageMappingFormat.rst | 14 LLVM's code coverage mapping format is used to provide code coverage 18 This document is aimed at those who would like to know how LLVM's code coverage 21 LLVM to provide code coverage analysis for their own programs, see the `Clang 24 We start by briefly describing LLVM's code coverage mapping format and the 25 way that Clang and LLVM's code coverage tool work with this format. After 26 the basics are down, more advanced features of the coverage mapping format 33 LLVM's code coverage mapping format is designed to be a self contained 36 to store the data that is required for a code coverage tool to map between 40 The mapping data is used in two places in the code coverage process: 51 After that, the tool is able to generate various code coverage reports [all …]
|
/freebsd-src/contrib/libevent/cmake/ |
H A D | CodeCoverage.cmake | 42 # 3. Set compiler flags to turn off optimization and enable coverage: 43 # SET(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") 44 # SET(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") 47 # which runs your test executable and produces a lcov code coverage report: 53 # # otherwise the coverage generation will not complete. 54 # coverage # Name of output directory. 84 MESSAGE( WARNING "Code coverage results with an optimized (non-Debug) build may be misleading" ) 91 # If not, no coverage report will be created! 122 …COMMENT "Resetting code coverage counters to zero.\nProcessing code coverage counters and generati… 128 COMMENT "Open ./${_outputname}/index.html in your browser to view the coverage report." [all …]
|
/freebsd-src/contrib/ntp/sntp/libevent/cmake/ |
H A D | CodeCoverage.cmake | 42 # 3. Set compiler flags to turn off optimization and enable coverage: 43 # SET(CMAKE_CXX_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") 44 # SET(CMAKE_C_FLAGS "-g -O0 -fprofile-arcs -ftest-coverage") 47 # which runs your test executable and produces a lcov code coverage report: 53 # # otherwise the coverage generation will not complete. 54 # coverage # Name of output directory. 84 MESSAGE( WARNING "Code coverage results with an optimized (non-Debug) build may be misleading" ) 91 # If not, no coverage report will be created! 122 …COMMENT "Resetting code coverage counters to zero.\nProcessing code coverage counters and generati… 128 COMMENT "Open ./${_outputname}/index.html in your browser to view the coverage report." [all …]
|