From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752003AbaBNJnI (ORCPT ); Fri, 14 Feb 2014 04:43:08 -0500 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:33225 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbaBNJnE (ORCPT ); Fri, 14 Feb 2014 04:43:04 -0500 Message-ID: <52FDE52A.4070002@linux.vnet.ibm.com> Date: Fri, 14 Feb 2014 10:43:06 +0100 From: Peter Oberparleiter MIME-Version: 1.0 To: Naresh Kamboju , Arnd Bergmann , fhrbata@redhat.com, Paul Larson CC: ltp-list , ltp-coverage , Mark Brown , "linux-kernel@vger.kernel.org" , Deepak Saxena , "linux-arm-kernel@lists.infradead.org" , Milosz Wasilewski Subject: Re: [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14021409-3548-0000-0000-000008132D57 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 More information on lcov can be found on the page behind the second URL your quoted in your mail. Regards, Peter Oberparleiter -- Peter Oberparleiter Linux on System z Development - IBM Germany From mboxrd@z Thu Jan 1 00:00:00 1970 From: oberpar@linux.vnet.ibm.com (Peter Oberparleiter) Date: Fri, 14 Feb 2014 10:43:06 +0100 Subject: [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test? In-Reply-To: References: Message-ID: <52FDE52A.4070002@linux.vnet.ibm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 14.02.2014 10:02, Naresh Kamboju wrote: > root at 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 at 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 More information on lcov can be found on the page behind the second URL your quoted in your mail. Regards, Peter Oberparleiter -- Peter Oberparleiter Linux on System z Development - IBM Germany 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-2.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WEFId-0000zB-5o for ltp-list@lists.sourceforge.net; Fri, 14 Feb 2014 09:43:11 +0000 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1WEFIb-0001Ps-44 for ltp-list@lists.sourceforge.net; Fri, 14 Feb 2014 09:43:11 +0000 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 14 Feb 2014 09:43:02 -0000 Message-ID: <52FDE52A.4070002@linux.vnet.ibm.com> Date: Fri, 14 Feb 2014 10:43:06 +0100 From: Peter Oberparleiter MIME-Version: 1.0 References: In-Reply-To: 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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Naresh Kamboju , Arnd Bergmann , fhrbata@redhat.com, Paul Larson Cc: ltp-list , ltp-coverage , Mark Brown , "linux-kernel@vger.kernel.org" , Deepak Saxena , Milosz Wasilewski , "linux-arm-kernel@lists.infradead.org" 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 More information on lcov can be found on the page behind the second URL your quoted in your mail. Regards, Peter Oberparleiter -- Peter Oberparleiter Linux on System z Development - IBM Germany ------------------------------------------------------------------------------ Android apps run on BlackBerry 10 Introducing the new BlackBerry 10.2.1 Runtime for Android apps. Now with support for Jelly Bean, Bluetooth, Mapview and more. Get your Android app in front of a whole new audience. Start now. http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list