From: Andrew Morton <akpm@linux-foundation.org>
To: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Cc: linux-kernel@vger.kernel.org, ltp-list@lists.sourceforge.net,
ltp-coverage@lists.sourceforge.net
Subject: Re: [RFC PATCH 5/6] gcov: add gcov profiling infrastructure
Date: Mon, 5 May 2008 21:30:52 -0700 [thread overview]
Message-ID: <20080505213052.b1022c42.akpm@linux-foundation.org> (raw)
In-Reply-To: <481F26BE.2060706@de.ibm.com>
On Mon, 05 May 2008 17:24:46 +0200 Peter Oberparleiter <peter.oberparleiter@de.ibm.com> wrote:
> +config GCOV_PROFILE
> + bool "Activate gcov-based profiling"
> + depends on DEBUG_FS
> + ---help---
> + This option enables gcov-based code profiling (e.g. for code coverage
> + measurements).
> +
> + If unsure, say N.
> +
> + Additionally specify CONFIG_GCOV_PROFILE_ALL=y to get profiling data
> + for the entire kernel. To enable profiling for specific files or
> + directories, add a line similar to the following to the respective
> + Makefile:
> +
> + For a single file (e.g. main.o):
> + GCOV_main.o := y
> +
> + For all files in one directory:
> + GCOV := y
> +
> + To exclude files from being profiled even when CONFIG_GCOV_PROFILE_ALL
> + is specified, use:
> +
> + GCOV_main.o := n
> + and:
> + GCOV := n
> +
> + Note that the debugfs filesystem has to be mounted to access
> + profiling data.
> +
> +config GCOV_PROFILE_ALL
> + bool "Profile entire Kernel"
> + depends on GCOV_PROFILE
> + ---help---
> + This options activates profiling for the entire kernel.
> +
> + If unsure, say Y.
> +
> + Note that a kernel compiled with profiling flags will be larger and
> + slower. Also be sure to exclude files from profiling which are not
> + linked to the kernel image to prevent linker errors.
umm.... I think the Kconfig help should include the text "makes your
kernel three times larger".
next prev parent reply other threads:[~2008-05-06 4:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-05 15:24 [RFC PATCH 5/6] gcov: add gcov profiling infrastructure Peter Oberparleiter
2008-05-06 4:30 ` Andrew Morton [this message]
2008-05-06 5:43 ` Andrew Morton
2008-05-07 10:57 ` Peter Oberparleiter
2008-05-07 15:26 ` Andrew Morton
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=20080505213052.b1022c42.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ltp-coverage@lists.sourceforge.net \
--cc=ltp-list@lists.sourceforge.net \
--cc=peter.oberparleiter@de.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox