From: Randy Dunlap <rdunlap@xenotime.net>
To: lkml <linux-kernel@vger.kernel.org>, Daniel Baluta <dbaluta@ixiacom.com>
Cc: torvalds <torvalds@linux-foundation.org>,
Pekka Enberg <penberg@kernel.org>,
Catalin Marinas <catalin.marinas@arm.com>
Subject: [PATCH 6/8] kemleak-test: build as module only
Date: Mon, 4 Apr 2011 15:06:44 -0700 [thread overview]
Message-ID: <20110404150644.e391d7a1.rdunlap@xenotime.net> (raw)
In-Reply-To: <20110404145803.8663081d.rdunlap@xenotime.net>
From: Daniel Baluta <dbaluta@ixiacom.com>
mm/kmemleak-test.c is used to provide an example of how kmemleak
tool works.
Memory is leaked at module unload-time, so building the test
in kernel (Y) makes the leaks impossible and the test useless.
Qualify DEBUG_KMEMLEAK_TEST config symbol with "depends on m",
to restrict module-only building.
Signed-off-by: Daniel Baluta <dbaluta@ixiacom.com>
Acked-by: Pekka Enberg <penberg@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
lib/Kconfig.debug | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- linux-2.6.38-git18.orig/lib/Kconfig.debug
+++ linux-2.6.38-git18/lib/Kconfig.debug
@@ -434,11 +434,9 @@ config DEBUG_KMEMLEAK_EARLY_LOG_SIZE
config DEBUG_KMEMLEAK_TEST
tristate "Simple test for the kernel memory leak detector"
- depends on DEBUG_KMEMLEAK
+ depends on DEBUG_KMEMLEAK && m
help
- Say Y or M here to build a test for the kernel memory leak
- detector. This option enables a module that explicitly leaks
- memory.
+ This option enables a module that explicitly leaks memory.
If unsure, say N.
next prev parent reply other threads:[~2011-04-04 22:13 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-04 21:58 [PATCH 1/8] Documentation: update kmemleak arch. info Randy Dunlap
2011-04-04 21:59 ` [PATCH 2/8] kernel/signal.c: fix typos and coding style Randy Dunlap
2011-04-04 22:00 ` [PATCH 3/8] kernel/signal.c: add kernel-doc notation to syscalls Randy Dunlap
2011-04-05 8:32 ` Matt Fleming
2011-04-08 17:41 ` Randy Dunlap
2011-04-08 17:53 ` [PATCH] signal.c: fix erroneous syscall kernel-doc Randy Dunlap
2011-04-08 20:13 ` Matt Fleming
2011-04-04 22:02 ` [PATCH 4/8] Documentation: update panic parameter info Randy Dunlap
2011-04-04 22:04 ` [PATCH 5/8] Documentation: fix minor typos/spelling Randy Dunlap
2011-04-04 22:06 ` Randy Dunlap [this message]
2011-04-04 22:08 ` [PATCH 7/8] Documentation: consolidate leds files to leds/ subdir Randy Dunlap
2011-04-05 0:54 ` Linus Torvalds
2011-04-05 8:25 ` Antonio Ospite
2011-04-04 22:10 ` [PATCH 8/8] Documentation: update cgroups info user groups names Randy Dunlap
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=20110404150644.e391d7a1.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=catalin.marinas@arm.com \
--cc=dbaluta@ixiacom.com \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@kernel.org \
--cc=torvalds@linux-foundation.org \
/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
all inboxes | Powered by JetHome®