lkml.org 
[lkml]   [2018]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] ftrace: use helper function clear_ftrace_function
Date
We have helper function clear_ftrace_function(), use it instead of hard
code. And this should not have any functional change.

Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
---
kernel/trace/ftrace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 554b517..ba78e03 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -6779,7 +6779,7 @@ int unregister_ftrace_function(struct ftrace_ops *ops)

} else {
/* stopping ftrace calls (just send to ftrace_stub) */
- ftrace_trace_function = ftrace_stub;
+ clear_ftrace_function();

ftrace_shutdown_sysctl();
}
--
1.7.12.4
\
 
 \ /
  Last update: 2018-01-30 01:55    [W:0.037 / U:1.724 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site