diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-11-08 13:12:33 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2019-11-13 09:36:49 -0500 |
commit | b06457c83af669bb9ef71f5b84a3132657dce8a1 (patch) | |
tree | 0358038475936f4553ed8a63e4bbaa32b0469af7 /samples/Kconfig | |
parent | 013bf0da0474816f57739daa006c8564ad7396a3 (diff) | |
download | lwn-b06457c83af669bb9ef71f5b84a3132657dce8a1.tar.gz lwn-b06457c83af669bb9ef71f5b84a3132657dce8a1.zip |
ftrace: Add sample module that uses register_ftrace_direct()
Add a sample module that shows a simple use case for
regsiter_ftrace_direct(), and how to use it.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'samples/Kconfig')
-rw-r--r-- | samples/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/samples/Kconfig b/samples/Kconfig index c8dacb4dda80..65b5967dac0c 100644 --- a/samples/Kconfig +++ b/samples/Kconfig @@ -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 |