| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 4/9] tracing: MIPS: mcount.S: cleanup of the comments |
| From: | Wu Zhangjin <wuzhangjin@gmail.com> |
| Date: | Wed, 12 May 2010 21:23:12 +0800 |
| Cc: | linux-mips <linux-mips@linux-mips.org>, 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=WEj3lOc32U7T+DIUTdePusY6pim8mMz/xVyGgNafz2U=; b=bXBVU3ejARXc4otwNxQf86NrFxQIm38iC/Y9NxoSnhfcBRT/TKvsfj49pT/ajPX6tQ 0t7fswAJHuzSo8Pxx9D8BFTYU+yZmatmfOKHY68RYyis07vgsvlFDPr3OsQBJFzVFF9p 3O4z4TNaMxCSvsvx7vuZQfp8/ENVlnHIxRISw= |
| 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=pLxUS1Jh3G7TewWFD6x9GD40Iws/eFjbz08LJ3lyHwip1rrlAXJ3bCeRGQ0xAYiRJn phcBU/Yw/GiNssxJ/i7n2w9z/L0Ybji3Ye26CY0OJSWS8OP7oCSmMzqHHIUk5vZ7tccZ +aHZ7IWd5zyKegt8JLBM6ArOamdfJI9hW0G8I= |
| In-reply-to: | <cover.1273669419.git.wuzhangjin@gmail.com> |
| In-reply-to: | <cover.1273669419.git.wuzhangjin@gmail.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <cover.1273669419.git.wuzhangjin@gmail.com> |
| References: | <cover.1273669419.git.wuzhangjin@gmail.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Wu Zhangjin <wuzhangjin@gmail.com>
This patch cleans the comments up.
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 991cbdf..84303bf 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 $12, PT_R12(sp) /* $12 saved the location of the return
address(at) by -mmcount-ra-address */
+ PTR_S $12, 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 2/9] tracing: MIPS: mcount.S: Fixup of the 32bit support with gcc 4.5, Wu Zhangjin |
|---|---|
| Next by Date: | [PATCH 3/9] tracing: MIPS: mcount.S: cleanup the arguments of prepare_ftrace_return, Wu Zhangjin |
| Previous by Thread: | Re: [PATCH 2/9] tracing: MIPS: mcount.S: Fixup of the 32bit support with gcc 4.5, Wu Zhangjin |
| Next by Thread: | [PATCH 3/9] tracing: MIPS: mcount.S: cleanup the arguments of prepare_ftrace_return, Wu Zhangjin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |