Forráskód Böngészése

ftrace: add have dynamic ftrace config for archs

Now that ftrace is being ported to other architectures, it has become
apparent that DYNAMIC_FTRACE is dependent on whether or not that
architecture implements dynamic ftrace. FTRACE itself may be ported to
an architecture without porting dynamic ftrace.

This patch adds HAVE_DYNAMIC_FTRACE to allow architectures to port ftrace
without having to also port the dynamic aspect as well.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Steven Rostedt 17 éve
szülő
commit
677aa9f77e
4 módosított fájl, 7 hozzáadás és 0 törlés
  1. 1 0
      arch/powerpc/Kconfig
  2. 1 0
      arch/sparc64/Kconfig
  3. 1 0
      arch/x86/Kconfig
  4. 4 0
      kernel/trace/Kconfig

+ 1 - 0
arch/powerpc/Kconfig

@@ -105,6 +105,7 @@ config ARCH_NO_VIRT_TO_BUS
 config PPC
 config PPC
 	bool
 	bool
 	default y
 	default y
+	select HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE
 	select HAVE_FTRACE
 	select HAVE_IDE
 	select HAVE_IDE
 	select HAVE_KPROBES
 	select HAVE_KPROBES

+ 1 - 0
arch/sparc64/Kconfig

@@ -11,6 +11,7 @@ config SPARC
 config SPARC64
 config SPARC64
 	bool
 	bool
 	default y
 	default y
+	select HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE
 	select HAVE_FTRACE
 	select HAVE_IDE
 	select HAVE_IDE
 	select HAVE_LMB
 	select HAVE_LMB

+ 1 - 0
arch/x86/Kconfig

@@ -23,6 +23,7 @@ config X86
 	select HAVE_OPROFILE
 	select HAVE_OPROFILE
 	select HAVE_KPROBES
 	select HAVE_KPROBES
 	select HAVE_KRETPROBES
 	select HAVE_KRETPROBES
+	select HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE
 	select HAVE_FTRACE
 	select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
 	select HAVE_KVM if ((X86_32 && !X86_VOYAGER && !X86_VISWS && !X86_NUMAQ) || X86_64)
 	select HAVE_ARCH_KGDB if !X86_VOYAGER
 	select HAVE_ARCH_KGDB if !X86_VOYAGER

+ 4 - 0
kernel/trace/Kconfig

@@ -4,6 +4,9 @@
 config HAVE_FTRACE
 config HAVE_FTRACE
 	bool
 	bool
 
 
+config HAVE_DYNAMIC_FTRACE
+	bool
+
 config TRACER_MAX_TRACE
 config TRACER_MAX_TRACE
 	bool
 	bool
 
 
@@ -94,6 +97,7 @@ config CONTEXT_SWITCH_TRACER
 config DYNAMIC_FTRACE
 config DYNAMIC_FTRACE
 	bool "enable/disable ftrace tracepoints dynamically"
 	bool "enable/disable ftrace tracepoints dynamically"
 	depends on FTRACE
 	depends on FTRACE
+	depends on HAVE_DYNAMIC_FTRACE
 	default y
 	default y
 	help
 	help
          This option will modify all the calls to ftrace dynamically
          This option will modify all the calls to ftrace dynamically