Home
last modified time | relevance | path

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

12345678910>>...18

/aosp_15_r20/external/llvm/test/tools/llvm-cov/
H A 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 …]
H A 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 …]
H A 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 …]
H A 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()
/aosp_15_r20/external/cn-cbor/cmake/
H A 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 …]
/aosp_15_r20/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/share/man/man1/
Dx86_64-w64-mingw32-gcov.1134 .IX Title "GCOV 1"
135 .TH GCOV 1 "2014-05-22" "gcc-4.8.3" "GNU"
141 gcov \- coverage testing tool
144 gcov [\fB\-v\fR|\fB\-\-version\fR] [\fB\-h\fR|\fB\-\-help\fR]
170 profiler such as \fBgcov\fR or \fBgprof\fR, you can find out some
195 time. Likewise, because \fBgcov\fR accumulates statistics by line (at
203 \&\fBgcov\fR creates a logfile called \fI\fIsourcefile\fI.gcov\fR which
220 Display help about using \fBgcov\fR (on the standard output), and
228 Display the \fBgcov\fR version number (on the standard output),
236 Write individual execution counts for every basic block. Normally gcov
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/include/llvm/ProfileData/
H A 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 …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
10 // use 'gcov' format.
40 namespace GCOV {
44 /// A struct for passing gcov options between functions.
69 } // end namespace GCOV
71 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
107 /// readGCOVVersion - Read GCOV version.
108 bool readGCOVVersion(GCOV::GCOVVersion &version) { in readGCOVVersion()
118 this->version = version = GCOV::V1200; in readGCOVVersion()
121 // PR gcov-profile/84846, r269678 in readGCOVVersion()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
10 // use 'gcov' format.
40 namespace GCOV {
44 /// A struct for passing gcov options between functions.
69 } // end namespace GCOV
71 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
107 /// readGCOVVersion - Read GCOV version.
108 bool readGCOVVersion(GCOV::GCOVVersion &version) { in readGCOVVersion()
118 this->version = version = GCOV::V1200; in readGCOVVersion()
121 // PR gcov-profile/84846, r269678 in readGCOVVersion()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
10 // use 'gcov' format.
40 namespace GCOV {
44 /// A struct for passing gcov options between functions.
69 } // end namespace GCOV
71 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
107 /// readGCOVVersion - Read GCOV version.
108 bool readGCOVVersion(GCOV::GCOVVersion &version) { in readGCOVVersion()
118 this->version = version = GCOV::V1200; in readGCOVVersion()
121 // PR gcov-profile/84846, r269678 in readGCOVVersion()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
10 // use 'gcov' format.
40 namespace GCOV {
44 /// A struct for passing gcov options between functions.
69 } // end namespace GCOV
71 /// GCOVBuffer - A wrapper around MemoryBuffer to provide GCOV specific
107 /// readGCOVVersion - Read GCOV version.
108 bool readGCOVVersion(GCOV::GCOVVersion &version) { in readGCOVVersion()
118 this->version = version = GCOV::V1200; in readGCOVVersion()
121 // PR gcov-profile/84846, r269678 in readGCOVVersion()
[all …]
/aosp_15_r20/external/strace/m4/
H A 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 …]
/aosp_15_r20/external/llvm/docs/CommandGuide/
H A 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 …]
/aosp_15_r20/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 …]
/aosp_15_r20/prebuilts/cmake/linux-x86/share/cmake-3.22/Modules/
DCTestCoverageCollectGCOV.cmake12 This function runs gcov on all .gcda files found in the binary tree
13 and packages the resulting .gcov files into a tar file.
35 Run gcov and package a tar file for CDash. The options are:
65 Specify the full path to the ``gcov`` command on the machine.
69 Specify options to be passed to gcov. The ``gcov`` command
70 is run as ``gcov <options>... -o <gcov-dir> <file>.gcda``.
97 cmake_parse_arguments(GCOV "${options}" "${oneValueArgs}"
125 # run gcov on each gcda file in the binary tree
166 # run gcov, this will produce the .gcov files in the current
178 OUTPUT_FILE "${coverage_dir}/gcov.log"
[all …]
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/ProfileData/
H A 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 …]
/aosp_15_r20/external/llvm/test/tools/llvm-profdata/
H A 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…
/aosp_15_r20/external/llvm/test/Transforms/GCOVProfiling/
H A 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}
H A 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}
/aosp_15_r20/external/llvm/include/llvm/Support/
H A 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 …]
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
H A 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 …]
/aosp_15_r20/external/coreboot/Documentation/
H A 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 …]
/aosp_15_r20/system/nfc/src/fuzzers/
H A Dfuzz.sh24 adb shell rm -rf /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
25 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
42 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
43 …adb shell LD_LIBRARY_PATH=/system/lib64/vndk-29 GCOV_PREFIX=/$FUZZ_DIR/gcov GCOV_PREFIX_STRIP=3 /$…
52 adb shell rm -rf /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
53 adb shell mkdir -p /$FUZZ_DIR/corpus /$FUZZ_DIR/crashes /$FUZZ_DIR/gcov
139 mkdir -p ./coverage && adb pull /$FUZZ_DIR/gcov/0/out/soong ./coverage
141 …lcov --directory ./coverage --base-directory $ANDROID_BUILD_TOP --gcov-tool $(pwd)/../llvm-gcov --…
162 gcov)
166 echo "Usage: $0 {run|build|debug|gcov}"
/aosp_15_r20/kernel/tests/tools/
H A Dcreate-tracefile.py17 """This utility generates a single lcov tracefile from a gcov tar file."""
60 """Create a shell script that is compatible with gcov.
68 file_path.write_text(f'#!/bin/bash\nexec {llvm_cov_filename} gcov "$@"')
79 """Call lcov to create tracefile based on gcov data files.
82 gcov_dir: Directory that contains the extracted gcov data files as retrieved
86 gcov_filename: The absolute path to gcov or a compatible script.
105 f"--gcov-tool {gcov_filename} "
108 "--ignore-errors gcov,gcov,unused,unused "
426 return os.path.join(self.tmp_dir, "tmp", "llvm-gcov.sh")
431 description="Generate lcov tracefiles from gcov file dumps"
[all …]
H A Dcoverage_howto.md5 ## Build and use a kernel with GCOV profile enabled
6 Build your kernel with the [`--gcov`](https://android.googlesource.com/kernel/build/+/refs/heads/ma…
7 GCOV profiling from the kernel. This will also trigger the build to save the required *.gcno files …
9 For example to build a Cuttlefish (CF) kernel with GCOV profiling enabled run:
11 $ bazel run --gcov //common-modules/virtual-device:virtual_device_x86_64_dist
16 to the tradefed call will trigger tradefed to take care of mounting debugfs, reseting the gcov coun…
17 to test run, and the collection of gcov data files from debugfs after test completion.
36 ## Create an lcov tracefile out of the gcov tar artifact from test run
39 This tar file is an archive of all the gcov data files collected into debugfs/

12345678910>>...18