Questions tagged [gcov]

gcov is a code coverage tool for GCC

gcov allows you to analyze which parts of a program are not executed. This is interesting for example in order to know which part of a program are not tested. gcov also serves for profiling purposes.

gcov requires additional flags to be passed to GCC in order to generate a special version of a program. This version shouldn't be shipped because it is slower as it generates coverage data files.

575 questions
-1
votes
1 answer

My Lcov command cannot write to a directory?

What might be causing this sort of error? I am currently using lcov with Cygwin, and do not encounter any issues accessing/reading-from/writing-to the specified path when using gcc or any other Linux commands. Just to demonstrate my exact…
Caffeine
  • 1
  • 1
-1
votes
1 answer

Regarding gcov output in Linux kernel?

I am running gcov in Linux kernel tree , I am getting correct report but some summary that printed at every file header is coming incorrect like below :- -: 0:Graph:page_alloc.gcno -: 0:Data:page_alloc.gcda -: 0:Runs:0 -: …
Pradeep Goswami
  • 1,785
  • 1
  • 15
  • 24
-1
votes
2 answers

GCOV: why sample.gcda and sample.gcno may be different

At first I take the message sample.gcda:stamp mismatch with graph file the order of compilation and running is observed hexdump -e '"%x\n"' -s8 -n4 sample.gcno -> aaa1aaaa hexdump -e '"%x\n"' -s8 -n4 sample.gcda -> bbb2bbbb
usual_user
  • 9
  • 1
  • 3
-1
votes
1 answer

Renaming gcov files for various compilation

how can i give particular name to .gcda and .gcno files each time compile rather than the default name so that i can combine all results in lcov. Suppose in following code. enter code here #include main() { int n; printf("Enter an…
-4
votes
1 answer

How to move gcno files and how to move gcda files by using GCOV_PREFIX?

"iam generating Code Coverage but unable to change the directory of gcda files that where to save " "Tried GCOV_PREFIX" but no response "/home/user/rock nano 1.c gcc -fprofile-arcs -ftest-coverage 1.c this will create 1.gcno and a.out executing…
Aditya
  • 1
  • 3
1 2 3
38
39