ftrace: Add sample module that uses register_ftrace_direct()
[sfrench/cifs-2.6.git] / samples / Kconfig
index c8dacb4dda80c0d44548e81391bd4a65f276048b..65b5967dac0c0f08baf1cc0030fd483749d2b8b7 100644 (file)
@@ -19,6 +19,14 @@ config SAMPLE_TRACE_PRINTK
         This builds a module that calls trace_printk() and can be used to
         test various trace_printk() calls from a module.
 
+config SAMPLE_FTRACE_DIRECT
+       tristate "Build register_ftrace_direct() example"
+       depends on DYNAMIC_FTRACE_WITH_DIRECT_CALLS && m
+       depends on X86_64 # has x86_64 inlined asm
+       help
+         This builds an ftrace direct function example
+         that hooks to wake_up_process and prints the parameters.
+
 config SAMPLE_KOBJECT
        tristate "Build kobject examples"
        help