Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200820
b: refs/heads/master
c: 042e571
h: refs/heads/master
v: v3
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Jul 5, 2010
1 parent c071d56 commit fc1c682
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cbe555b01b0da9e89afa4babf3b8942d2b052fb8
refs/heads/master: 042e571d224707b777d0995317c74812b960bfeb
11 changes: 6 additions & 5 deletions trunk/arch/mips/kernel/mcount.S
Original file line number Diff line number Diff line change
Expand Up @@ -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>
*/

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc1c682

Please sign in to comment.