Home
last modified time | relevance | path

Searched full:gcov (Results 1 – 25 of 242) sorted by relevance

12345678910

/external/llvm/test/tools/llvm-cov/
Dllvm-cov.test1 # Tests for compatibility between llvm-cov and gcov. These work by
2 # comparing llvm-cov against reference outputs generated by gcov 4.2.
14 RUN: llvm-cov gcov test.c | diff -u test_no_options.output -
15 RUN: diff -aub test_no_options.cpp.gcov test.cpp.gcov
16 RUN: diff -aub test_no_options.h.gcov test.h.gcov
21 RUN: llvm-cov gcov -o objdir test.c | diff -u test_no_options.output -
22 RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
23 RUN: diff -aub test_objdir.h.gcov test.h.gcov
26 RUN: llvm-cov gcov -o objdir/test.o test.c | diff -u test_no_options.output -
27 RUN: diff -aub test_objdir.cpp.gcov test.cpp.gcov
[all …]
Dcopy_block_helper.m12 // RUN: llvm-cov gcov copy_block_helper.m | FileCheck %s --check-prefix=STDOUT
15 // STDOUT: copy_block_helper.m:creating 'copy_block_helper.m.gcov'
17 // RUN: FileCheck %s --check-prefix=GCOV < %t/copy_block_helper.m.gcov
18 // GCOV: -: 0:Runs:1
19 // GCOV: -: 0:Programs:1
21 id test_helper(id (^foo)(void)) { return foo(); } // GCOV: 1: [[@LINE]]:id
22 void test(id x) { // GCOV: -: [[@LINE]]:void test
23 test_helper(^{ // GCOV: 2: [[@LINE]]: test_helper
24 return x; // GCOV: 1: [[@LINE]]: return
25 }); // GCOV: -: [[@LINE]]:
[all …]
Drange_based_for.cpp12 // RUN: llvm-cov gcov range_based_for.cpp | FileCheck %s --check-prefix=STDOUT
15 // STDOUT: range_based_for.cpp:creating 'range_based_for.cpp.gcov'
17 // RUN: FileCheck %s --check-prefix=GCOV < %t/range_based_for.cpp.gcov
18 // GCOV: -: 0:Runs:1
19 // GCOV: -: 0:Programs:1
21 int main(int argc, const char *argv[]) { // GCOV: 1: [[@LINE]]:int main( in main()
22 int V[] = {1, 2}; // GCOV: 1: [[@LINE]]: int V[] in main()
23 for (int &I : V) { // GCOV: 10: [[@LINE]]: for ( in main()
24 } // GCOV: 2: [[@LINE]]: } in main()
25 return 0; // GCOV: 1: [[@LINE]]: return in main()
[all …]
Dgcov47_compatibility.cpp16 // RUN: llvm-cov gcov gcov47_compatibility.cpp | FileCheck %s --check-prefix=STDOUT
19 // STDOUT: gcov47_compatibility.cpp:creating 'gcov47_compatibility.cpp.gcov'
21 // RUN: FileCheck %s --check-prefix=GCOV < %t/gcov47_compatibility.cpp.gcov
22 // GCOV: -: 0:Runs:1
23 // GCOV: -: 0:Programs:1
25 int main(int argc, const char *argv[]) { // GCOV: -: [[@LINE]]:int main( in main()
26 return 0; // GCOV: 1: [[@LINE]]: return in main()
27 } // GCOV: -: [[@LINE]]:} in main()
/external/catch2/CMake/
DFindGcov.cmake16 # Search for gcov binary.
22 # Gcov evaluation is dependent on the used compiler. Check gcov support for
23 # each compiler that is used. If gcov binary was already found for this
29 # Some distributions like OSX (homebrew) ship gcov with the compiler
30 # version appended as gcov-x. To find this binary we'll build the
35 find_program(GCOV_BIN NAMES gcov-${GCC_VERSION} gcov
47 # gcov tool.
69 # Fall back to gcov binary if llvm-cov was not found or is
72 find_program(GCOV_BIN gcov HINTS ${COMPILER_PATH})
79 "${LANG} gcov binary.")
[all …]
/external/llvm/test/tools/llvm-profdata/
Dgcc-gcov-sample-profile.test1 The input gcov file has been generated on a little endian machine. Expect
6 Tests for sample profiles encoded in GCC's gcov format.
10 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov | FileCheck %s --check-prefix=SH…
19 RUN: llvm-profdata merge --sample %p/Inputs/gcc-sample-profile.gcov --text -o - | llvm-profdata sho…
20 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
21 RUN: diff %t-text %t-gcov
23 4- Merge the gcov and text encodings of the profile and check that the
25 RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov -o %t-gcov
26 RUN: llvm-profdata merge --sample --text %p/Inputs/gcc-sample-profile.gcov %t-gcov -o - | FileCheck…
/external/cn-cbor/cmake/
DCoverallsGenerateGcov.cmake28 # This script will then use gcov to generate .gcov files in the directory specified
31 # It then parses the .gcov files to convert them into the Coveralls JSON format:
51 …message(FATAL_ERROR "Coveralls: Missing coverage directory path where gcov files will be generated…
68 find_program(GCOV_EXECUTABLE gcov)
71 message(FATAL_ERROR "gcov not found! Aborting...")
114 # This macro converts from the full path format gcov outputs:
116 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
118 # to the original source file path the .gcov is for:
124 # /path/to/project/root/build/#path#to#project#root#subdir#the_file.c.gcov
126 # #path#to#project#root#subdir#the_file.c.gcov
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/cares/cares/m4/
Dax_code_coverage.m420 # Test also for gcov program and create GCOV variable that could be
76 # allow to override gcov location
77 AC_ARG_WITH([gcov],
78 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])],
80 [_AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov])
93 # check for gcov
94 AC_CHECK_TOOL([GCOV],
97 AS_IF([test "X$GCOV" = "X:"],
98 [AC_MSG_ERROR([gcov is needed to do coverage])])
99 AC_SUBST([GCOV])
[all …]
/external/llvm/test/Transforms/GCOVProfiling/
Dversion.ll3 ; RUN: opt -insert-gcov-profiling -disable-output < %t2
6 ; RUN: not opt -insert-gcov-profiling -default-gcov-version=asdfasdf -disable-output < %t2
7 ; RUN: opt -insert-gcov-profiling -default-gcov-version=407* -disable-output < %t2
11 ; RUN: opt -passes=insert-gcov-profiling -disable-output < %t2
14 ; RUN: not opt -passes=insert-gcov-profiling -default-gcov-version=asdfasdf -disable-output < %t2
15 ; RUN: opt -passes=insert-gcov-profiling -default-gcov-version=407* -disable-output < %t2
23 !llvm.gcov = !{!9}
Dreturn-block.ll6 ; RUN: opt -insert-gcov-profiling -disable-output %t2
7 ; RUN: llvm-cov gcov -n -dump %T/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
10 ; RUN: opt -insert-gcov-profiling -gcov-exit-block-before-body -disable-output %t2
11 ; RUN: llvm-cov gcov -n -dump %T/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
15 ; RUN: opt -passes=insert-gcov-profiling -disable-output %t2
16 ; RUN: llvm-cov gcov -n -dump %T/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
19 ; RUN: opt -passes=insert-gcov-profiling -gcov-exit-block-before-body -disable-output %t2
20 ; RUN: llvm-cov gcov -n -dump %T/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
51 !llvm.gcov = !{!19}
Dfunction-numbering.ll1 ; Test that GCOV instrumentation numbers functions correctly when some
8 ; RUN: opt -insert-gcov-profiling -S < %t2 | FileCheck --check-prefix GCDA %s
9 ; RUN: llvm-cov gcov -n -dump %T/function-numbering.gcno 2>&1 | FileCheck --check-prefix GCNO %s
12 ; RUN: opt -passes=insert-gcov-profiling -S < %t2 | FileCheck --check-prefix GCDA %s
13 ; RUN: llvm-cov gcov -n -dump %T/function-numbering.gcno 2>&1 | FileCheck --check-prefix GCNO %s
42 !llvm.gcov = !{!14}
/external/llvm/docs/CommandGuide/
Dllvm-cov.rst14 work with ``gcov``\-style coverage or with ``clang``\'s instrumentation
17 If the program is invoked with a base name of ``gcov``, it will behave as if
18 the :program:`llvm-cov gcov` command were called. Otherwise, a command should
24 * :ref:`gcov <llvm-cov-gcov>`
28 .. program:: llvm-cov gcov
30 .. _llvm-cov-gcov:
32 GCOV COMMAND
38 :program:`llvm-cov gcov` [*options*] *SOURCEFILE*
43 The :program:`llvm-cov gcov` tool reads code coverage data files and displays
45 ``gcov`` tool from version 4.2 of ``GCC`` and may also be compatible with some
[all …]
/external/strace/m4/
Dax_code_coverage.m421 # Test also for gcov program and create GCOV variable that could be
86 # allow to override gcov location
87 AC_ARG_WITH([gcov],
88 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])],
90 [_AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov])
103 # check for gcov
104 AC_CHECK_TOOL([GCOV],
107 AS_IF([test "X$GCOV" = "X:"],
108 [AC_MSG_ERROR([gcov is needed to do coverage])])
109 AC_SUBST([GCOV])
[all …]
/external/harfbuzz_ng/m4/
Dax_code_coverage.m421 # Test also for gcov program and create GCOV variable that could be
84 # allow to override gcov location
85 AC_ARG_WITH([gcov],
86 [AS_HELP_STRING([--with-gcov[=GCOV]], [use given GCOV for coverage (GCOV=gcov).])],
88 [_AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov])
101 # check for gcov
102 AC_CHECK_TOOL([GCOV],
105 AS_IF([test "X$GCOV" = "X:"],
106 [AC_MSG_ERROR([gcov is needed to do coverage])])
107 AC_SUBST([GCOV])
[all …]
/external/llvm/tools/llvm-cov/
Dllvm-cov.cpp36 /// \brief The main entry point for the gcov compatible coverage tool.
41 errs() << "Usage: llvm-cov {gcov|report|show} [OPTION]...\n\n" in helpMain()
44 << " gcov: Work with the gcov format.\n" in helpMain()
62 // If argv[0] is or ends with 'gcov', always be gcov compatible in main()
63 if (sys::path::stem(argv[0]).endswith_lower("gcov")) in main()
71 .Case("gcov", gcovMain) in main()
Dgcov.cpp1 //===- gcov.cpp - GCOV compatible LLVM coverage tool ----------------------===//
18 #include "llvm/Support/GCOV.h"
26 const GCOV::Options &Options) { in reportCoverage()
110 cl::desc("Do not output any .gcov files")); in gcovMain()
130 cl::desc("Dump the gcov file to stderr")); in gcovMain()
138 GCOV::Options Options(AllBlocks, BranchProb, BranchCount, FuncSummary, in gcovMain()
/external/llvm/include/llvm/Support/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ----------------------------------------===//
11 // use 'gcov' format.
32 namespace GCOV {
35 /// \brief A struct for passing gcov options between functions.
50 } // end GCOV namespace
52 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
80 /// readGCOVVersion - Read GCOV version.
81 bool readGCOVVersion(GCOV::GCOVVersion &Version) { in readGCOVVersion()
85 Version = GCOV::V402; in readGCOVVersion()
90 Version = GCOV::V404; in readGCOVVersion()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
10 // use 'gcov' format.
41 namespace GCOV {
45 /// A struct for passing gcov options between functions.
63 } // end namespace GCOV
65 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
93 /// readGCOVVersion - Read GCOV version.
94 bool readGCOVVersion(GCOV::GCOVVersion &Version) { in readGCOVVersion()
98 Version = GCOV::V402; in readGCOVVersion()
103 Version = GCOV::V404; in readGCOVVersion()
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/.github/workflows/
Dcmake.yml259 gcov-exec: llvm-cov-6.0 gcov
267 gcov-exec: llvm-cov-6.0 gcov
275 gcov-exec: llvm-cov-6.0 gcov
283 gcov-exec: llvm-cov-6.0 gcov
290 gcov-exec: llvm-cov-6.0 gcov
299 gcov-exec: llvm-cov-6.0 gcov
346 gcov-exec: gcov-10
433 CODECOV_EXEC: "${{ matrix.gcov-exec || 'gcov' }}"
/external/skia/bin/
Dcoverage42 GCOV="$(realpath tools/gcov_shim)"
47 lcov -q --gcov-tool="$GCOV" -c -b "$BUILD" -d "$BUILD" -o "$DIR"/baseline -i
52 lcov -q --gcov-tool="$GCOV" -c -b "$BUILD" -d "$BUILD" -o "$DIR"/coverage
/external/tensorflow/tensorflow/tools/ci_build/linux/mkl/
DDockerfile.devel-mkl43 …in/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8 --slave /usr/bin/gcov gcov /usr/bin/gcov-8 && \
44 …/bin/gcc-7 70 --slave /usr/bin/g++ g++ /usr/bin/g++-7 --slave /usr/bin/gcov gcov /usr/bin/gcov-7 ;\
/external/llvm/test/tools/llvm-cov/Inputs/
DREADME3 The files used to test the gcov compatible code coverage tool were generated
9 test.cpp.gcov was created by running gcov 4.2.1:
10 gcov test.cpp
/external/skia/fuzz/
Dcoverage45 GCOV="$(realpath tools/gcov_shim)"
50 lcov -q --gcov-tool="$GCOV" -c -b "$BUILD" -d "$BUILD" -o "$DIR"/baseline -i
77 lcov -q --gcov-tool="$GCOV" -c -b "$BUILD" -d "$BUILD" -o "$DIR"/coverage
/external/llvm/lib/IR/
DGCOV.cpp1 //===- GCOV.cpp - LLVM coverage tool --------------------------------------===//
10 // GCOV implements the interface to read and write coverage files that use
11 // 'gcov' format.
15 #include "llvm/Support/GCOV.h"
59 GCOV::GCOVVersion GCDAVersion; in readGCDA()
63 errs() << "GCOV versions do not match.\n"; in readGCDA()
127 bool GCOVFunction::readGCNO(GCOVBuffer &Buff, GCOV::GCOVVersion Version) { in readGCNO()
135 if (Version != GCOV::V402) { in readGCNO()
250 bool GCOVFunction::readGCDA(GCOVBuffer &Buff, GCOV::GCOVVersion Version) { in readGCDA()
276 if (Version != GCOV::V402) { in readGCDA()
[all …]
/external/rust/crates/grpcio-sys/grpc/tools/internal_ci/linux/
Dgrpc_coverage.sh25 --use_docker -t -c gcov -j 2 || FAILED="true"
29 --use_docker -t -c gcov -j 2 || FAILED="true"
33 --use_docker -t -c gcov -j 2 || FAILED="true"
37 --use_docker -t -c gcov -j 2 || FAILED="true"

12345678910