From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbaDDLAg (ORCPT ); Fri, 4 Apr 2014 07:00:36 -0400 Received: from mail-yk0-f175.google.com ([209.85.160.175]:55134 "EHLO mail-yk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752436AbaDDLAc (ORCPT ); Fri, 4 Apr 2014 07:00:32 -0400 MIME-Version: 1.0 In-Reply-To: References: <52FDE52A.4070002@linux.vnet.ibm.com> Date: Fri, 4 Apr 2014 16:30:31 +0530 Message-ID: Subject: Re: [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test? From: Naresh Kamboju To: Michal Simek Cc: Peter Oberparleiter , Milosz Wasilewski , Arnd Bergmann , fhrbata@redhat.com, Paul Larson , ltp-list , ltp-coverage , Mark Brown , "linux-kernel@vger.kernel.org" , Deepak Saxena , "linux-arm-kernel@lists.infradead.org" Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3 March 2014 20:51, Michal Simek wrote: > 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? I have tested LTP on vexpress-tc2. I did not try all test suites. We ( In Linaro) Linaro Test Suites is a package that contains test suites that can be run in LAVA. http://releases.linaro.org/14.03/components/platform/linaro-test-suites > > Thanks, > Michal > From mboxrd@z Thu Jan 1 00:00:00 1970 From: naresh.kamboju@linaro.org (Naresh Kamboju) Date: Fri, 4 Apr 2014 16:30:31 +0530 Subject: [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test? In-Reply-To: References: <52FDE52A.4070002@linux.vnet.ibm.com> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 3 March 2014 20:51, Michal Simek wrote: > 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 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 >> >> 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? I have tested LTP on vexpress-tc2. I did not try all test suites. We ( In Linaro) Linaro Test Suites is a package that contains test suites that can be run in LAVA. http://releases.linaro.org/14.03/components/platform/linaro-test-suites > > Thanks, > Michal > 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-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1WW1rT-0007Cu-8S for ltp-list@lists.sourceforge.net; Fri, 04 Apr 2014 11:00:39 +0000 Received: from mail-yk0-f178.google.com ([209.85.160.178]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1WW1rR-0004CR-J4 for ltp-list@lists.sourceforge.net; Fri, 04 Apr 2014 11:00:39 +0000 Received: by mail-yk0-f178.google.com with SMTP id 79so2719729ykr.37 for ; Fri, 04 Apr 2014 04:00:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <52FDE52A.4070002@linux.vnet.ibm.com> Date: Fri, 4 Apr 2014 16:30:31 +0530 Message-ID: From: Naresh Kamboju 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: Michal Simek 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 On 3 March 2014 20:51, Michal Simek wrote: > 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? I have tested LTP on vexpress-tc2. I did not try all test suites. We ( In Linaro) Linaro Test Suites is a package that contains test suites that can be run in LAVA. http://releases.linaro.org/14.03/components/platform/linaro-test-suites > > Thanks, > Michal > ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list