Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/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/swiftshader/third_party/llvm-16.0/llvm/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
10 // use 'gcov' format.
39 namespace GCOV {
43 /// A struct for passing gcov options between functions.
68 } // end namespace GCOV
70 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
106 /// readGCOVVersion - Read GCOV version.
107 bool readGCOVVersion(GCOV::GCOVVersion &version) { in readGCOVVersion()
117 this->version = version = GCOV::V1200; in readGCOVVersion()
120 // PR gcov-profile/84846, r269678 in readGCOVVersion()
[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/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/cares/cares/m4/
Dax_code_coverage.m421 # Test also for gcov program and create GCOV variable that could be
100 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
130 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool \"\$(GCOV)\"
174 -find . \\( -name \"*.gcda\" -o -name \"*.gcno\" -o -name \"*.gcov\" \\) -delete
211 # check for gcov
212 AC_CHECK_TOOL([GCOV],
215 AS_IF([test "X$GCOV" = "X:"],
216 AC_MSG_ERROR([gcov is needed to do coverage]))
217 AC_SUBST([GCOV])
221 AC_MSG_ERROR([not compiling with gcc, which is required for gcov code coverage])
[all …]
/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/coreboot/Documentation/
Dgcov.txt1 This patch contains our local modifications for gcov-io.h and libgcov.c.
2 The file gcov-iov.h is taken from a gcc build (produced at compile
3 time). The file gcov-io.c is unchanged.
5 --- gcc-4.7.2/gcc/gcov-io.h 2011-12-04 10:27:19.000000000 -0800
6 +++ coreboot/src/lib/gcov-io.h 2013-01-12 16:45:57.000000000 -0800
69 +#include "gcov-glue.c"
102 #include "gcov-io.h"
122 #include "gcov-io.c"
183 - reads the same number of counters from the gcov file. The counters
191 + * reads the same number of counters from the gcov file. The counters
[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()
/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/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/swiftshader/third_party/llvm-16.0/llvm/lib/ProfileData/
DGCOV.cpp1 //===- GCOV.cpp - LLVM coverage tool --------------------------------------===//
9 // GCOV implements the interface to read and write coverage files that use
10 // 'gcov' format.
14 #include "llvm/ProfileData/GCOV.h"
74 Context(const GCOV::Options &Options) : options(Options) {} in Context()
93 const GCOV::Options &options;
109 if (version >= GCOV::V900 && !buf.readString(cwd)) in readGCNO()
111 if (version >= GCOV::V800) in readGCNO()
125 if (version >= GCOV::V407) in readGCNO()
129 if (version < GCOV::V800) { in readGCNO()
[all …]
/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/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/toolchain-utils/afdo_tools/
Dupdate_kernel_afdo_test.py135 "R124-15808.0-1710149961.gcov.xz",
143 suffix=".gcov.xz",
152 "R124-15808.0-1710149961.gcov.xz",
155 self.assertEqual(profile.file_name, "R124-15808.0-1710149961.gcov.xz")
179 753112 2024-03-04T10:38:50Z gs://here/5.4/R124-15786.10-1709548729.gcov.xz
192 "R124-15786.10-1709548729.gcov.xz",
217 753112 2024-03-04T10:38:50Z gs://here/5.4/R124-15786.10-1709548729.gcov.xz
237 "R124-15786.10-1709548729.gcov.xz",
241 "R124-99999.99-9999999999.gcov.xz",
/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/expat/expat/
Dqa.sh116 gcov) BASE_COMPILE_FLAGS+=" --coverage -O0" ;;
203 gcov)
208 RUN gcov -s .libs/ ${gcda_file}
213 RUN find . -name '*.gcov' | sort
273 case "${QA_PROCESSOR:=gcov}" in
274 egypt|gcov) ;;
298 QA_PROCESSOR=(egypt|gcov) # default: gcov
/external/skia/tools/
Dgcov_shim3 # Running gcov with -a (--all-blocks) will hang on some files. lcov uses -a.
4 # This shim strips out that flag (a minor feature) so we can run gcov.
6 CMD="gcov"

12345678910>>...14