Messages in this thread | | | Date | Sat, 18 May 2002 06:29:16 +1000 | From | Anton Blanchard <> | Subject | Re: Bug with shared memory. |
| |
> No I did not intend to imply this. AFAIK 'CONFIG_DEBUG_SPINLOCK=y' > works fine on x86 (although I'm not a user myself). My intention > was only to add additional features to x86, that appear to only exist > for sparc64.
It would be nice to see some of these things end up in a generic place. Now that we can wrap our spinlocks easily (preempt changed all the spinlocks to _raw_*) we could create a generic debug option that checked:
uninitialised lock, timeout on deadlock, double lock by same cpu, unlock by another cpu, unlock when not locked, scheduling with lock held, read lock when same cpu has write lock.
And Im sure there are some more useful tests.
Anton - 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/
| |