Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4818d809 authored by Jiri Olsa's avatar Jiri Olsa Committed by Steven Rostedt
Browse files

tracing/function-graph: x86_64 stack allocation cleanup



Only 24 bytes needs to be reserved on the stack for the function graph
tracer on x86_64.

Signed-off-by: default avatarJiri Olsa <jolsa@redhat.com>
LKML-Reference: <20090729085837.GB4998@jolsa.lab.eng.brq.redhat.com>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 4b3b4c5e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -146,7 +146,7 @@ ENTRY(ftrace_graph_caller)
END(ftrace_graph_caller)

GLOBAL(return_to_handler)
	subq  $80, %rsp
	subq  $24, %rsp

	/* Save the return values */
	movq %rax, (%rsp)
@@ -155,10 +155,10 @@ GLOBAL(return_to_handler)

	call ftrace_return_to_handler

	movq %rax, 72(%rsp)
	movq %rax, 16(%rsp)
	movq 8(%rsp), %rdx
	movq (%rsp), %rax
	addq $72, %rsp
	addq $16, %rsp
	retq
#endif