This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: backtrace not working on mainline x86_64
- From: "Jose R. Santos" <jrs at us dot ibm dot com>
- To: "bibo,mao" <bibo dot mao at intel dot com>
- Cc: SystemTAP <systemtap at sources dot redhat dot com>
- Date: Tue, 11 Apr 2006 11:21:45 -0500
- Subject: Re: backtrace not working on mainline x86_64
- Organization: IBM
- References: <443AD8AA.8020702@us.ibm.com> <443B1761.9070501@intel.com>
- Reply-to: jrs at us dot ibm dot com
bibo,mao wrote:
In recent x86_64, process kernel stack is different from trap stack, I
modify runtime/stack.c _stp_stack_sprint() function, the original is
__stp_stack_sprint (str, (unsigned long *)®_SP(regs), verbose, 0);
__stp_stack_sprint (str, (unsigned long *)REG_SP(regs), verbose, 0);
It works well for x86_86 in recent kernel version, this is only
temporary method.
That works for me.
What would be a good permanent fix for this? Should check for X86_64
and Kernel version be added to _stp_stack_sprint() function?
-JRS