| /freebsd/usr.bin/clang/llvm-cov/ |
| H A D | llvm-cov.1 | 32 llvm-cov \- emit coverage information 38 The \fBllvm\-cov\fP tool shows code coverage information for 40 work with \fBgcov\fP\-style coverage or with \fBclang\fP\(aqs instrumentation 63 The \fBllvm\-cov gcov\fP tool reads code coverage data files and displays 64 the coverage information for a specified source file. It is compatible with the 69 of your application that collects coverage data as it runs. Compile with the 70 \fB\-fprofile\-arcs\fP and \fB\-ftest\-coverage\fP options to add the 71 instrumentation. (Alternatively, you can use the \fB\-\-coverage\fP option, which 76 coverage data. The other half of the data comes from \fB\&.gcda\fP files that are 93 Once you have generated the coverage data files, run \fBllvm\-cov gcov\fP [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
| 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 20 // -- File: dict => Coverage for a single file 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 [all …]
|
| H A D | CoverageFilters.h | 1 //===- CoverageFilters.h - Function coverage mapping filters --------------===// 9 // These classes provide filtering for function coverage mapping records. 23 namespace coverage { 26 } // 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; [all …]
|
| H A D | CodeCoverage.cpp | 1 //===- CodeCoverage.cpp - Coverage tool based on profiling instrumentation-===// 10 // report coverage information using the profiling instrumentation and code 11 // coverage mapping. 29 #include "llvm/ProfileData/Coverage/CoverageMapping.h" 52 using namespace coverage; 54 void exportCoverageDataToJson(const coverage::CoverageMapping &CoverageMapping, 59 /// The implementation of the coverage tool. 100 const CoverageMapping &Coverage); 113 const CoverageMapping &Coverage); 117 createSourceFileView(StringRef SourceFile, const CoverageMapping &Coverage); [all …]
|
| H A D | CoverageFilters.cpp | 1 //===- CoverageFilters.cpp - Function coverage mapping filters ------------===// 9 // These classes provide filtering for function coverage mapping records. 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() [all …]
|
| H A D | CoverageExporterLcov.cpp | 1 //===- CoverageExporterLcov.cpp - Code coverage export --------------------===// 9 // This file implements export of code coverage data to lcov trace file format. 15 // The trace file code coverage export follows the following format (see also 46 using namespace coverage; 50 struct NestedCountedRegion : public coverage::CountedRegion { 60 NestedCountedRegion(llvm::coverage::CountedRegion Region, in NestedCountedRegion() 62 : llvm::coverage::CountedRegion(std::move(Region)), in NestedCountedRegion() 77 const iterator_range<coverage::FunctionRecordIterator> &Functions) { in renderFunctions() 87 const coverage::CoverageData &FileCoverage) { in renderLineExecutionCounts() 88 coverage::LineCoverageIterator LCI{FileCoverage, 1}; in renderLineExecutionCounts() [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; variable 36 const coverage::CoverageMapping &Coverage) in CoverageReport() argument 37 : Options(Options), Coverage(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, [all …]
|
| H A D | CoverageSummaryInfo.h | 1 //===- CoverageSummaryInfo.h - Coverage summary for function/file ---------===// 9 // These structures are used to represent code coverage metrics 17 #include "llvm/ProfileData/Coverage/CoverageMapping.h" 22 /// Provides information about region coverage for a function/file. 63 /// Provides information about line coverage for a function/file. 104 /// Provides information about branches coverage for a function/file. 145 /// Provides information about MC/DC coverage for a function/file. 186 /// Provides information about function coverage for a file. 233 CoverageDataSummary(const coverage::CoverageData &CD, 234 ArrayRef<coverage::CountedRegion> CodeRegions); [all …]
|
| H A D | SourceCoverageViewHTML.h | 1 //===- SourceCoverageViewHTML.h - A html code coverage view ---------------===// 9 /// \file This file defines the interface to the html coverage renderer. 20 using namespace coverage; variable 24 /// A coverage printer for html output. 33 const coverage::CoverageMapping &Coverage, 52 /// A coverage printer for html output, but generates index files in every 59 const coverage::CoverageMapping &Coverage, 66 /// A code coverage view which supports html-based rendering. 114 coverage::CoverageData &&CoverageInfo) in SourceCoverageViewHTML()
|
| H A D | CoverageExporter.h | 1 //===- CoverageExporter.h - Code coverage exporter ------------------------===// 9 // This class defines a code coverage exporter interface. 19 #include "llvm/ProfileData/Coverage/CoverageMapping.h" 23 /// Exports the code coverage information. 27 const coverage::CoverageMapping &Coverage; 35 CoverageExporter(const coverage::CoverageMapping &CoverageMapping, in CoverageExporter() 37 : Coverage(CoverageMapping), Options(Options), OS(OS) {} in CoverageExporter()
|
| /freebsd/sys/contrib/openzfs/config/ |
| H A D | ax_code_coverage.m4 | 16 # coverage support. Also defines CODE_COVERAGE_RULES which should be 20 # --enable-code-coverage option, which defaults to being disabled. 26 # coverage is enabled. 42 # This results in a "check-code-coverage" rule being added to any 44 # has been configured with --enable-code-coverage). Running `make 45 # check-code-coverage` in that directory will run the module's test suite 46 # (`make check`) and build a code coverage report detailing the code which 82 dnl Check for --enable-code-coverage 87 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])], 91 AC_MSG_CHECKING([whether to build with code coverage support]) [all …]
|
| /freebsd/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: 42 @echo "coverage report: file://${covdir}/index.html" 45 coverage: target 46 echo "code coverage is not enabled." >&2
|
| /freebsd/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 …]
|
| /freebsd/share/man/man4/ |
| H A D | kcov.4 | 33 .Nd interface for collecting kernel code coverage information 38 .Cd "options COVERAGE" 48 is a module that enables collection of code coverage information from the 51 .Dv COVERAGE 55 is enabled by a user-mode thread, it collects coverage information only for 59 is not suited to collect comprehensive coverage data for the entire kernel; 60 its main purpose is to provide input for coverage-guided system call fuzzers. 65 The thread then enables coverage tracing, with coverage data being written by 68 memory region, and the written coverage data may be consumed. 73 coverage information is recorded. [all …]
|
| /freebsd/contrib/libcbor/ |
| H A D | CMakeLists.txt | 206 coverage target 208 COMMAND lcov --capture --directory . --output-file coverage.info 209 COMMAND genhtml coverage.info --highlight --legend --output-directory 213 "Coverage report ready: ${CMAKE_CURRENT_BINARY_DIR}/coverage_html/index.html" 214 COMMENT "Generate coverage report using the GNU toolchain" 218 llvm-coverage 238 "Coverage report ready: ${CMAKE_CURRENT_BINARY_DIR}/coverage_profiles/report.html" 240 COMMENT "Generate coverage report using the LLVM toolchain") 242 option(COVERAGE "Enable code coverage instrumentation" OFF) option 243 if(COVERAGE) [all …]
|
| /freebsd/contrib/ntp/sntp/libevent/cmake/ |
| H A D | CodeCoverage.cmake | 27 # - Enable Code Coverage 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… [all …]
|
| /freebsd/contrib/libevent/cmake/ |
| H A D | CodeCoverage.cmake | 27 # - Enable Code Coverage 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… [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/Coverage/ |
| H A D | CoverageMappingReader.h | 1 //===- CoverageMappingReader.h - Code coverage mapping reader ---*- C++ -*-===// 9 // This file contains support for reading coverage mapping data for 10 // instrumentation based coverage. 19 #include "llvm/ProfileData/Coverage/CoverageMapping.h" 31 namespace coverage { 35 /// Coverage mapping information for a single function. 44 /// A file format agnostic iterator over coverage mapping data. 69 llvm_unreachable("Unexpected error in coverage mapping iterator"); in ~CoverageMappingIterator() 109 /// Base class for the raw coverage mapping and filenames data readers. 122 /// Checks if the given coverage mapping data is exported for [all …]
|
| H A D | CoverageMappingWriter.h | 1 //===- CoverageMappingWriter.h - Code coverage mapping writer ---*- C++ -*-===// 9 // This file contains support for writing coverage mapping data for 10 // instrumentation based coverage. 19 #include "llvm/ProfileData/Coverage/CoverageMapping.h" 26 namespace coverage { 29 /// based code coverage. 41 /// Writer for instrumentation based coverage mapping data. 54 /// Write encoded coverage mapping data to the given output stream. 58 /// Writer for the coverage mapping testing format. 79 } // end namespace coverage
|
| H A D | CoverageMapping.h | 1 //===- CoverageMapping.h - Code coverage mapping support --------*- C++ -*-===// 9 // Code coverage mapping data is generated by clang and read by 10 // llvm-cov to show code coverage statistics for a file. 26 #include "llvm/ProfileData/Coverage/MCDCTypes.h" 59 namespace coverage { 269 /// Parameters used for Modified Condition/Decision Coverage 715 /// Code coverage information for a single function. 827 /// Coverage information for a macro expansion or #included file. 831 /// expansions whose coverage can be looked up independently. 837 /// Coverage for the expansion. [all …]
|
| /freebsd/sys/contrib/openzfs/tests/unit/ |
| H A D | README.md | 68 ### Generating a coverage report 70 If `configure` was run with `--enable-code-coverage`, then two additional build 73 The `unit-coverage` target runs `scripts/coverage_report.pl` to produce a 74 coverage summary directly in text immediately after the test output, and is 78 $ make unit-coverage T=zap 88 Coverage: test_zap | By line | By branch | By function 98 The `unit-coverage-html` will use `lcov` and `genhtml` to generate an 103 $ make unit-coverage-html T=zap 113 coverage results: 118 Currently the coverage data will only be regenerated when the test binary [all …]
|
| H A D | Makefile.am | 138 # test run and coverage targets below 139 PHONY += unit unit-coverage unit-coverage-html 177 @echo "coverage results:" \ 197 unit-coverage: $(addprefix _unit_coverage_, $(_UNIT_TARGETS)) 199 unit-coverage-html: $(addprefix _unit_coverage_html_, $(_UNIT_TARGETS)) 202 unit-coverage: 203 @echo "unit test coverage not enabled." 204 @echo "re-run configure with --enable-code-coverage" 206 unit-coverage [all...] |
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CoverageMappingGen.h | 1 //===---- CoverageMappingGen.h - Coverage mapping generation ----*- C++ -*-===// 9 // Instrumentation-based code coverage mapping generator 25 namespace llvm::coverage { 65 /// is required by the coverage mapping generator and is obtained from 105 /// code coverage mapping data. 107 /// Information needed to emit a coverage record for a function. 137 /// Add a function's coverage mapping record to the collection of the 145 /// Emit the coverage mapping data for a translation unit. 148 /// Return the coverage mapping translation unit file id 157 /// code coverage mapping data. [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | BlockCoverageInference.cpp | 1 //===-- BlockCoverageInference.cpp - Minimal Execution Coverage -*- C++ -*-===// 10 // be instrumented. We call these nodes ambiguous because knowing the coverage 11 // of all remaining nodes is not enough to infer their coverage status. 19 // coverage from the coverage of its predecessors, or if condition 2 fails, we 20 // can infer v’s coverage from the coverage of its successors. 41 #define DEBUG_TYPE "pgo-block-coverage" 48 "Number of basic blocks instrumented for coverage"); 167 // infer coverage from. in findDependencies() 253 const DenseMap<const BasicBlock *, bool> *Coverage; member in llvm::DotFuncBCIInfo 257 const DenseMap<const BasicBlock *, bool> *Coverage) in DotFuncBCIInfo() argument [all …]
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Instrumentation/ |
| H A D | BlockCoverageInference.h | 1 //===-- BlockCoverageInference.h - Minimal Execution Coverage ---*- C++ -*-===// 11 /// to infer execution coverage for the whole graph. 37 /// \return true if \p BB should be instrumented for coverage. 50 /// View the inferred block coverage as a dot file. 52 /// covered, red edges show that a block's coverage can be inferred from its 53 /// successors, and blue edges show that a block's coverage can be inferred 56 const DenseMap<const BasicBlock *, bool> *Coverage = nullptr) const; 63 /// this block's coverage. 67 /// this block's coverage.
|