Re: [PATCH] generic show_stack facility

David Mosberger (
Fri, 29 Mar 2002 10:25:36 -0800

>>>>> On Fri, 29 Mar 2002 17:16:23 GMT, said:

>> BTW: this is not at all an ia64-specific issue. It applies to
>> any arch that doesn't maintain a frame pointer on the stack.
>> Basic compiler technology.

Arjan> oh you mean like x86 ?

As far as I know, the x86 version of show_trace() still relies on the
fact that (a) return addresses are stored on the memory stack, (b)
they are stored in the order in which the routines were called, and
(c) that there aren't too many other values on the stack that look
like kernel text addresses. As long as an x86 compiler uses the CALL
instruction, that should be the case. But this certainly isn't the
case for all architectures (though I do agree that it is a heuristic
should work reasonably well for several architectures).

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at