tracing/kprobes: Make Kconfig dependencies generic
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 10 Feb 2010 16:25:17 +0000 (17:25 +0100)
committerFrederic Weisbecker <fweisbec@gmail.com>
Wed, 17 Feb 2010 12:13:08 +0000 (13:13 +0100)
KPROBES_EVENT actually depends on the regs and stack access API
(b1cf540f) and not on x86.
So introduce a new config option which architectures can select if
they have the API implemented and switch x86.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
LKML-Reference: <20100210162517.GB6933@osiris.boeblingen.de.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
arch/Kconfig
arch/x86/Kconfig
kernel/trace/Kconfig

index 9d055b4f058556450363c3843ad17f07518fae93..04e3aa77da25e7715ff2fa9f66600a9981764fb4 100644 (file)
@@ -121,6 +121,9 @@ config HAVE_DMA_ATTRS
 config USE_GENERIC_SMP_HELPERS
        bool
 
+config HAVE_REGS_AND_STACK_ACCESS_API
+       bool
+
 config HAVE_CLK
        bool
        help
index 55298e891571edc6d07486f235a46ffddd622729..07baa12929b4e62aaafbe4d394a34c2133338668 100644 (file)
@@ -45,6 +45,7 @@ config X86
        select HAVE_GENERIC_DMA_COHERENT if X86_32
        select HAVE_EFFICIENT_UNALIGNED_ACCESS
        select USER_STACKTRACE_SUPPORT
+       select HAVE_REGS_AND_STACK_ACCESS_API
        select HAVE_DMA_API_DEBUG
        select HAVE_KERNEL_GZIP
        select HAVE_KERNEL_BZIP2
index 6c22d8a2f289e81de4af3ccff97996f752a06583..40fef552f01254da65afca692e6d4cd0fe5cc934 100644 (file)
@@ -451,7 +451,7 @@ config BLK_DEV_IO_TRACE
 
 config KPROBE_EVENT
        depends on KPROBES
-       depends on X86
+       depends on HAVE_REGS_AND_STACK_ACCESS_API
        bool "Enable kprobes-based dynamic events"
        select TRACING
        default y