From: Steven Rostedt <rostedt@goodmis.org>
To: linux-kernel@vger.kernel.org
Cc: Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Peter Zijlstra <peterz@infradead.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
Li Zefan <lizf@cn.fujitsu.com>, Jiri Olsa <jolsa@redhat.com>
Subject: [PATCH 2/4] tracing/function-graph: x86_64 stack allocation cleanup
Date: Sat, 12 Sep 2009 23:05:45 -0400 [thread overview]
Message-ID: <20090913030616.992539807@goodmis.org> (raw)
In-Reply-To: 20090913030543.204871396@goodmis.org
[-- Attachment #1: 0002-tracing-function-graph-x86_64-stack-allocation-clean.patch --]
[-- Type: text/plain, Size: 981 bytes --]
From: Jiri Olsa <jolsa@redhat.com>
Only 24 bytes needs to be reserved on the stack for the function graph
tracer on x86_64.
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
LKML-Reference: <20090729085837.GB4998@jolsa.lab.eng.brq.redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
arch/x86/kernel/entry_64.S | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
index c251be7..d59fe32 100644
--- a/arch/x86/kernel/entry_64.S
+++ b/arch/x86/kernel/entry_64.S
@@ -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
--
1.6.3.3
--
next prev parent reply other threads:[~2009-09-13 3:06 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-13 3:05 [PATCH 0/4] [GIT PULL] tracing: more fixes for v2.6.32 Steven Rostedt
2009-09-13 3:05 ` [PATCH 1/4] ftrace: __start_mcount_loc should be .init.rodata Steven Rostedt
2009-09-13 3:05 ` Steven Rostedt [this message]
2009-09-13 17:05 ` [PATCH 2/4] tracing/function-graph: x86_64 stack allocation cleanup Frederic Weisbecker
2009-09-13 17:47 ` Steven Rostedt
2009-09-13 17:55 ` Frederic Weisbecker
2009-09-13 3:05 ` [PATCH 3/4] tracing/profile: fix profile_disable vs module_unload Steven Rostedt
2009-09-13 3:05 ` [PATCH 4/4] tracing/filters: add filter Documentation Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090913030616.992539807@goodmis.org \
--to=rostedt@goodmis.org \
--cc=akpm@linux-foundation.org \
--cc=fweisbec@gmail.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lizf@cn.fujitsu.com \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.