search for: gcda

Displaying 20 results from an estimated 30 matches for "gcda".

Did you mean: cda
2016 Apr 06
2
Writing a test for gcov style coverage crashing after dlclose
Hi Everyone, I have uploaded a patch that allows one to successfully gather gcov/gcda coverage information on programs which unload shared libraries. It¹s a simple fix, just adding a few COMPILER_RT_VISIBILITY (i.e. __attribute__((visibility("hidden")))) in GCDAProfiling.c. Now, I¹d like to include a test program to demonstrate the fix. AFAICT, there seems to be a single...
2014 Feb 21
6
[LLVMdev] make check issue with llvm-cov
...rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov test.c | diff -u test_no_options.output - diff -aub test_no_options.cpp.gcov test.cpp.gcov diff -aub test_no_options.h.gcov test.h.gcov mkdir -p /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir cp test.gcno test.gcda /home/rkotler/caviumllvm/build/test/tools/llvm-cov/Output/llvm-cov.test.tmp/objdir /home/rkotler/caviumllvm/build/Debug+Asserts/bin/llvm-cov -o objdir test.c | diff -u test_no_options.output - diff -aub test_objdir.cpp.gcov test.cpp.gcov diff -aub test_objdir.h.gcov test.h.gcov /home/rkotler/cavi...
2016 Mar 13
2
Unable to generate lcov test coverage reports (Out of memory error)
Hi all, I was trying to generate lcov test coverage reports for xapian-core but got an out of memory error: $ lcov --capture --directory . --output-file xapian-core.info Capturing coverage data from . Found gcov version: 4.7.3 Scanning . for .gcda files ... Found 270 data files in . Processing bin/xapian-progsrv.gcda Out of memory! These are the steps I followed in xapian-core directory **(lcov.xapian.org is down so I referred to xapian-core/HACKING and some online resources for these steps): $ ./configure CXXFLAGS='-g -O0 --coverage...
2013 Feb 06
0
[LLVMdev] LLVM Coverage GCDA Flush API
On 2/6/2013 11:43 AM, John Harrison wrote: > The way `-ftest-coverage -fprofile-arcs` works at the moment it only > flushes via `atexit()`. This patch allows you to flush the coverage at > any point by calling `__llvm_gcov_flush` the same way `__gcov_flush` > works for gcc. > > If there is another way of doing this, I might of missed it but I was > looking for
2013 Feb 06
0
[LLVMdev] LLVM Coverage GCDA Flush API
We do have a gcov "flush" implementation. It should be emitted with the normal coverage code. Is it not showing up? -bw On Feb 5, 2013, at 4:20 PM, John Harrison <ash.gti at gmail.com> wrote: > Hi, > > I ran into the bug/feature request that you cannot flush gcov buffers while the app is running. They are only called when you exit the program, since the flush functions
2013 Feb 06
2
[LLVMdev] LLVM Coverage GCDA Flush API
The way `-ftest-coverage -fprofile-arcs` works at the moment it only flushes via `atexit()`. This patch allows you to flush the coverage at any point by calling `__llvm_gcov_flush` the same way `__gcov_flush` works for gcc. If there is another way of doing this, I might of missed it but I was looking for `__gcov_flush` and I did not find the equivalent in llvm at the moment. -- John Harrison
2015 Apr 28
4
[LLVMdev] GCC compatibility code coverage issue .
Hi All, We trying to use clang+llvm to generate the gcc coverage format as clang version 3.6.0 $clang --coverage -Xclang -coverage-cfg-checksum -Xclang -coverage-no-function-names-in-data -Xclang -coverage-version='407*' test.c $a.out $llvm-cov gcov test.gcda Unexpected version: *704. Invalid .gcno File! Debugging the above cause ,But any hints from experts here ,will help a lot . Appreciate your time ,Thank you ~Umesh
2013 Feb 06
2
[LLVMdev] LLVM Coverage GCDA Flush API
Hi, I ran into the bug/feature request that you cannot flush gcov buffers while the app is running. They are only called when you exit the program, since the flush functions are registered with atexit(). This is the bug report: http://llvm.org/bugs/show_bug.cgi?id=12144 I have what I think is a basic implementation of the `__gcov_flush` call, although I called this version `__llvm_gcov_flush`.
2013 Feb 07
1
[LLVMdev] LLVM Coverage GCDA Flush API
Yikes! It only flushes the counts for the current compilation unit? That sounds like a terrible bug. Can you file a bugzilla report, please? On Feb 6, 2013, at 12:05 PM, John Harrison <ash.gti at gmail.com> wrote: > Why does __gcov_flush only flush the current compilation unit? For gcc __gcov_flush flushes all of the loaded files. > > Is there a way to have __gcov_flush flush
2013 Feb 06
0
[LLVMdev] LLVM Coverage GCDA Flush API
Why does __gcov_flush only flush the current compilation unit? For gcc __gcov_flush flushes all of the loaded files. Is there a way to have __gcov_flush flush everything? -- John Harrison On Wed, Feb 6, 2013 at 10:24 AM, John Harrison <ash.gti at gmail.com> wrote: > Ah, my mistake. So this already works. I guess that bug is out of date, > since this feature works already. >
2013 Feb 06
3
[LLVMdev] LLVM Coverage GCDA Flush API
Ah, my mistake. So this already works. I guess that bug is out of date, since this feature works already. -- John Harrison On Wed, Feb 6, 2013 at 10:00 AM, Joshua Cranmer <pidgeot18 at gmail.com> wrote: > On 2/6/2013 11:43 AM, John Harrison wrote: > >> The way `-ftest-coverage -fprofile-arcs` works at the moment it only >> flushes via `atexit()`. This patch allows you
2015 May 22
2
[LLVMdev] GCC compatibility code coverage issue .
...thout version too ,the llvm-cov fails i.e >> >> >> >> bash-4.1$ clang -fprofile-arcs -ftest-coverage test.c >> >> bash-4.1$ ./a.out >> >> bash-4.1$ llvm-cov gcov test.c >> >> Unexpected number of edges (in main). >> >> Invalid .gcda File! >> >> >> >> bash-4.1$ clang -g -O0 -fprofile-arcs -ftest-coverage -Xclang >> >> -coverage-cfg-checksum -Xclang -coverage-no-function-names-in-data >> >> test.c >> >> bash-4.1$ ./a.out >> >> bash-4.1$ llvm-cov gcov test.c...
2013 May 23
2
[PATCH 1/2] gcov: Add script to split coverage informations.
From: Frediano Ziglio <frediano.ziglio@citrix.com> Split coverage informations extracted from xencov utility. This script accept coverage blob either as file or from input and extract into files compatible with gcc format (gcda). Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com> --- tools/misc/Makefile | 2 +- tools/misc/xencov_split | 191 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 192 insertions(+), 1 deletion(-) create mode 100755 tools/misc/xencov_split diff --git a/to...
2015 May 27
0
[LLVMdev] GCC compatibility code coverage issue .
...lvm-cov fails i.e >>> >> >>> >> bash-4.1$ clang -fprofile-arcs -ftest-coverage test.c >>> >> bash-4.1$ ./a.out >>> >> bash-4.1$ llvm-cov gcov test.c >>> >> Unexpected number of edges (in main). >>> >> Invalid .gcda File! >>> >> >>> >> bash-4.1$ clang -g -O0 -fprofile-arcs -ftest-coverage -Xclang >>> >> -coverage-cfg-checksum -Xclang -coverage-no-function-names-in-data >>> >> test.c >>> >> bash-4.1$ ./a.out >>> >> bash-4....
2010 May 07
3
Xen GCOV Patches for latest Xen Unbstable and linux 2.6.18.8 kernel(32/64bit)
...that zero length array element in gcov_info structure has to be copied separately between xen and kernel. How? I dont know." I am still debugging this issue. If you get fault and fail to proceed please apply the above patch in linux-wa-v1.patch in Linux 2.6.18.8 and recompile. This time vmac.gcda file wont appear in /proc/xen/gcov/crypto HOWTO Test using lcov 1. install lcov from repo # sudo apt-get install lcov 2. vi /etc/lcovrc Change line: lcov_gcov_dir = /proc/gcov to lcov_gcov_dir = /proc/xen/gcov 3. # cd /tmp; lcov -c -o kernel.info 4. # genhtml kernel.info 5, # firefox i...
2010 May 07
3
Xen GCOV Patches for latest Xen Unbstable and linux 2.6.18.8 kernel(32/64bit)
...that zero length array element in gcov_info structure has to be copied separately between xen and kernel. How? I dont know." I am still debugging this issue. If you get fault and fail to proceed please apply the above patch in linux-wa-v1.patch in Linux 2.6.18.8 and recompile. This time vmac.gcda file wont appear in /proc/xen/gcov/crypto HOWTO Test using lcov 1. install lcov from repo # sudo apt-get install lcov 2. vi /etc/lcovrc Change line: lcov_gcov_dir = /proc/gcov to lcov_gcov_dir = /proc/xen/gcov 3. # cd /tmp; lcov -c -o kernel.info 4. # genhtml kernel.info 5, # firefox i...
2013 Mar 15
2
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
On Fri, Mar 15, 2013 at 1:36 AM, Qun Fa <testforqunfa at gmail.com> wrote: > Hi All, > > I think Nick's suggestion is correct, my code was linked against > libprofile_rt.a, which had gcda profiling code before, but was removed > https://github.com/llvm-mirror/llvm/commit/218042a02305a3cc38d968a97ff9ecf4b4abe6ff > > So, I couldn't find the correct symbols from libprofile_rt.a any more. > > Now my assumption is I need to use the correct library that is provided by &...
2016 Mar 04
2
llvm-cov accepting many binary files for aggregated coverage reports
Hi All, I want to provide a solution that presents code coverage reports that include the aggregated code-counts across many binaries. Our test engineers currently do this using gcov-mode by merged .gcda data files. We can do a similar merge of the .profraw files, so that the many binaries are represented in one .profdata file; However, llvm-cov will only generate reports based on one binary at a time. My suggested solution to this problem is for llvm-cov to accept multiple binary files on the com...
2013 Mar 14
0
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
Hi All, I think Nick's suggestion is correct, my code was linked against libprofile_rt.a, which had gcda profiling code before, but was removed https://github.com/llvm-mirror/llvm/commit/218042a02305a3cc38d968a97ff9ecf4b4abe6ff So, I couldn't find the correct symbols from libprofile_rt.a any more. Now my assumption is I need to use the correct library that is provided by compiler-rt. May I know...
2013 Mar 19
2
[LLVMdev] undefined reference to 'llvm_gcda_start_file', 'llvm_gcda_emit_arcs', etc
...msonov at google.com>wrote: > >> >> On Fri, Mar 15, 2013 at 1:36 AM, Qun Fa <testforqunfa at gmail.com> wrote: >> >>> Hi All, >>> >>> I think Nick's suggestion is correct, my code was linked against >>> libprofile_rt.a, which had gcda profiling code before, but was removed >>> https://github.com/llvm-mirror/llvm/commit/218042a02305a3cc38d968a97ff9ecf4b4abe6ff >>> >>> So, I couldn't find the correct symbols from libprofile_rt.a any more. >>> >>> Now my assumption is I need to use t...