Re: [PATCH 2/2] UML - Add stack usage monitoring

From: Andrew Morton
Date: Tue Jun 19 2007 - 14:55:31 EST


On Tue, 19 Jun 2007 14:42:45 -0400
Jeff Dike <jdike@xxxxxxxxxxx> wrote:

> Add a machanism to see how much of a kernel stack is used. This
> allocates zeroed stacks and sees where the lowest non-zero byte is on
> process exit. It keeps track of the lowest value and logs values as
> they get lower.
>

remind us again why the generic code is unsuitable?

> + for(p = stack; p < end; p++){
> + if(*p != 0)
> + if(left < lowest_to_date){

Are there any plans to fix UML coding style?
-
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/