Dumb kernel stacksize question

Dave Hansen haveblue at us.ibm.com
Wed Nov 26 06:17:24 EST 2003

On Tue, 2003-11-25 at 11:02, Anton Blanchard wrote:
> Below is a quick patch that warns whenever the kernel stack usage
> goes over 8kB, its not too hard to trip.

It only catches you whenever you get an _interrupt_ and are deep into
the stack.  It's all a question of whether the interrupt comes in when
you have your pants down.  This will catch a lot of problems, but it
isn't very deterministic.

There was an x86 patch from Ben La Haise that used gcc's mcount feature
to check stack depth at every function call, but it was never ported to
ppc and will probably impair performance.  How is ppc mcount support
these days?
Dave Hansen
haveblue at us.ibm.com

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/

More information about the Linuxppc64-dev mailing list