Re: How provoke call stack trace

From: Ihar 'Philips' Filipau
Date: Mon Nov 03 2003 - 15:27:42 EST


Muli Ben-Yehuda wrote:
On Mon, Nov 03, 2003 at 07:38:39PM +0100, Ihar 'Philips' Filipau wrote:


Is there any function which can be used by module to just investigate some given call path?


Assuming 2.6, call dump_stack(). If you want greater flexibility,
investigate show_trace() and friends.

Hope this helps,

I'm sitting right now on 2.4.22 - so no 2.6 nicities.
I actually wanted to have something like this on ppc - but ppc has no dump_stack() implemented.

Thanks any way.

[ Just checked 2.6 - ppc has dump_stack() now. Nice. It looks like all archs have implemented it in 2.6. Cool. ]

--
Ihar 'Philips' Filipau / with best regards from Saarbruecken.
-- _ _ _
"... and for $64000 question, could you get yourself |_|*|_|
vaguely familiar with the notion of on-topic posting?" |_|_|*|
-- Al Viro @ LKML |*|*|*|

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