RE: [PATCH] improve spinlock debugging

Giuliano Pochini (pochini@shiny.it)
Wed, 05 Dec 2001 09:47:44 +0100 (CET)


> Tested on i386/UP, but it should work on all platforms. It contains
> runtime checks for:
>
> - missing initialization
> - recursive lock
> - double unlock
> - incorrect use of spin_is_locked() or spin_trylock() [both function
> do not work as expected on uniprocessor builds]
> The next step are checks for spinlock ordering mismatches.
>
> Which other runtime checks are possible?

It's very useful to log when a lock(irq) is held more than xx ms
and who is the caller. Is it possible ?

Bye.

-
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/