aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-10-10 04:02:59 -0400
committerPekka Enberg <penberg@cs.helsinki.fi>2008-12-29 08:34:17 -0500
commitbf6803d6fd654d9a73cd90308b5225d78655d027 (patch)
treee6551e13cbfc0fd5525a9bad6c8546cefee08b23
parentfaa97abe6a3673af268abb661c6b663252a911aa (diff)
kmemtrace: remove config option for enabling tracing at boot
Users can pass kmemtrace.enabled=yes as a kernel parameter to enable kmemtrace at boot so remove the useless CONFIG_KMEMTRACE_DEFAULT_ENABLED config option. Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro> Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
-rw-r--r--Documentation/vm/kmemtrace.txt2
-rw-r--r--lib/Kconfig.debug8
-rw-r--r--mm/kmemtrace.c8
3 files changed, 4 insertions, 14 deletions
diff --git a/Documentation/vm/kmemtrace.txt b/Documentation/vm/kmemtrace.txt
index f656cac3558c..a956d9b7f943 100644
--- a/Documentation/vm/kmemtrace.txt
+++ b/Documentation/vm/kmemtrace.txt
@@ -61,7 +61,7 @@ III. Quick usage guide
61====================== 61======================
62 62
631) Get a kernel that supports kmemtrace and build it accordingly (i.e. enable 631) Get a kernel that supports kmemtrace and build it accordingly (i.e. enable
64CONFIG_KMEMTRACE and CONFIG_KMEMTRACE_DEFAULT_ENABLED). 64CONFIG_KMEMTRACE).
65 65
662) Get the userspace tool and build it: 662) Get the userspace tool and build it:
67$ git-clone git://repo.or.cz/kmemtrace-user.git # current repository 67$ git-clone git://repo.or.cz/kmemtrace-user.git # current repository
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 78d669b461d2..b5417e23ba94 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -823,14 +823,6 @@ config KMEMTRACE
823 823
824 If unsure, say N. 824 If unsure, say N.
825 825
826config KMEMTRACE_DEFAULT_ENABLED
827 bool "Enabled by default at boot"
828 depends on KMEMTRACE
829 help
830 Say Y here to enable kmemtrace at boot-time by default. Whatever
831 the choice, the behavior can be overridden by a kernel parameter,
832 as described in documentation.
833
834menuconfig BUILD_DOCSRC 826menuconfig BUILD_DOCSRC
835 bool "Build targets in Documentation/ tree" 827 bool "Build targets in Documentation/ tree"
836 depends on HEADERS_CHECK 828 depends on HEADERS_CHECK
diff --git a/mm/kmemtrace.c b/mm/kmemtrace.c
index f7a49c077df2..f7704f52c4b1 100644
--- a/mm/kmemtrace.c
+++ b/mm/kmemtrace.c
@@ -19,11 +19,9 @@ static struct rchan *kmemtrace_chan;
19static u32 kmemtrace_buf_overruns; 19static u32 kmemtrace_buf_overruns;
20 20
21static unsigned int kmemtrace_n_subbufs; 21static unsigned int kmemtrace_n_subbufs;
22#ifdef CONFIG_KMEMTRACE_DEFAULT_ENABLED 22
23static unsigned int kmemtrace_enabled = 1; 23/* disabled by default */
24#else 24static unsigned int kmemtrace_enabled;
25static unsigned int kmemtrace_enabled = 0;
26#endif
27 25
28/* 26/*
29 * The sequence number is used for reordering kmemtrace packets 27 * The sequence number is used for reordering kmemtrace packets