/freebsd/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 23 …strumented object files(compiled with -O0 etc.). Note that 'make clean' also remove coverage data." 25 coverage-build: coverage-requirement-check 31 @echo "Start to build libraries with coverage options..." 37 @echo "Successfully built libraries with coverage options." 39 coverage-check: coverage-requirement-check [all …]
|
/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 | 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 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() argument [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 | 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 | 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 | 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. 226 /// A summary of function's code coverage. 247 /// Compute the code coverage summar [all...] |
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 | 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/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/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]… 40 AC_ARG_VAR([GCOV], [Coverage testing command]) 51 # include coverage compiler options 65 COVERAGE_CFLAGS="-fprofile-arcs -ftest-coverage" 66 COVERAGE_LDFLAGS="--coverage -fprofile-arcs -ftest-coverage"
|
/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 | 109 add_custom_target(coverage 111 COMMAND lcov --capture --directory . --output-file coverage.info 112 COMMAND genhtml coverage.info --highlight --legend --output-directory coverage_html 113 COMMAND echo "Coverage report ready: ${CMAKE_CURRENT_BINARY_DIR}/coverage_html/index.html") 115 add_custom_target(llvm-coverage 124 COMMAND echo "Coverage report ready: ${CMAKE_CURRENT_BINARY_DIR}/coverage_profiles/report.html" 130 option(c "Enable code coverage instrumentation" OFF) 131 if (COVERAGE) 132 message("Configuring code coverage instrumentation") 135 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -fprofile-arcs -ftest-coverage 105 add_custom_target(coverage global() target [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" 30 namespace coverage { 34 /// Coverage mapping information for a single function. 43 /// A file format agnostic iterator over coverage mapping data. 68 llvm_unreachable("Unexpected error in coverage mapping iterator"); in ~CoverageMappingIterator() 108 /// Base class for the raw coverage mapping and filenames data readers. 121 /// 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" 25 namespace coverage { 28 /// based code coverage. 40 /// Writer for instrumentation based coverage mapping data. 53 /// Write encoded coverage mapping data to the given output stream. 57 /// Writer for the coverage mapping testing format. 78 } // end namespace coverage [all...] |
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" 56 namespace coverage { 258 /// Parameters used for Modified Condition/Decision Coverage 686 /// Code coverage information for a single function. 769 /// Coverage information for a macro expansion or #included file. 773 /// expansions whose coverage can be looked up independently. 779 /// Coverage for the expansion. [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 104 /// code coverage mapping data. 106 /// Information needed to emit a coverage record for a function. 136 /// Add a function's coverage mapping record to the collection of the 144 /// Emit the coverage mapping data for a translation unit. 147 /// Return the coverage mapping translation unit file id 156 /// 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.
|