Commit e5873d6f authored by Heiko Carstens's avatar Heiko Carstens Committed by Vasily Gorbik

s390/ftrace: add missing serialization for graph caller patching

CPUs must be serialized also when ftrace_graph_caller gets patched.
This is missing since ftrace function graph support was added on s390.
Signed-off-by: default avatarHeiko Carstens <hca@linux.ibm.com>
Signed-off-by: default avatarVasily Gorbik <gor@linux.ibm.com>
parent ae2b9a11
...@@ -268,12 +268,14 @@ NOKPROBE_SYMBOL(prepare_ftrace_return); ...@@ -268,12 +268,14 @@ NOKPROBE_SYMBOL(prepare_ftrace_return);
int ftrace_enable_ftrace_graph_caller(void) int ftrace_enable_ftrace_graph_caller(void)
{ {
brcl_disable(ftrace_graph_caller); brcl_disable(ftrace_graph_caller);
text_poke_sync_lock();
return 0; return 0;
} }
int ftrace_disable_ftrace_graph_caller(void) int ftrace_disable_ftrace_graph_caller(void)
{ {
brcl_enable(ftrace_graph_caller); brcl_enable(ftrace_graph_caller);
text_poke_sync_lock();
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment