Re: 4k stacks in 2.6

Jörn Engel
2004-05-27T15:47:47Z

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