Hi Peter/Naresh,

 

good news!!

 

After Applying  the gcov 4.7 patches on kernel/gcov, and enabled CONFIG_GCOV_FORMAT_4_7 the issue with gcno is resolved.

so it was due to the version incompatibility as you told.

 

now while running "lcov -c -o coverage.info", this runs for ~5 minutes without any issues and then is stuck at this below red point for long time and never exits.

So i did ctrl-C and tried the "genhtml coverage.info -o out" and it worked.

I could see the LCOV report(Attached index.html) in "out" folder.

But looks like complete kernel folders are not there in the LCOV report as it was stuck at below point.

Any comments?

 

include/asm-generic/bitops/arch_hweight.h:source file is newer than graph file '/home/mallikarjun.bc/LTP/Download/linux-dev/KERNEL/mm/vmstat.gc'
/home/mallikarjun.bc/LTP/Download/linux-dev/KERNEL/arch/arm/include/asm/bitops.h:source file is newer than graph file '/home/mallikarjun.bc/LTP'
include/linux/workqueue.h:source file is newer than graph file '/home/mallikarjun.bc/LTP/Download/linux-dev/KERNEL/mm/vmstat.gcno'
include/linux/nodemask.h:source file is newer than graph file '/home/mallikarjun.bc/LTP/Download/linux-dev/KERNEL/mm/vmstat.gcno'
include/linux/kernel.h:source file is newer than graph file '/home/mallikarjun.bc/LTP/Download/linux-dev/KERNEL/mm/vmstat.gcno'

Thanks very much both of you for the help.

 

Regards,

Shinto

 

-----Original Message-----
From: "Naresh Kamboju" <[email protected]>
Sent: Wednesday, April 9, 2014 10:12am
To: [email protected], "Peter Oberparleiter" <[email protected]>
Cc: "ltp-list" <[email protected]>, "ltp-coverage" <[email protected]>
Subject: Re: [Ltp-coverage] running LCOV/LTP on Beagle Bone Black - Cannot Allocate Memory Error

hi Shinto,

> Hi Peter,
>
> Thanks for identifying the issue.
> I checked my kernel source code and there is only gcc_3_4.c present in kernel/gcov folder and gcc_4_7.c is NOT present. So as you suggested i will have to upgrade to higher version.
>
> I will check with the latest kernel with GCOV 4.7 on beagle bone black and let you know the result.
>
> currently i use below steps for downloading the kernel source for beagle bone black.
>
> git clone git://github.com/RobertCNelson/linux-dev.git
> cd linux-dev/
> Checkout v3.8.x branch (full cape support):
>
> ~/linux-dev
> git checkout origin/am33x-v3.8 -b tmp

You may use latest linaro arm tool chain.
http://releases.linaro.org/14.03/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.bz2

> ~/linux-dev
> ./build_kernel.sh
> Regards,
> Shinto

Title: LCOV - coverage.info
LCOV - code coverage report
Current view: top level Hit Total Coverage
Test: coverage.info Lines: 9328 74136 12.6 %
Date: 2013-12-19 Functions: 931 7426 12.5 %
Branches: 3938 52644 7.5 %

