possible to describe the steps you take? this is my understanding:
https://www.kernel.org/doc/Documentation/gcov.txt from above, we know that "kernel" is not a series of program which you can profile individual. it is the WHOLE system underlying the machine, and therefore to profile you have to go through the debugfs: /sys/kernel/debug/gcov Parent directory for all gcov-related files. /sys/kernel/debug/gcov/reset Global reset file: resets all coverage data to zero when written to. /sys/kernel/debug/gcov/path/to/compile/dir/file.gcda The actual gcov data file as understood by the gcov tool. Resets file coverage data to zero when written to. /sys/kernel/debug/gcov/path/to/compile/dir/file.gcno Symbolic link to a static data file required by the gcov tool. This file is generated by gcc when compiling with option -ftest-coverage. On Wednesday, December 16, 2015 at 12:41:21 AM UTC+8, pradeep goswami wrote: > > Hi All, > > I am facing problem while generating gcov profiling report on kernel > source tree . I am getting correct report but summary that is added at > header *.c.gcov file is not correct. > Its coming like below : - > > -: > 0:Source:/home/pradeepgoswami/5_1_code/bin/code/kernel/mm/page_alloc.c > -: 0:Graph:page_alloc.gcno > -: 0:Data:page_alloc.gcda > -: 0:Runs:0 > -: 0:Programs:0 > > > we can see number of Runs and Programs count are not correct , what could > be possible reason for this summary getting generating wrong. > > > Thanks. > Pradeep. -- You received this message because you are subscribed to the Google Groups "linuxkernelnewbies" group. To unsubscribe from this group and stop receiving emails from it, send an email to linuxkernelnewbies+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.