Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756135AbaBROa3 (ORCPT ); Tue, 18 Feb 2014 09:30:29 -0500 Received: from mail-yh0-f43.google.com ([209.85.213.43]:40659 "EHLO mail-yh0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755565AbaBROaZ (ORCPT ); Tue, 18 Feb 2014 09:30:25 -0500 MIME-Version: 1.0 In-Reply-To: <52FDE52A.4070002@linux.vnet.ibm.com> References: <52FDE52A.4070002@linux.vnet.ibm.com> Date: Tue, 18 Feb 2014 20:00:21 +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: Peter Oberparleiter , Milosz Wasilewski Cc: 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 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. Peter Oberparleiter, Thank you very much for your help. Best regards Naresh Kamboju > > 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 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/