Directory Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
arch/arm/common
7.3%7.3%
7.3 % 63 / 863 8.2 % 5 / 61 2.5 % 13 / 514
arch/arm/include/asm
50.7%50.7%
50.7 % 110 / 217 - 0 / 0 9.8 % 49 / 501
arch/arm/include/asm/hardware
0.0%
0.0 % 0 / 1 - 0 / 0 - 0 / 0
arch/arm/include/asm/mach
0.0%
0.0 % 0 / 9 - 0 / 0 0.0 % 0 / 8
arch/arm/kernel
9.8%9.8%
9.8 % 431 / 4410 8.8 % 42 / 479 6.5 % 143 / 2215
arch/arm/lib
9.1%9.1%
9.1 % 3 / 33 16.7 % 1 / 6 7.1 % 1 / 14
arch/arm/mach-omap2
3.5%3.5%
3.5 % 437 / 12533 4.2 % 55 / 1302 2.6 % 174 / 6619
arch/arm/mm
12.5%12.5%
12.5 % 273 / 2190 16.6 % 33 / 199 6.9 % 99 / 1431
arch/arm/nwfpe
1.0%1.0%
1.0 % 14 / 1407 2.3 % 2 / 86 0.3 % 4 / 1546
arch/arm/oprofile
0.0%
0.0 % 0 / 34 0.0 % 0 / 6 0.0 % 0 / 20
arch/arm/plat-omap
0.0%
0.0 % 0 / 1081 0.0 % 0 / 94 0.0 % 0 / 556
arch/arm/plat-omap/include/plat
11.4%11.4%
11.4 % 4 / 35 - 0 / 0 2.6 % 2 / 78
arch/arm/vfp
6.7%6.7%
6.7 % 81 / 1207 8.2 % 7 / 85 1.3 % 18 / 1340
block
32.1%32.1%
32.1 % 1780 / 5553 28.4 % 161 / 566 22.8 % 877 / 3851
block/partitions
0.0%
0.0 % 0 / 363 0.0 % 0 / 21 0.0 % 0 / 296
crypto
0.0%
0.0 % 0 / 2955 0.0 % 0 / 332 0.0 % 0 / 1260
include/asm-generic
43.8%43.8%
43.8 % 14 / 32 - 0 / 0 40.0 % 4 / 10
include/asm-generic/bitops
34.6%34.6%
34.6 % 9 / 26 - 0 / 0 11.5 % 3 / 26
include/crypto
0.0%
0.0 % 0 / 51 - 0 / 0 0.0 % 0 / 22
include/crypto/internal
0.0%
0.0 % 0 / 22 - 0 / 0 - 0 / 0
include/linux
38.5%38.5%
38.5 % 496 / 1287 0.0 % 0 / 1 12.0 % 216 / 1798
include/linux/pinctrl
0.0%
0.0 % 0 / 8 - 0 / 0 0.0 % 0 / 6
include/linux/unaligned
0.0%
0.0 % 0 / 2 - 0 / 0 - 0 / 0
include/net
0.0%
0.0 % 0 / 1 - 0 / 0 0.0 % 0 / 2
include/trace/events
29.8%29.8%
29.8 % 48 / 161 0.0 % 0 / 246 2.9 % 58 / 2016
include/uapi/linux
0.0%
0.0 % 0 / 5 - 0 / 0 0.0 % 0 / 8
include/uapi/linux/byteorder
0.0%
0.0 % 0 / 2 - 0 / 0 - 0 / 0
init
0.0%
0.0 % 0 / 1155 0.0 % 0 / 90 0.0 % 0 / 588
kernel
19.4%19.4%
19.4 % 3810 / 19644 22.4 % 436 / 1944 11.1 % 1607 / 14475
kernel/events
1.8%1.8%
1.8 % 56 / 3092 3.6 % 10 / 280 1.0 % 21 / 2110
kernel/gcov
36.6%36.6%
36.6 % 174 / 475 34.5 % 19 / 55 33.7 % 90 / 267
kernel/irq
5.2%5.2%
5.2 % 94 / 1825 6.1 % 12 / 196 2.5 % 30 / 1220
kernel/power
0.0%
0.0 % 0 / 493 0.0 % 0 / 59 0.0 % 0 / 337
kernel/sched
24.2%24.2%
24.2 % 1061 / 4380 25.7 % 109 / 424 13.1 % 414 / 3170
kernel/time
15.3%15.3%
15.3 % 370 / 2416 15.5 % 39 / 251 5.4 % 115 / 2121
kernel/trace
0.0%
0.0 % 0 / 6168 0.0 % 0 / 643 0.0 % 0 / 4219

Generated by: LCOV version 1.9

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to