| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 3/9] tracing: MIPS: mcount.S: cleanup of the comments |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Fri, 14 May 2010 19:08:28 +0800 |
| Cc: | linux-mips <linux-mips@linux-mips.org>, David Daney <david.s.daney@gmail.com>, Wu Zhangjin <wuzhangjin@gmail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=E6hXixHENrMS+tDvU0nISkXRP6XsUtNtv6RR7WooTW4=; b=WzGGIBi4b2RB9OROqDTRtnUrCvDEntrM8UtB3GZcqmscpOTaJbHeBuv08U7Iar4sDB IDLrOxz9PZzUVH8NZcnNkenrKyRztjLZ1rsswjK+N03wkVzLFAQOBhKCpzatDwsF/t/a vJSv4uarchnqhmI+1ri9nP2SzFGf09dhMildA= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=CqmKxLkV4UEGnrHODER8CqTpXnuYZANOj0POcaiNdflNugMOw0c618/7TZDUHwWtp2 jfWmaPr4arH4GnIr57UpgUE476Q3RjKzGJ0LapGC7oquyC3bZYK+f+cW/XP9ZTDQtDVh WbRiI7i0YLU32duJ8Q16y1QO1ca2YX8FgskbQ= |
| In-reply-to: | <cover.1273834561.git.wuzhangjin@gmail.com> |
| In-reply-to: | <cover.1273834561.git.wuzhangjin@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cover.1273834561.git.wuzhangjin@gmail.com> |
| References: | <cover.1273834561.git.wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
This patch cleans up the comments.
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
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 d4a00d2..9a029d4 100644
--- a/arch/mips/kernel/mcount.S
+++ b/arch/mips/kernel/mcount.S
@@ -6,6 +6,7 @@
* more details.
*
* Copyright (C) 2009 Lemote Inc. & DSLab, Lanzhou University, China
+ * Copyright (C) 2010 DSLab, Lanzhou University, China
* Author: Wu Zhangjin <wuzhangjin@gmail.com>
*/
@@ -69,14 +70,14 @@ _mcount:
MCOUNT_SAVE_REGS
#ifdef KBUILD_MCOUNT_RA_ADDRESS
- PTR_S t0, PT_R12(sp) /* t0 saved the location of the return
address(at) by -mmcount-ra-address */
+ PTR_S t0, PT_R12(sp) /* save location of parent's return address */
#endif
- move a0, ra /* arg1: next ip, selfaddr */
+ move a0, ra /* arg1: self return address */
.globl ftrace_call
ftrace_call:
nop /* a placeholder for the call to a real tracing function */
- move a1, AT /* arg2: the caller's next ip, parent */
+ move a1, AT /* arg2: parent's return address */
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
.globl ftrace_graph_call
@@ -117,9 +118,9 @@ NESTED(_mcount, PT_SIZE, ra)
static_trace:
MCOUNT_SAVE_REGS
- move a0, ra /* arg1: next ip, selfaddr */
+ move a0, ra /* arg1: self return address */
jalr t2 /* (1) call *ftrace_trace_function */
- move a1, AT /* arg2: the caller's next ip, parent */
+ move a1, AT /* arg2: parent's return address */
MCOUNT_RESTORE_REGS
.globl ftrace_stub
--
1.7.0.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 1/9] tracing: MIPS: mcount.S: merge the same continuous #ifdefs, Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH 2/9] tracing: MIPS: mcount.S: cleanup the arguments of prepare_ftrace_return, Wu Zhangjin |
| Previous by Thread: | Re: [PATCH 1/9] tracing: MIPS: mcount.S: merge the same continuous #ifdefs, Ralf Baechle |
| Next by Thread: | Re: [PATCH 3/9] tracing: MIPS: mcount.S: cleanup of the comments, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |