diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-04 00:00:22 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-10-05 23:57:30 +0200 |
commit | 3e234289f86b12985ef8909cd34525fcb66c4efb (patch) | |
tree | f72cbdc94ec14dd0504314fb4d316bf03b13367f /include | |
parent | ftrace: Add a ftrace_free_mem() function for modules to use (diff) | |
download | linux-3e234289f86b12985ef8909cd34525fcb66c4efb.tar.xz linux-3e234289f86b12985ef8909cd34525fcb66c4efb.zip |
ftrace: Allow module init functions to be traced
Allow for module init sections to be traced as well as core kernel init
sections. Now that filtering modules functions can be stored, for when they
are loaded, it makes sense to be able to trace them.
Cc: Jessica Yu <jeyu@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/init.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/init.h b/include/linux/init.h index 94769d687cf0..a779c1816437 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -39,7 +39,7 @@ /* These are for everybody (although not all archs will actually discard it in modules) */ -#define __init __section(.init.text) __cold __inittrace __latent_entropy +#define __init __section(.init.text) __cold __latent_entropy #define __initdata __section(.init.data) #define __initconst __section(.init.rodata) #define __exitdata __section(.exit.data) @@ -68,10 +68,8 @@ #ifdef MODULE #define __exitused -#define __inittrace notrace #else #define __exitused __used -#define __inittrace #endif #define __exit __section(.exit.text) __exitused __cold notrace |