diff options
author | Wu Zhangjin <wuzhangjin@gmail.com> | 2010-05-14 07:08:28 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-07-05 12:17:27 -0400 |
commit | 042e571d224707b777d0995317c74812b960bfeb (patch) | |
tree | 0f333bfe75eadff72a8543e2370bbbefd268e02e /arch/mips/kernel/mcount.S | |
parent | cbe555b01b0da9e89afa4babf3b8942d2b052fb8 (diff) |
MIPS: Tracing: Cleanup comments
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Cc: David Daney <david.s.daney@gmail.com>
Patchwork: http://patchwork.linux-mips.org/patch/1225/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/mcount.S')
-rw-r--r-- | arch/mips/kernel/mcount.S | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/mips/kernel/mcount.S b/arch/mips/kernel/mcount.S index d4a00d29c0bf..9a029d40f6cf 100644 --- a/arch/mips/kernel/mcount.S +++ b/arch/mips/kernel/mcount.S | |||
@@ -6,6 +6,7 @@ | |||
6 | * more details. | 6 | * more details. |
7 | * | 7 | * |
8 | * Copyright (C) 2009 Lemote Inc. & DSLab, Lanzhou University, China | 8 | * Copyright (C) 2009 Lemote Inc. & DSLab, Lanzhou University, China |
9 | * Copyright (C) 2010 DSLab, Lanzhou University, China | ||
9 | * Author: Wu Zhangjin <wuzhangjin@gmail.com> | 10 | * Author: Wu Zhangjin <wuzhangjin@gmail.com> |
10 | */ | 11 | */ |
11 | 12 | ||
@@ -69,14 +70,14 @@ _mcount: | |||
69 | 70 | ||
70 | MCOUNT_SAVE_REGS | 71 | MCOUNT_SAVE_REGS |
71 | #ifdef KBUILD_MCOUNT_RA_ADDRESS | 72 | #ifdef KBUILD_MCOUNT_RA_ADDRESS |
72 | PTR_S t0, PT_R12(sp) /* t0 saved the location of the return address(at) by -mmcount-ra-address */ | 73 | PTR_S t0, PT_R12(sp) /* save location of parent's return address */ |
73 | #endif | 74 | #endif |
74 | 75 | ||
75 | move a0, ra /* arg1: next ip, selfaddr */ | 76 | move a0, ra /* arg1: self return address */ |
76 | .globl ftrace_call | 77 | .globl ftrace_call |
77 | ftrace_call: | 78 | ftrace_call: |
78 | nop /* a placeholder for the call to a real tracing function */ | 79 | nop /* a placeholder for the call to a real tracing function */ |
79 | move a1, AT /* arg2: the caller's next ip, parent */ | 80 | move a1, AT /* arg2: parent's return address */ |
80 | 81 | ||
81 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 82 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
82 | .globl ftrace_graph_call | 83 | .globl ftrace_graph_call |
@@ -117,9 +118,9 @@ NESTED(_mcount, PT_SIZE, ra) | |||
117 | static_trace: | 118 | static_trace: |
118 | MCOUNT_SAVE_REGS | 119 | MCOUNT_SAVE_REGS |
119 | 120 | ||
120 | move a0, ra /* arg1: next ip, selfaddr */ | 121 | move a0, ra /* arg1: self return address */ |
121 | jalr t2 /* (1) call *ftrace_trace_function */ | 122 | jalr t2 /* (1) call *ftrace_trace_function */ |
122 | move a1, AT /* arg2: the caller's next ip, parent */ | 123 | move a1, AT /* arg2: parent's return address */ |
123 | 124 | ||
124 | MCOUNT_RESTORE_REGS | 125 | MCOUNT_RESTORE_REGS |
125 | .globl ftrace_stub | 126 | .globl ftrace_stub |