Re: [PATCH] improve spinlock debugging

David S. Miller (davem@redhat.com)
Mon, 03 Dec 2001 20:21:30 -0800 (PST)


From: Manfred Spraul <manfred@colorfullife.com>
Date: Mon, 03 Dec 2001 21:10:27 +0100

Which other runtime checks are possible?
Tests for correct _irq usage are not possible, several drivers use
disable_irq().

Keep track of how many locks are being held at once, and check if it
is zero at switch_to() time. You can also do this to measure things
like max number of locks held at once and other statistics.

I added the first bit to sparc64 while hunting down a bug.

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