projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2930e04
)
ftrace: Consistently restore trace function on sysctl enabling
author
Jan Kiszka
<
[email protected]
>
Tue, 26 Mar 2013 16:53:03 +0000
(17:53 +0100)
committer
Steven Rostedt
<
[email protected]
>
Mon, 8 Apr 2013 16:24:22 +0000
(12:24 -0400)
If we reenable ftrace via syctl, we currently set ftrace_trace_function
based on the previous simplistic algorithm. This is inconsistent with
what update_ftrace_function does. So better call that helper instead.
Link:
http://lkml.kernel.org/r/
[email protected]
Cc:
[email protected]
Signed-off-by: Jan Kiszka <
[email protected]
>
Signed-off-by: Steven Rostedt <
[email protected]
>
kernel/trace/ftrace.c
patch
|
blob
|
history
diff --git
a/kernel/trace/ftrace.c
b/kernel/trace/ftrace.c
index 6893d5a2bf086014f2919496ca7062c246935dad..cc4943c7ce6d45bc2577025de98b33b8254bfd5f 100644
(file)
--- a/
kernel/trace/ftrace.c
+++ b/
kernel/trace/ftrace.c
@@
-4555,12
+4555,8
@@
ftrace_enable_sysctl(struct ctl_table *table, int write,
ftrace_startup_sysctl();
/* we are starting ftrace again */
- if (ftrace_ops_list != &ftrace_list_end) {
- if (ftrace_ops_list->next == &ftrace_list_end)
- ftrace_trace_function = ftrace_ops_list->func;
- else
- ftrace_trace_function = ftrace_ops_list_func;
- }
+ if (ftrace_ops_list != &ftrace_list_end)
+ update_ftrace_function();
} else {
/* stopping ftrace calls (just send to ftrace_stub) */