From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WKV4a-0004Jo-N4 for ltp-list@lists.sourceforge.net; Mon, 03 Mar 2014 15:46:32 +0000 Received: from mail-qa0-f52.google.com ([209.85.216.52]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WKV4Z-0005RE-Cb for ltp-list@lists.sourceforge.net; Mon, 03 Mar 2014 15:46:32 +0000 Received: by mail-qa0-f52.google.com with SMTP id m5so3666233qaj.11 for ; Mon, 03 Mar 2014 07:46:25 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <52FDE52A.4070002@linux.vnet.ibm.com> Date: Mon, 3 Mar 2014 16:21:11 +0100 Message-ID: From: Michal Simek Subject: Re: [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test? List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============2202517847648756186==" Errors-To: ltp-list-bounces@lists.sourceforge.net To: Naresh Kamboju Cc: ltp-list , ltp-coverage , Peter Oberparleiter , "linux-kernel@vger.kernel.org" , Deepak Saxena , "linux-arm-kernel@lists.infradead.org" , fhrbata@redhat.com, Arnd Bergmann , Mark Brown , Milosz Wasilewski --===============2202517847648756186== Content-Type: multipart/alternative; boundary=001a113a80d674aa3904f3b5562f --001a113a80d674aa3904f3b5562f Content-Type: text/plain; charset=ISO-8859-1 HI, 2014-02-18 15:30 GMT+01:00 Naresh Kamboju : > On 14 February 2014 15:13, Peter Oberparleiter > wrote: > > On 14.02.2014 10:02, Naresh Kamboju wrote: > >> root@linaro-developer:/tmp/linux-linaro-3.13-2014.01# gcov > kernel/gcov/base.c -o > >> /sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/gcov/ > >> File 'kernel/gcov/base.c' > >> Lines executed:43.18% of 44 > >> Creating 'base.c.gcov' > >> > >> root@linaro-developer:/tmp/linux-linaro-3.13-2014.01# > >> > >> The above experiment gives coverage of a single file base.c when i run > >> gcov manually. > >> Is there any way to get Linux kernel coverage of all files after > >> running LTP test cases ? > > > > 1. Reset coverage data: lcov -z > > 2. Run LTP (or any other test case) > > 3. Capture coverage data: lcov -c -o coverage.info > > 4. Generate HTML output: genhtml coverage.info -o out > > 5. View HTML output: out/index.html > > It is working !!! > LTP executed on linux-linaro build on vexpress-tc2 target. > Please find results obtained > http://people.linaro.org/~naresh.kamboju/linux-linaro-coverage-by-ltp/ > > The plan is to run all linaro test suite and to get coverage date. Have you already run it? Are these test cases available? Thanks, Michal --001a113a80d674aa3904f3b5562f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
HI,


2014-02-18 15:30 GMT+01:00 Naresh Kamboju <naresh= .kamboju@linaro.org>:
On 14 February 2014 15:13, Peter Oberparleit= er
<oberpar@l= inux.vnet.ibm.com> wrote:
> On 14.02.2014 10:02, Naresh Kamboju wrote:
>> root@linaro-developer:/tmp/linux-linaro-3.13-2014.01# gcov kernel/= gcov/base.c -o
>> =A0/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/gco= v/
>> File 'kernel/gcov/base.c'
>> Lines executed:43.18% of 44
>> Creating 'base.c.gcov'
>>
>> root@linaro-developer:/tmp/linux-linaro-3.13-2014.01#
>>
>> The above experiment gives coverage of a single file base.c when i= run
>> gcov manually.
>> Is there any way to get Linux kernel coverage of all files after >> running LTP test cases ?
>
> 1. Reset coverage data: lcov -z
> 2. Run LTP (or any other test case)
> 3. Capture coverage data: lcov -c -o coverage.info
> 4. Generate HTML output: genhtml coverage.info -o out
> 5. View HTML output: <browser> out/index.html

It is working !!!
LTP executed on linux-linaro build on vexpress-tc2 target.
Please find results obtained
http://people.linaro.org/~naresh.kamboju/linux-li= naro-coverage-by-ltp/

The plan is to run all linaro test suite and to get coverage date.

Have you already run it? Are these test cases avail= able?

Thanks,
Michal

--001a113a80d674aa3904f3b5562f-- --===============2202517847648756186== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk --===============2202517847648756186== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list --===============2202517847648756186==--