Home
last modified time | relevance | path

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

1234567891011

/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/swiftshader/third_party/llvm-7.0/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 dependend 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/swiftshader/third_party/llvm-7.0/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/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}
/external/virglrenderer/build-aux/
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/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/GCOVProfiling/
Dversion.ll4 ; RUN: opt -insert-gcov-profiling -disable-output < %t/2
7 ; RUN: not opt -insert-gcov-profiling -default-gcov-version=asdfasdf -disable-output < %t/2
8 ; RUN: opt -insert-gcov-profiling -default-gcov-version=407* -disable-output < %t/2
12 ; RUN: opt -passes=insert-gcov-profiling -disable-output < %t/2
15 ; RUN: not opt -passes=insert-gcov-profiling -default-gcov-version=asdfasdf -disable-output < %t/2
16 ; RUN: opt -passes=insert-gcov-profiling -default-gcov-version=407* -disable-output < %t/2
24 !llvm.gcov = !{!9}
Dreturn-block.ll7 ; RUN: opt -insert-gcov-profiling -disable-output %t/2
8 ; RUN: llvm-cov gcov -n -dump %t/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
11 ; RUN: opt -insert-gcov-profiling -gcov-exit-block-before-body -disable-output %t/2
12 ; RUN: llvm-cov gcov -n -dump %t/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
16 ; RUN: opt -passes=insert-gcov-profiling -disable-output %t/2
17 ; RUN: llvm-cov gcov -n -dump %t/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
20 ; RUN: opt -passes=insert-gcov-profiling -gcov-exit-block-before-body -disable-output %t/2
21 ; RUN: llvm-cov gcov -n -dump %t/return-block.gcno 2>&1 | FileCheck -check-prefix=CHECK -check-pref…
52 !llvm.gcov = !{!19}
/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/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/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/swiftshader/third_party/llvm-7.0/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>`
29 .. program:: llvm-cov gcov
31 .. _llvm-cov-gcov:
33 GCOV COMMAND
39 :program:`llvm-cov gcov` [*options*] *SOURCEFILE*
44 The :program:`llvm-cov gcov` tool reads code coverage data files and displays
46 ``gcov`` tool from version 4.2 of ``GCC`` and may also be compatible with some
[all …]
/external/pdfium/testing/tools/coverage/
Dllvm-gcov6 # Wrapper script to make llvm-cov behave like gcov, so it can be passed in as the --gcov-tool
7 # parameter when using lcov. Specifically adds the keyword 'gcov' to the arguments being passed in,
8 # to tell llvm-cov to operate in gcov compatibility mode.
15 exec ${LLVM_COV_BIN} gcov $*
/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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-cov/
Dllvm-cov.cpp38 /// The main entry point for the gcov compatible coverage tool.
43 errs() << "Usage: llvm-cov {export|gcov|report|show} [OPTION]...\n\n" in helpMain()
47 << " gcov: Work with the gcov format.\n" in helpMain()
63 // If argv[0] is or ends with 'gcov', always be gcov compatible in main()
64 if (sys::path::stem(argv[0]).endswith_lower("gcov")) in main()
73 .Case("gcov", gcovMain) in main()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
11 // use 'gcov' format.
40 namespace GCOV {
44 /// A struct for passing gcov options between functions.
60 } // end namespace GCOV
62 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
90 /// readGCOVVersion - Read GCOV version.
91 bool readGCOVVersion(GCOV::GCOVVersion &Version) { in readGCOVVersion()
95 Version = GCOV::V402; in readGCOVVersion()
100 Version = GCOV::V404; in readGCOVVersion()
[all …]

1234567891011