mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
ftrace: Make ftrace_modify_all_code() global for archs to use
Rename __ftrace_modify_code() to ftrace_modify_all_code() and make it global for all archs to use. This will remove the duplication of code, as archs that can modify code without stop_machine() can use it directly outside of the stop_machine() call. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
f0cf973a22
commit
8ed3e2cfe4
2 changed files with 19 additions and 12 deletions
|
@ -319,6 +319,8 @@ extern void ftrace_caller(void);
|
|||
extern void ftrace_call(void);
|
||||
extern void mcount_call(void);
|
||||
|
||||
void ftrace_modify_all_code(int command);
|
||||
|
||||
#ifndef FTRACE_ADDR
|
||||
#define FTRACE_ADDR ((unsigned long)ftrace_caller)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue