diff options
author | Li Bin <huawei.libin@huawei.com> | 2015-12-04 11:38:39 +0800 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-12-04 12:03:25 +0000 |
commit | 81a6a146e88eca5d6726569779778d61489d85aa (patch) | |
tree | d5c26b2e23bae83c1e7fa8ae5475c2d46ca069f8 /arch/arm64/kernel/ftrace.c | |
parent | d86b8da04dfa4771a68bdbad6c424d40f22f0d14 (diff) | |
download | linux-stable-81a6a146e88eca5d6726569779778d61489d85aa.tar.gz linux-stable-81a6a146e88eca5d6726569779778d61489d85aa.tar.bz2 linux-stable-81a6a146e88eca5d6726569779778d61489d85aa.zip |
arm64: ftrace: stop using kstop_machine to enable/disable tracing
For ftrace on arm64, kstop_machine which is hugely disruptive
to a running system is not needed to convert nops to ftrace calls
or back, because that to be modified instrucions, that NOP, B or BL,
are all safe instructions which called "concurrent modification
and execution of instructions", that can be executed by one
thread of execution as they are being modified by another thread
of execution without requiring explicit synchronization.
Signed-off-by: Li Bin <huawei.libin@huawei.com>
Reviewed-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/kernel/ftrace.c')
-rw-r--r-- | arch/arm64/kernel/ftrace.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm64/kernel/ftrace.c b/arch/arm64/kernel/ftrace.c index c851be795080..9669b331a23b 100644 --- a/arch/arm64/kernel/ftrace.c +++ b/arch/arm64/kernel/ftrace.c @@ -93,6 +93,11 @@ int ftrace_make_nop(struct module *mod, struct dyn_ftrace *rec, return ftrace_modify_code(pc, old, new, true); } +void arch_ftrace_update_code(int command) +{ + ftrace_modify_all_code(command); +} + int __init ftrace_dyn_arch_init(void) { return 0; |