diff options
Diffstat (limited to 'kernel/trace')
-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 | ||