summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2008-02-11 16:21:45 +0530
committerSam Ravnborg <sam@ravnborg.org>2008-02-12 23:29:18 +0100
commit1caff9ba52970a3492bfe8a1b9e26291d34259c5 (patch)
tree7db6467c1556d373def59a0d11a66866e166e0b4
parentf8773002e2c0e5bd232d5f56abeca9fe1d906984 (diff)
Move backtrace tests to tests/
Move backtrace selftests to tests/ Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r--kernel/Makefile1
-rw-r--r--lib/Kconfig.debug12
-rw-r--r--tests/Kconfig12
-rw-r--r--tests/Makefile1
-rw-r--r--tests/backtracetest.c (renamed from kernel/backtracetest.c)0
5 files changed, 13 insertions, 13 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index 148be92d6118..2c534bceb7d5 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -35,7 +35,6 @@ obj-$(CONFIG_KALLSYMS) += kallsyms.o
obj-$(CONFIG_PM) += power/
obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
obj-$(CONFIG_KEXEC) += kexec.o
-obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
obj-$(CONFIG_COMPAT) += compat.o
obj-$(CONFIG_CGROUPS) += cgroup.o
obj-$(CONFIG_CGROUP_DEBUG) += cgroup_debug.o
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 740624fd1850..b1323493479d 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -466,18 +466,6 @@ config BOOT_PRINTK_DELAY
BOOT_PRINTK_DELAY also may cause DETECT_SOFTLOCKUP to detect
what it believes to be lockup conditions.
-config BACKTRACE_SELF_TEST
- tristate "Self test for the backtrace code"
- depends on DEBUG_KERNEL
- default n
- help
- This option provides a kernel module that can be used to test
- the kernel stack backtrace code. This option is not useful
- for distributions or general kernels, but only for kernel
- developers working on architecture code.
-
- Say N if you are unsure.
-
config FAULT_INJECTION
bool "Fault-injection framework"
depends on DEBUG_KERNEL
diff --git a/tests/Kconfig b/tests/Kconfig
index 8deefaa2cd2c..b0a9e8ef295d 100644
--- a/tests/Kconfig
+++ b/tests/Kconfig
@@ -64,4 +64,16 @@ config KPROBES_SANITY_TEST
Say N if you are unsure.
+config BACKTRACE_SELF_TEST
+ tristate "Self test for the backtrace code"
+ depends on DEBUG_KERNEL
+ default n
+ help
+ This option provides a kernel module that can be used to test
+ the kernel stack backtrace code. This option is not useful
+ for distributions or general kernels, but only for kernel
+ developers working on architecture code.
+
+ Say N if you are unsure.
+
endif # KERNEL_TESTS
diff --git a/tests/Makefile b/tests/Makefile
index 455cd12c607c..1d56a9ea5993 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -7,3 +7,4 @@ obj-$(CONFIG_RCU_TORTURE_TEST) += rcutorture.o
obj-$(CONFIG_RT_MUTEX_TESTER) += rtmutex-tester.o
obj-$(CONFIG_LKDTM) += lkdtm.o
obj-$(CONFIG_KPROBES_SANITY_TEST) += test_kprobes.o
+obj-$(CONFIG_BACKTRACE_SELF_TEST) += backtracetest.o
diff --git a/kernel/backtracetest.c b/tests/backtracetest.c
index d1a7605c5b8f..d1a7605c5b8f 100644
--- a/kernel/backtracetest.c
+++ b/tests/backtracetest.c