Re: [PATCH] improve spinlock debugging

From: David S. Miller (davem@redhat.com)
Date: Mon Dec 03 2001 - 23:21:30 EST


   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/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:22 EST