Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf6803d6 authored by Pekka Enberg's avatar Pekka Enberg
Browse files

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: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent faa97abe
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -61,7 +61,7 @@ III. Quick usage guide
======================
======================


1) Get a kernel that supports kmemtrace and build it accordingly (i.e. enable
1) Get a kernel that supports kmemtrace and build it accordingly (i.e. enable
CONFIG_KMEMTRACE and CONFIG_KMEMTRACE_DEFAULT_ENABLED).
CONFIG_KMEMTRACE).


2) Get the userspace tool and build it:
2) Get the userspace tool and build it:
$ git-clone git://repo.or.cz/kmemtrace-user.git		# current repository
$ git-clone git://repo.or.cz/kmemtrace-user.git		# current repository
+0 −8
Original line number Original line Diff line number Diff line
@@ -823,14 +823,6 @@ config KMEMTRACE


	  If unsure, say N.
	  If unsure, say N.


config KMEMTRACE_DEFAULT_ENABLED
	bool "Enabled by default at boot"
	depends on KMEMTRACE
	help
	  Say Y here to enable kmemtrace at boot-time by default. Whatever
	  the choice, the behavior can be overridden by a kernel parameter,
	  as described in documentation.

menuconfig BUILD_DOCSRC
menuconfig BUILD_DOCSRC
	bool "Build targets in Documentation/ tree"
	bool "Build targets in Documentation/ tree"
	depends on HEADERS_CHECK
	depends on HEADERS_CHECK
+3 −5
Original line number Original line Diff line number Diff line
@@ -19,11 +19,9 @@ static struct rchan *kmemtrace_chan;
static u32 kmemtrace_buf_overruns;
static u32 kmemtrace_buf_overruns;


static unsigned int kmemtrace_n_subbufs;
static unsigned int kmemtrace_n_subbufs;
#ifdef CONFIG_KMEMTRACE_DEFAULT_ENABLED

static unsigned int kmemtrace_enabled = 1;
/* disabled by default */
#else
static unsigned int kmemtrace_enabled;
static unsigned int kmemtrace_enabled = 0;
#endif


/*
/*
 * The sequence number is used for reordering kmemtrace packets
 * The sequence number is used for reordering kmemtrace packets