lkml.org 
[lkml]   [2006]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH 2/3] reliable stack trace support (x86-64)
Date
On Tuesday 16 May 2006 16:21, Jan Beulich wrote:
> These are the x86_64-specific pieces to enable reliable stack traces. The
> only restriction with this is that it currently cannot unwind across the
> interrupt->normal stack boundary, as that transition is lacking proper
> annotation.

It would be nice if you could submit a patch to fix that.


>
> +#ifdef CONFIG_STACK_UNWIND
> + . = ALIGN(8);
> + .eh_frame : AT(ADDR(.eh_frame) - LOAD_OFFSET) {
> + __start_unwind = .;
> + *(.eh_frame)
> + __end_unwind = .;
> + }
> +#endif

Ah ok - it's there. Ignore my earlier question then.



> +#define UNW_PC(frame) (frame)->regs.rip
> +#define UNW_SP(frame) (frame)->regs.rsp

I think we alreay have instruction_pointer(). Better add a stack_pointer()
in ptrace.h too.

-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-16 17:18    [W:0.061 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site