Home
last modified time | relevance | path

Searched +full:gcov +full:- +full:4 (Results 1 – 25 of 112) sorted by relevance

12345

/external/llvm/test/Transforms/GCOVProfiling/
Dreturn-block.ll2 ; RUN: echo '!19 = !{!"%/T/return-block.ll", !0}' > %t1
6 ; 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…
12 ; RUN: rm %T/return-block.gcno
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…
[all …]
Dfunction-numbering.ll1 ; Test that GCOV instrumentation numbers functions correctly when some
5 ; RUN: echo '!14 = !{!"%/T/function-numbering.ll", !0}' > %t1
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
10 ; RUNN: rm %T/function-numbering.gcno
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
15 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
16 target triple = "x86_64-apple-macosx10.10.0"
18 ; GCDA: @[[FOO:[0-9]+]] = private unnamed_addr constant [4 x i8] c"foo\00"
[all …]
Dglobal-ctor.ll1 ; RUN: echo '!16 = !{!"%/T/global-ctor.ll", !0}' > %t1
3 ; RUN: opt -insert-gcov-profiling -disable-output < %t2
4 ; RUN: not grep '_GLOBAL__sub_I_global-ctor' %T/global-ctor.gcno
5 ; RUN: rm %T/global-ctor.gcno
7 ; RUN: opt -passes=insert-gcov-profiling -disable-output < %t2
8 ; RUN: not grep '_GLOBAL__sub_I_global-ctor' %T/global-ctor.gcno
9 ; RUN: rm %T/global-ctor.gcno
11 @x = global i32 0, align 4
12 …*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @_GLOBAL__sub_I_global-ctor.ll, i8* null }]
15 define internal void @__cxx_global_var_init() #0 section ".text.startup" !dbg !4 {
[all …]
Dmodules.ll1 ; RUN: opt -insert-gcov-profiling -o - < %s | llvm-dis | FileCheck -check-prefix=EMIT-ARCS %s
2 ; RUN: opt -passes=insert-gcov-profiling -o - < %s | llvm-dis | FileCheck -check-prefix=EMIT-ARCS %s
4 ; EMIT-ARCS-NOT: call void @llvm_gcda_start_file
7 !llvm.module.flags = !{!3, !4}
12 !3 = !{i32 2, !"Dwarf Version", i32 4}
13 !4 = !{i32 2, !"Debug Info Version", i32 3}
Dlinezero.ll1 ; RUN: sed -e 's|PATTERN|%/T|g' %s | opt -insert-gcov-profiling -disable-output
4 ; RUN: sed -e 's|PATTERN|%/T|g' %s | opt -passes=insert-gcov-profiling -disable-output
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
17 %retval = alloca i32, align 4
42 %4 = load i8*, i8** %__end, align 8, !dbg !34
43 %cmp = icmp ne i8* %3, %4, !dbg !34
89-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math…
91-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math…
96 !llvm.gcov = !{!25}
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ProfileData/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ------------------------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
10 // use 'gcov' format.
12 //===----------------------------------------------------------------------===//
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
71 /// readGCNOFormat - Check GCNO signature is valid at the beginning of buffer.
[all …]
/external/llvm/include/llvm/Support/
DGCOV.h1 //===- GCOV.h - LLVM coverage tool ----------------------------------------===//
8 //===----------------------------------------------------------------------===//
11 // use 'gcov' format.
13 //===----------------------------------------------------------------------===//
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
58 /// readGCNOFormat - Check GCNO signature is valid at the beginning of buffer.
60 StringRef File = Buffer->getBuffer().slice(0, 4); in readGCNOFormat()
[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
4 XFAIL: powerpc64-, s390x, mips-, mips64-, sparc
6 Tests for sample profiles encoded in GCC's gcov format.
8 1- Show all functions. This profile has a single main() function with several
10 RUN: llvm-profdata show --sample %p/Inputs/gcc-sample-profile.gcov | FileCheck %s --check-prefix=SH…
17 2- Convert the profile to text encoding and check that they are both
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
[all …]
/external/rust/crates/libz-sys/src/zlib-ng/.github/workflows/
Dpigz.yml4 ci-cmake:
6 runs-on: ${{ matrix.os }}
8 fail-fast: false
11 - name: Ubuntu GCC
12 os: ubuntu-latest
16 - name: Ubuntu GCC Symbol Prefix
17 os: ubuntu-latest
20 cmake-args: -DZLIB_SYMBOL_PREFIX=zTest_
22 - name: Ubuntu Clang
23 os: ubuntu-latest
[all …]
Dcmake.yml4 ci-cmake:
6 runs-on: ${{ matrix.os }}
8 fail-fast: false
11 - name: Ubuntu 18.04 GCC
12 os: ubuntu-18.04
14 cxx-compiler: g++
16 - name: Ubuntu GCC ASAN
17 os: ubuntu-latest
19 cxx-compiler: g++
20 cmake-args: -DWITH_SANITIZER=Address
[all …]
/external/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp1 //===- GCOVProfiling.cpp - Insert edge counters for gcov profiling --------===//
8 //===----------------------------------------------------------------------===//
10 // This pass implements GCOV-style profiling. When this pass is run it emits
15 //===----------------------------------------------------------------------===//
46 #define DEBUG_TYPE "insert-gcov-profiling"
49 DefaultGCOVVersion("default-gcov-version", cl::init("402*"), cl::Hidden,
51 static cl::opt<bool> DefaultExitBlockBeforeBody("gcov-exit-block-before-body",
63 if (DefaultGCOVVersion.size() != 4) { in getDefault()
64 llvm::report_fatal_error(std::string("Invalid -default-gcov-version: ") + in getDefault()
67 memcpy(Options.Version, DefaultGCOVVersion.c_str(), 4); in getDefault()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DGCOVProfiling.cpp1 //===- GCOVProfiling.cpp - Insert edge counters for gcov profiling --------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // This pass implements GCOV-style profiling. When this pass is run it emits
14 //===----------------------------------------------------------------------===//
50 #define DEBUG_TYPE "insert-gcov-profiling"
53 DefaultGCOVVersion("default-gcov-version", cl::init("402*"), cl::Hidden,
55 static cl::opt<bool> DefaultExitBlockBeforeBody("gcov-exit-block-before-body",
67 if (DefaultGCOVVersion.size() != 4) { in getDefault()
68 llvm::report_fatal_error(std::string("Invalid -default-gcov-version: ") + in getDefault()
[all …]
/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:
35 # (Note it is important the -P is at the end...)
36 # $ cmake -DCOV_PATH=$(pwd)
37 # -DCOVERAGE_SRCS="catcierge_rfid.c;catcierge_timer.c"
38 # -P ../cmake/CoverallsGcovUpload.cmake
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...")
80 COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
[all …]
/external/openthread/third_party/nlbuild-autotools/repo/etc/
Dlcov.config2 # Copyright 2015-2016 Nest Labs Inc. All Rights Reserved.
8 # http://www.apache.org/licenses/LICENSE-2.0
26 #genhtml_css_file = gcov.css
42 genhtml_nav_resolution = 4
47 # Do not remove unused test descriptions if non-zero
50 # Do not remove prefix from directory names if non-zero
53 # Do not create source code view if non-zero
59 # Highlight lines with converted-only data if non-zero
62 # Include color legend in HTML output if non-zero
87 genhtml_charset=UTF-8
[all …]
/external/google-benchmark/test/
DCMakeLists.txt7 # strip -DNDEBUG from the default CMake flags in DEBUG mode.
10 add_definitions( -UNDEBUG )
11 add_definitions(-DTEST_BENCHMARK_LIBRARY_HAS_NO_ASSERTIONS)
20 string (REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " "
25 check_cxx_compiler_flag(-O3 BENCHMARK_HAS_O3_FLAG)
28 set(BENCHMARK_O3_FLAG "-O3")
57 add_test(NAME benchmark COMMAND benchmark_test --benchmark_min_time=0.01)
61 …add_test(NAME ${name} COMMAND filter_test --benchmark_min_time=0.01 --benchmark_filter=${filter} $…
62 …add_test(NAME ${name}_list_only COMMAND filter_test --benchmark_list_tests --benchmark_filter=${fi…
66 add_filter_test(filter_simple_negative "-Foo" 2)
[all …]
/external/libcxx/utils/google-benchmark/test/
DCMakeLists.txt7 # strip -DNDEBUG from the default CMake flags in DEBUG mode.
10 add_definitions( -UNDEBUG )
11 add_definitions(-DTEST_BENCHMARK_LIBRARY_HAS_NO_ASSERTIONS)
20 string (REGEX REPLACE "(^| )[/-]D *NDEBUG($| )" " "
25 check_cxx_compiler_flag(-O3 BENCHMARK_HAS_O3_FLAG)
28 set(BENCHMARK_O3_FLAG "-O3")
57 add_test(benchmark benchmark_test --benchmark_min_time=0.01)
61 add_test(${name} filter_test --benchmark_min_time=0.01 --benchmark_filter=${filter} ${expect})
62 …add_test(${name}_list_only filter_test --benchmark_list_tests --benchmark_filter=${filter} ${expec…
66 add_filter_test(filter_simple_negative "-Foo" 2)
[all …]
/external/compiler-rt/lib/profile/
DGCDAProfiling.c1 /*===- GCDAProfiling.c - Support library for GCDA file emission -----------===*\
8 |*===----------------------------------------------------------------------===*|
10 |* This file implements the call back routines for the gcov profiling
12 |* the -insert-gcov-profiling LLVM pass.
14 |* We emit files in a corrupt version of GCOV's "gcda" file format. These files
18 |* TODO: gcov is multi-process safe by having each exit open the existing file
19 |* and append to it. We'd like to achieve that and be thread-safe too.
21 \*===----------------------------------------------------------------------===*/
54 * FreeBSD 10, r232261) when compiled in 32-bit mode.
64 * --- GCOV file format I/O primitives ---
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DGCOV.cpp1 //===- GCOV.cpp - LLVM coverage tool --------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 // GCOV implements the interface to read and write coverage files that use
10 // 'gcov' format.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/ProfileData/GCOV.h"
16 #include "llvm/Config/llvm-config.h"
28 //===----------------------------------------------------------------------===//
31 /// readGCNO - Read GCNO buffer.
[all …]
/external/libevent/cmake/
DCodeCoverage.cmake2 # Boost Software License - Version 1.0 - August 17th, 2003
8 # Software, and to permit third-parties to whom the Software is furnished to
15 # works are solely in the form of machine-executable object code generated by
20 # FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
26 # 2012-01-31, Lars Bilke
27 # - Enable Code Coverage
29 # 2013-09-17, Joakim Söderberg
30 # - Added support for Clang.
31 # - Some additional usage instructions.
33 # 2016-11-02, Azat Khuzhin
[all …]
/external/llvm/lib/IR/
DGCOV.cpp1 //===- GCOV.cpp - LLVM coverage tool --------------------------------------===//
8 //===----------------------------------------------------------------------===//
10 // GCOV implements the interface to read and write coverage files that use
11 // 'gcov' format.
13 //===----------------------------------------------------------------------===//
15 #include "llvm/Support/GCOV.h"
28 //===----------------------------------------------------------------------===//
31 /// readGCNO - Read GCNO buffer.
44 if (!GFun->readGCNO(Buffer, Version)) in readGCNO()
53 /// readGCDA - Read GCDA buffer. It is required that readGCDA() can only be
[all …]
/external/llvm/include/llvm/Transforms/
DInstrumentation.h1 //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
23 extern __thread __attribute__((tls_model("initial-exec"))) in getDFSanArgTLSPtrForJIT()
29 extern __thread __attribute__((tls_model("initial-exec"))) in getDFSanRetValTLSPtrForJIT()
50 // Insert GCOV profiling instrumentation
60 // A four-byte version string. The meaning of a version string is described in
61 // gcc's gcov-io.h
62 char Version[4];
121 // Options for EfficiencySanitizer sub-tools.
[all …]
/external/catch2/CMake/
Dllvm-cov-wrapper3 # This file is part of CMake-codecov.
6 # 2015-2017 RWTH Aachen University, Federal Republic of Germany
10 # Written by Alexander Haase, alexander.haase@rwth-aachen.de
13 if [ -z "$LLVM_COV_BIN" ]
21 LLVM_VERSION=$($LLVM_COV_BIN -version | grep -i "LLVM version" \
22 | sed "s/^\([A-Za-z ]*\)\([0-9]\).\([0-9]\).*$/\2.\3/g")
24 if [ "$1" = "-v" ]
26 echo "llvm-cov-wrapper $LLVM_VERSION"
31 if [ -n "$LLVM_VERSION" ]
33 MAJOR=$(echo $LLVM_VERSION | cut -d'.' -f1)
[all …]
/external/elfutils/tests/
Dcoverage.sh3 if [ "x$1" = "x-v" ]; then
12 tmp=$d-data
18 if [ -f "$base.c" ]; then fc="$base.c"; else fc="$base.cxx"; fi
20 if [ -f "$gcda" ]; then
21 gcov -n -a "$fc" |
22 …etline; co=gensub(/.*:(.*)% .*/, \"\\\\1\", \"g\"); co=co+0.0; li=\$4+0; printf \"%-35s %6.2f %5d…
28 if [ -f $tmp ]; then
29 …gawk "{ copct=\$2; co=(\$3*copct)/100; toco+=(co+0); toli += (\$3+0); } END { printf \"%-12s %6.2f…
30 rm -f $tmp
32 printf "%-12s 0.00%% covered unused files: %3d\n" "$d" $unused
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/
DInstrumentation.h1 //===- Transforms/Instrumentation.h - Instrumentation passes ----*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
40 // Create a constant for Str so that we can pass it to the run-time lib.
51 // Insert GCOV profiling instrumentation
61 // A four-byte version string. The meaning of a version string is described in
62 // gcc's gcov-io.h
63 char Version[4];
80 // Regexes separated by a semi-colon to filter the files to instrument.
[all …]
/external/OpenCSD/decoder/tests/auto-fdo/
Dautofdo.md9 optimization - PGO) uses a profile of a program's execution to guide the
55 * ETB: A small circular buffer (64-128 kilobytes) that stores the most
59 * TPIU: Sends data to an off-chip capture device (e.g. Arm DSTREAM)
70 lot of data very quickly - typically an ETM will generate ~1 bit of data
75 only record small slices of execution - e.g. collect ~5000 cycles of data
76 every 50M cycles. This reduces the data rate to a manageable level - a few
90 <https://gitlab.arm.com/linux-arm/linux-coresight-backports>
95 git clone https://git.gitlab.arm.com/linux-arm/linux-coresight-backports.git
100 format-patch`).
102 …ards, the only patch which needs to be applied is the one enabling strobing - etm4x: `Enable strob…
[all …]

12345