ftrace: have function graph use mcount caller address
Impact: consistency change for function graph This patch makes function graph record the mcount caller address the same way the function tracer does. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
347fdd9dd4
commit
bb4304c71c
2 changed files with 2 additions and 0 deletions
|
@ -1230,6 +1230,7 @@ ENTRY(ftrace_graph_caller)
|
||||||
pushl %edx
|
pushl %edx
|
||||||
movl 0xc(%esp), %edx
|
movl 0xc(%esp), %edx
|
||||||
lea 0x4(%ebp), %eax
|
lea 0x4(%ebp), %eax
|
||||||
|
subl $MCOUNT_INSN_SIZE, %edx
|
||||||
call prepare_ftrace_return
|
call prepare_ftrace_return
|
||||||
popl %edx
|
popl %edx
|
||||||
popl %ecx
|
popl %ecx
|
||||||
|
|
|
@ -173,6 +173,7 @@ ENTRY(ftrace_graph_caller)
|
||||||
|
|
||||||
leaq 8(%rbp), %rdi
|
leaq 8(%rbp), %rdi
|
||||||
movq 0x38(%rsp), %rsi
|
movq 0x38(%rsp), %rsi
|
||||||
|
subq $MCOUNT_INSN_SIZE, %rsi
|
||||||
|
|
||||||
call prepare_ftrace_return
|
call prepare_ftrace_return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue