From: Naresh Kamboju <naresh.kamboju@linaro.org>
To: Arnd Bergmann <arnd.bergmann@linaro.org>,
fhrbata@redhat.com, oberpar@linux.vnet.ibm.com,
Paul Larson <paul.larson@canonical.com>
Cc: Deepak Saxena <dsaxena@linaro.org>,
Mark Brown <mark.brown@linaro.org>,
Milosz Wasilewski <milosz.wasilewski@linaro.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
ltp-coverage <ltp-coverage@lists.sourceforge.net>,
ltp-list <ltp-list@lists.sourceforge.net>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: How to get the Linux kernel coverage data on ARM arch when I run LTP test?
Date: Fri, 14 Feb 2014 14:32:47 +0530 [thread overview]
Message-ID: <CA+G9fYuT4TSs=3j6K9zztsTgFNVp2YG6JT-2Q_L==1P5G+SBew@mail.gmail.com> (raw)
Hi All,
Sorry for the wide distribution:
According to LTP page info,
http://ltp.sourceforge.net/coverage/gcov.php
http://ltp.sourceforge.net/coverage/lcov.php
My question is
How to get kernel coverage when I run LTP test?
Since we do not have direct GCOV support on ARM I have enabled ( just
for experiment)
$ git diff kernel/gcov/Kconfig
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig
index d4da55d..fceac85 100644
--- a/kernel/gcov/Kconfig
+++ b/kernel/gcov/Kconfig
@@ -35,7 +35,7 @@ config GCOV_KERNEL
config GCOV_PROFILE_ALL
bool "Profile entire Kernel"
depends on GCOV_KERNEL
- depends on SUPERH || S390 || X86 || PPC || MICROBLAZE
+ depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM
default n
---help---
This options activates profiling for the entire kernel.
I have enabled below kernel config and built the kernel.
CONFIG_GCOV_KERNEL=y
CONFIG_GCOV_PROFILE_ALL=y
CONFIG_GCOV_FORMAT_AUTODETECT=y
of course I have disabled gcov on below folders and files, because
since it is an experiment i would like to be on safe side
- arch/arm/mm/
- arch/arm/kernel/
- arch/arm/boot/
- arch/arm/boot/compressed/
- arch/arm/boot/bootp/
- arch/arm/boot/dts
Arndale booted with this configuration successfully.
Took more than 65 seconds to finish boot.
gcov related files are found under /sys/ similer to X86 machine.
And gcov supporting files filename.gcda are having links to kernel source
root@linaro-developer:~# ls /sys/kernel/debug/gcov/
reset tmp
root@linaro-developer:~#
root@linaro-developer:~# ls /sys/kernel/debug/gcov/tmp/
linux-linaro-3.13-2014.01
root@linaro-developer:~# ls
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/
arch block crypto drivers fs init ipc kernel lib mm security virt
root@linaro-developer:~# ls
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.* -l
-rw------- 1 root root 0 Jan 1 1970
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.gcda
lrwxrwxrwx 1 root root 0 Jan 1 1970
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.gcno
-> /tmp/linux-linaro-3.13-2014.01/kernel/time.gcno
root@linaro-developer:~#
Source are placed under /tmp/
root@linaro-developer:/tmp/linux-linaro-3.13-2014.01# ls kernel/time.* -l
-rw-rw-r-- 1 linaro linaro 19233 Jan 24 2014 kernel/time.c
-rw-rw-r-- 1 linaro linaro 12768 Feb 13 2014 kernel/time.gcno
-rw-rw-r-- 1 linaro linaro 136444 Feb 13 2014 kernel/time.o
root@linaro-developer:/tmp/linux-linaro-3.13-2014.01#
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 ?
Thanks in advance.
Best regards
Naresh Kamboju
WARNING: multiple messages have this Message-ID (diff)
From: naresh.kamboju@linaro.org (Naresh Kamboju)
To: linux-arm-kernel@lists.infradead.org
Subject: How to get the Linux kernel coverage data on ARM arch when I run LTP test?
Date: Fri, 14 Feb 2014 14:32:47 +0530 [thread overview]
Message-ID: <CA+G9fYuT4TSs=3j6K9zztsTgFNVp2YG6JT-2Q_L==1P5G+SBew@mail.gmail.com> (raw)
Hi All,
Sorry for the wide distribution:
According to LTP page info,
http://ltp.sourceforge.net/coverage/gcov.php
http://ltp.sourceforge.net/coverage/lcov.php
My question is
How to get kernel coverage when I run LTP test?
Since we do not have direct GCOV support on ARM I have enabled ( just
for experiment)
$ git diff kernel/gcov/Kconfig
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig
index d4da55d..fceac85 100644
--- a/kernel/gcov/Kconfig
+++ b/kernel/gcov/Kconfig
@@ -35,7 +35,7 @@ config GCOV_KERNEL
config GCOV_PROFILE_ALL
bool "Profile entire Kernel"
depends on GCOV_KERNEL
- depends on SUPERH || S390 || X86 || PPC || MICROBLAZE
+ depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM
default n
---help---
This options activates profiling for the entire kernel.
I have enabled below kernel config and built the kernel.
CONFIG_GCOV_KERNEL=y
CONFIG_GCOV_PROFILE_ALL=y
CONFIG_GCOV_FORMAT_AUTODETECT=y
of course I have disabled gcov on below folders and files, because
since it is an experiment i would like to be on safe side
- arch/arm/mm/
- arch/arm/kernel/
- arch/arm/boot/
- arch/arm/boot/compressed/
- arch/arm/boot/bootp/
- arch/arm/boot/dts
Arndale booted with this configuration successfully.
Took more than 65 seconds to finish boot.
gcov related files are found under /sys/ similer to X86 machine.
And gcov supporting files filename.gcda are having links to kernel source
root at linaro-developer:~# ls /sys/kernel/debug/gcov/
reset tmp
root at linaro-developer:~#
root at linaro-developer:~# ls /sys/kernel/debug/gcov/tmp/
linux-linaro-3.13-2014.01
root at linaro-developer:~# ls
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/
arch block crypto drivers fs init ipc kernel lib mm security virt
root at linaro-developer:~# ls
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.* -l
-rw------- 1 root root 0 Jan 1 1970
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.gcda
lrwxrwxrwx 1 root root 0 Jan 1 1970
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.gcno
-> /tmp/linux-linaro-3.13-2014.01/kernel/time.gcno
root at linaro-developer:~#
Source are placed under /tmp/
root at linaro-developer:/tmp/linux-linaro-3.13-2014.01# ls kernel/time.* -l
-rw-rw-r-- 1 linaro linaro 19233 Jan 24 2014 kernel/time.c
-rw-rw-r-- 1 linaro linaro 12768 Feb 13 2014 kernel/time.gcno
-rw-rw-r-- 1 linaro linaro 136444 Feb 13 2014 kernel/time.o
root at linaro-developer:/tmp/linux-linaro-3.13-2014.01#
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 ?
Thanks in advance.
Best regards
Naresh Kamboju
WARNING: multiple messages have this Message-ID (diff)
From: Naresh Kamboju <naresh.kamboju@linaro.org>
To: Arnd Bergmann <arnd.bergmann@linaro.org>,
fhrbata@redhat.com, oberpar@linux.vnet.ibm.com,
Paul Larson <paul.larson@canonical.com>
Cc: ltp-list <ltp-list@lists.sourceforge.net>,
ltp-coverage <ltp-coverage@lists.sourceforge.net>,
Mark Brown <mark.brown@linaro.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Deepak Saxena <dsaxena@linaro.org>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Milosz Wasilewski <milosz.wasilewski@linaro.org>
Subject: [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test?
Date: Fri, 14 Feb 2014 14:32:47 +0530 [thread overview]
Message-ID: <CA+G9fYuT4TSs=3j6K9zztsTgFNVp2YG6JT-2Q_L==1P5G+SBew@mail.gmail.com> (raw)
Hi All,
Sorry for the wide distribution:
According to LTP page info,
http://ltp.sourceforge.net/coverage/gcov.php
http://ltp.sourceforge.net/coverage/lcov.php
My question is
How to get kernel coverage when I run LTP test?
Since we do not have direct GCOV support on ARM I have enabled ( just
for experiment)
$ git diff kernel/gcov/Kconfig
diff --git a/kernel/gcov/Kconfig b/kernel/gcov/Kconfig
index d4da55d..fceac85 100644
--- a/kernel/gcov/Kconfig
+++ b/kernel/gcov/Kconfig
@@ -35,7 +35,7 @@ config GCOV_KERNEL
config GCOV_PROFILE_ALL
bool "Profile entire Kernel"
depends on GCOV_KERNEL
- depends on SUPERH || S390 || X86 || PPC || MICROBLAZE
+ depends on SUPERH || S390 || X86 || PPC || MICROBLAZE || ARM
default n
---help---
This options activates profiling for the entire kernel.
I have enabled below kernel config and built the kernel.
CONFIG_GCOV_KERNEL=y
CONFIG_GCOV_PROFILE_ALL=y
CONFIG_GCOV_FORMAT_AUTODETECT=y
of course I have disabled gcov on below folders and files, because
since it is an experiment i would like to be on safe side
- arch/arm/mm/
- arch/arm/kernel/
- arch/arm/boot/
- arch/arm/boot/compressed/
- arch/arm/boot/bootp/
- arch/arm/boot/dts
Arndale booted with this configuration successfully.
Took more than 65 seconds to finish boot.
gcov related files are found under /sys/ similer to X86 machine.
And gcov supporting files filename.gcda are having links to kernel source
root@linaro-developer:~# ls /sys/kernel/debug/gcov/
reset tmp
root@linaro-developer:~#
root@linaro-developer:~# ls /sys/kernel/debug/gcov/tmp/
linux-linaro-3.13-2014.01
root@linaro-developer:~# ls
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/
arch block crypto drivers fs init ipc kernel lib mm security virt
root@linaro-developer:~# ls
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.* -l
-rw------- 1 root root 0 Jan 1 1970
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.gcda
lrwxrwxrwx 1 root root 0 Jan 1 1970
/sys/kernel/debug/gcov/tmp/linux-linaro-3.13-2014.01/kernel/time.gcno
-> /tmp/linux-linaro-3.13-2014.01/kernel/time.gcno
root@linaro-developer:~#
Source are placed under /tmp/
root@linaro-developer:/tmp/linux-linaro-3.13-2014.01# ls kernel/time.* -l
-rw-rw-r-- 1 linaro linaro 19233 Jan 24 2014 kernel/time.c
-rw-rw-r-- 1 linaro linaro 12768 Feb 13 2014 kernel/time.gcno
-rw-rw-r-- 1 linaro linaro 136444 Feb 13 2014 kernel/time.o
root@linaro-developer:/tmp/linux-linaro-3.13-2014.01#
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 ?
Thanks in advance.
Best regards
Naresh Kamboju
------------------------------------------------------------------------------
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
next reply other threads:[~2014-02-14 9:02 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-14 9:02 Naresh Kamboju [this message]
2014-02-14 9:02 ` [LTP] How to get the Linux kernel coverage data on ARM arch when I run LTP test? Naresh Kamboju
2014-02-14 9:02 ` Naresh Kamboju
2014-02-14 9:43 ` [LTP] " Peter Oberparleiter
2014-02-14 9:43 ` Peter Oberparleiter
2014-02-14 9:43 ` Peter Oberparleiter
2014-02-18 14:30 ` Naresh Kamboju
2014-02-18 14:30 ` Naresh Kamboju
2014-02-18 14:30 ` Naresh Kamboju
2014-03-03 15:21 ` Michal Simek
2014-04-04 11:00 ` Naresh Kamboju
2014-04-04 11:00 ` Naresh Kamboju
2014-04-04 11:00 ` Naresh Kamboju
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+G9fYuT4TSs=3j6K9zztsTgFNVp2YG6JT-2Q_L==1P5G+SBew@mail.gmail.com' \
--to=naresh.kamboju@linaro.org \
--cc=arnd.bergmann@linaro.org \
--cc=dsaxena@linaro.org \
--cc=fhrbata@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ltp-coverage@lists.sourceforge.net \
--cc=ltp-list@lists.sourceforge.net \
--cc=mark.brown@linaro.org \
--cc=milosz.wasilewski@linaro.org \
--cc=oberpar@linux.vnet.ibm.com \
--cc=paul.larson@canonical.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.