* [LTP] not able to generate HTML output @ 2010-02-18 7:00 Pramendra Singh 2010-02-18 10:14 ` Rishikesh K Rajak 0 siblings, 1 reply; 4+ messages in thread From: Pramendra Singh @ 2010-02-18 7:00 UTC (permalink / raw) To: ltp-list@lists.sourceforge.net [-- Attachment #1.1: Type: text/plain, Size: 1617 bytes --] Hi everyone, Good afternoon! I am new to LTP and using it to test my code for PPC architecture. I have patched my kernel with GCOV and it seems working fine. But I am not able to get the HTML of code coverage/ I am cross compiling the kernel on my server for PPC and putting the image to my PPC target board. After test I am able to get .gcda file for my .c file and I take it back to my server where my kernel source is there. I use ppc_85xx-gcov for generating coverage and after that I use "geninfo " utiliy available in lcov-1.8 but I get error "not able to open Basic block .bb files." Problem is that in my source code there is no .bb files but .gcno files are there and I think that is because my gcc compiler version is 3.4.1 but "geninfo" binary is compiled with some low version gcc. So please let me know where to get source code for geninfo and genhtml so That I can compile them for PPC architecture with my gcc version. Or let me know if I am doing anything wrong is code coverage process. Thanks in advance! Thanks and Regards Pramendra Singh (Sr. Software Engg) L&T InfoTech Ltd, Plot No # 25 ~31 EPIP 2nd Phase, KIADB, Whitefield, Bangalore - 560066, Phone: 080-66242424, Extn: 2106, Mobile No: 9449718250 ________________________________ This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. ______________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 5424 bytes --] [-- Attachment #2: Type: text/plain, Size: 346 bytes --] ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev [-- Attachment #3: Type: text/plain, Size: 155 bytes --] _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] not able to generate HTML output 2010-02-18 7:00 [LTP] not able to generate HTML output Pramendra Singh @ 2010-02-18 10:14 ` Rishikesh K Rajak [not found] ` <EB1A7C66AD0C92419BFFC785A947865A09EAE448A4@BLRINMSMBX01.bglrodc.lntinfotech.com> 0 siblings, 1 reply; 4+ messages in thread From: Rishikesh K Rajak @ 2010-02-18 10:14 UTC (permalink / raw) To: Pramendra Singh; +Cc: ltp-list@lists.sourceforge.net Hi Pramendra, Can you let us know on which kernel/distro you are trying to take coverage ? Thanks Rishikesh On Thu, Feb 18, 2010 at 12:30:03PM +0530, Pramendra Singh wrote: > Hi everyone, > > Good afternoon! > > I am new to LTP and using it to test my code for PPC architecture. > I have patched my kernel with GCOV and it seems working fine. But > I am not able to get the HTML of code coverage/ > > I am cross compiling the kernel on my server for PPC and putting the image > to my PPC target board. After test I am able to get .gcda file for my .c file > and I take it back to my server where my kernel source is there. > > I use ppc_85xx-gcov for generating coverage and after that I use > "geninfo " utiliy available in lcov-1.8 but I get error "not able to open > Basic block .bb files." > > Problem is that in my source code there is no .bb files but .gcno files are there > and I think that is because my gcc compiler version is 3.4.1 but "geninfo" binary > is compiled with some low version gcc. > > So please let me know where to get source code for geninfo and genhtml so > That I can compile them for PPC architecture with my gcc version. > > Or let me know if I am doing anything wrong is code coverage process. > > Thanks in advance! > > Thanks and Regards > Pramendra Singh (Sr. Software Engg) > L&T InfoTech Ltd, Plot No # 25 ~31 > EPIP 2nd Phase, KIADB, Whitefield, > Bangalore - 560066, Phone: 080-66242424, Extn: 2106, > Mobile No: 9449718250 > > > > ________________________________ > This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. > > ______________________________________________________________________ > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Ltp-list mailing list > Ltp-list@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ltp-list ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <EB1A7C66AD0C92419BFFC785A947865A09EAE448A4@BLRINMSMBX01.bglrodc.lntinfotech.com>]
* Re: [LTP] not able to generate HTML output [not found] ` <EB1A7C66AD0C92419BFFC785A947865A09EAE448A4@BLRINMSMBX01.bglrodc.lntinfotech.com> @ 2010-02-18 10:47 ` Rishikesh K Rajak 2010-02-18 19:42 ` Peter Oberparleiter 0 siblings, 1 reply; 4+ messages in thread From: Rishikesh K Rajak @ 2010-02-18 10:47 UTC (permalink / raw) To: Pramendra Singh; +Cc: ltp-list, oberpapr On Thu, Feb 18, 2010 at 03:51:26PM +0530, Pramendra Singh wrote: > Hi Risikesh, > > I am using 2.6.20 gcov patch to MVL(Montavista) kernel which is 2.6.10. > I have applied the patch manually and I am testing some code added by me. > I able to get *.gcda file and able to generate *.c.gcov and can see the coverage. > > I have cross compiled the kernel and after testing it on target board I am > Copying the *.gcda file (copying only *.gcda, nothing else...I am not sure if I > need to copy anything else??) to my kernel source which is at other system. > > Montavista provides gcov binary but not geninfo/genhtml. So I am trying to use > binary provided in lcov-1.8 but it says "not able to open .bb file". I am cc'ing peter, as he will definitely help you with this information now. Thanks Rishi > > -----Original Message----- > From: Rishikesh K Rajak [mailto:risrajak@linux.vnet.ibm.com] > Sent: Thursday, February 18, 2010 3:45 PM > To: Pramendra Singh > Cc: ltp-list@lists.sourceforge.net > Subject: Re: [LTP] not able to generate HTML output > > Hi Pramendra, > Can you let us know on which kernel/distro you are trying to take coverage ? > > Thanks > Rishikesh > > On Thu, Feb 18, 2010 at 12:30:03PM +0530, Pramendra Singh wrote: > > Hi everyone, > > > > Good afternoon! > > > > I am new to LTP and using it to test my code for PPC architecture. > > I have patched my kernel with GCOV and it seems working fine. But > > I am not able to get the HTML of code coverage/ > > > > I am cross compiling the kernel on my server for PPC and putting the image > > to my PPC target board. After test I am able to get .gcda file for my .c file > > and I take it back to my server where my kernel source is there. > > > > I use ppc_85xx-gcov for generating coverage and after that I use > > "geninfo " utiliy available in lcov-1.8 but I get error "not able to open > > Basic block .bb files." > > > > Problem is that in my source code there is no .bb files but .gcno files are there > > and I think that is because my gcc compiler version is 3.4.1 but "geninfo" binary > > is compiled with some low version gcc. > > > > So please let me know where to get source code for geninfo and genhtml so > > That I can compile them for PPC architecture with my gcc version. > > > > Or let me know if I am doing anything wrong is code coverage process. > > > > Thanks in advance! > > > > Thanks and Regards > > Pramendra Singh (Sr. Software Engg) > > L&T InfoTech Ltd, Plot No # 25 ~31 > > EPIP 2nd Phase, KIADB, Whitefield, > > Bangalore - 560066, Phone: 080-66242424, Extn: 2106, > > Mobile No: 9449718250 > > > > > > > > ________________________________ > > This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. > > > > ______________________________________________________________________ > > > ------------------------------------------------------------------------------ > > Download Intel® Parallel Studio Eval > > Try the new software tools for yourself. Speed compiling, find bugs > > proactively, and fine-tune applications for parallel performance. > > See why Intel Parallel Studio got high marks during beta. > > http://p.sf.net/sfu/intel-sw-dev > > > _______________________________________________ > > Ltp-list mailing list > > Ltp-list@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/ltp-list > > > ______________________________________________________________________ > > This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system. > > ______________________________________________________________________ ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] not able to generate HTML output 2010-02-18 10:47 ` Rishikesh K Rajak @ 2010-02-18 19:42 ` Peter Oberparleiter 0 siblings, 0 replies; 4+ messages in thread From: Peter Oberparleiter @ 2010-02-18 19:42 UTC (permalink / raw) To: Rishikesh K Rajak; +Cc: ltp-list, Pramendra Singh If you're cross-compiling your kernel and want to run lcov on the build machine, you need to specify the full path to the cross-compiler gcov tool, otherwise lcov will attempt to use the gcov tool of the locally installed gcc package. Example: lcov -c -d /path/to/files --gcov-tool /path/to/ppc_85xx-gcov -o x.info Also note that lcov can do the copying of .gcda files for you if a perl interpreter and the lcov file is available. On the test machine, run: lcov -c --to-package package Copy the package file to the build machine. On the build machine, run: lcov -c --from-package package --gcov-tool ... Regards, Peter Oberparleiter ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-18 19:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-18 7:00 [LTP] not able to generate HTML output Pramendra Singh
2010-02-18 10:14 ` Rishikesh K Rajak
[not found] ` <EB1A7C66AD0C92419BFFC785A947865A09EAE448A4@BLRINMSMBX01.bglrodc.lntinfotech.com>
2010-02-18 10:47 ` Rishikesh K Rajak
2010-02-18 19:42 ` Peter Oberparleiter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox