Hi Peter/Naresh/All,
Kernel version: 3.8.13
I am sending this mail to get your valuable inputs regarding an issue i am facing while running LCOV as part of an LTP activity.
Currently i am working on LTP and GCOV integration on TI J6 board.
I have enabled the GCOV in kernel using attached patch.
This patch works fine for Beagle bone black with same kernel version 3.8.13 and coverage results are captured for LTP.
Now in J6 i face below issue.
root@dra7xx-evm:/home/coverage# lcov -c -o coverage.info
Auto-detecting gcov kernel support.
Found upstream gcov kernel support at /sys/kernel/debug/gcov
Copying data to temporary directory /tmp/D5EuajnqI8
Capturing coverage data from /tmp/D5EuajnqI8
Found gcov version: 4.7.2
Scanning /tmp/D5EuajnqI8 for .gcda files ...
geninfo: ERROR: no .gcda files found in /tmp/D5EuajnqI8!
But when i checked /sys/kernel/debug/gcov/, i could see .gcda and .gcno files in all the kernel folders. for eg
ls -l /sys/kernel/debug/gcov/home/dattatraya.patil/dar7xx/board-support/linux/kernel/wait.*
-rw------- 1 root root 0 Jan 1 1970 wait.gcda
lrwxrwxrwx 1 root root 0 Jan 1 1970 wait.gcno -> /home/dattatraya.patil/dar7xx/board-support/linux/kernel/.tmp_wait.gcno
ls -l /home/dattatraya.patil/dar7xx/board-support/linux/kernel/.tmp_wait.gcno
-rw-rw-r-- 1 1001 1003 10748 Jul 14 2014 /home/dattatraya.patil/dar7xx/board-support/linux/kernel/.tmp_wait.gcno
In /sys/kernel/debug/gcov folder, the .gcda and .gcno files looks empty with 0kb.
can you please share your valid inputs to point out the possible issue?
Regards,
Shinto