* [PATCH 4/6] reliable stack trace support (x86-64 syscall adjustment)
@ 2006-05-22 13:18 Jan Beulich
0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2006-05-22 13:18 UTC (permalink / raw)
To: Andreas Kleen; +Cc: Ingo Molnar, linux-kernel, discuss
Adjust the CFA offset for 64- and 32-bit syscall entries so that the five
slots pre-subtracted from the stack pointer do not appear to reside outside
of the current frame.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Index: unwind-2.6.17-rc4/arch/x86_64/ia32/ia32entry.S
===================================================================
--- unwind-2.6.17-rc4.orig/arch/x86_64/ia32/ia32entry.S 2006-05-22 15:00:34.000000000 +0200
+++ unwind-2.6.17-rc4/arch/x86_64/ia32/ia32entry.S 2006-05-22 15:01:10.000000000 +0200
@@ -178,7 +178,7 @@ sysenter_tracesys:
*/
ENTRY(ia32_cstar_target)
CFI_STARTPROC32 simple
- CFI_DEF_CFA rsp,0
+ CFI_DEF_CFA rsp,PDA_STACKOFFSET
CFI_REGISTER rip,rcx
/*CFI_REGISTER rflags,r11*/
swapgs
Index: unwind-2.6.17-rc4/arch/x86_64/kernel/entry.S
===================================================================
--- unwind-2.6.17-rc4.orig/arch/x86_64/kernel/entry.S 2006-05-22 15:01:07.000000000 +0200
+++ unwind-2.6.17-rc4/arch/x86_64/kernel/entry.S 2006-05-22 15:01:10.000000000 +0200
@@ -188,7 +188,7 @@ rff_trace:
ENTRY(system_call)
CFI_STARTPROC simple
- CFI_DEF_CFA rsp,0
+ CFI_DEF_CFA rsp,PDA_STACKOFFSET
CFI_REGISTER rip,rcx
/*CFI_REGISTER rflags,r11*/
swapgs
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-22 13:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-22 13:18 [PATCH 4/6] reliable stack trace support (x86-64 syscall adjustment) Jan Beulich
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®