diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2008-10-23 09:33:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-23 10:00:23 -0400 |
commit | 4d296c24326783bff1282ac72f310d8bac8df413 (patch) | |
tree | 75751fdafc0fa5818a926478e78dd9e54f1cf872 /kernel | |
parent | cb7be3b2fc2cf089ee52b16f0fd9ebb29e9944e1 (diff) |
ftrace: remove mcount set
The arch dependent function ftrace_mcount_set was only used by the daemon
start up code. This patch removes it.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ftrace.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index e758cab0836f..226fd9132d53 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -620,7 +620,6 @@ static int ftrace_update_code(void *ignore); | |||
620 | 620 | ||
621 | static int __ftrace_modify_code(void *data) | 621 | static int __ftrace_modify_code(void *data) |
622 | { | 622 | { |
623 | unsigned long addr; | ||
624 | int *command = data; | 623 | int *command = data; |
625 | 624 | ||
626 | if (*command & FTRACE_ENABLE_CALLS) { | 625 | if (*command & FTRACE_ENABLE_CALLS) { |
@@ -639,14 +638,6 @@ static int __ftrace_modify_code(void *data) | |||
639 | if (*command & FTRACE_UPDATE_TRACE_FUNC) | 638 | if (*command & FTRACE_UPDATE_TRACE_FUNC) |
640 | ftrace_update_ftrace_func(ftrace_trace_function); | 639 | ftrace_update_ftrace_func(ftrace_trace_function); |
641 | 640 | ||
642 | if (*command & FTRACE_ENABLE_MCOUNT) { | ||
643 | addr = (unsigned long)ftrace_record_ip; | ||
644 | ftrace_mcount_set(&addr); | ||
645 | } else if (*command & FTRACE_DISABLE_MCOUNT) { | ||
646 | addr = (unsigned long)ftrace_stub; | ||
647 | ftrace_mcount_set(&addr); | ||
648 | } | ||
649 | |||
650 | return 0; | 641 | return 0; |
651 | } | 642 | } |
652 | 643 | ||