Re: 4k stacks in 2.6

From: Jörn Engel
Date: Thu May 27 2004 - 10:48:47 EST


On Thu, 27 May 2004 17:34:26 +0200, Arjan van de Ven wrote:
>
> you can write "add 100,%esp" as "sub -100, %esp" :)
> compilers seem to do that at times, probably some cpu model inside the
> compiler decides the later is better code in some cases :)

Makes sense (in a way). For x86 and ppc*, my script should be safe as
a nice side effect:
qr/^.*sub \$(0x$x{3,5}),\%esp$/o

Anything above 5 digits is ignored. That also misses allocations
above 1MB, but as long as human stupidity is finite... ;)

Jörn

--
ticks = jiffies;
while (ticks == jiffies);
ticks = jiffies;
-- /usr/src/linux/init/main.c
-
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/