From: "Kapish K" <kapish@xxxxxxxxxx>
> We have been facing some problems with some kernel defects
> and in the process we felt it might be worthwhile to try some
> wrapper around the spinlock code to see if it might be getting
> called wrongly or released wrongly. So, what we would like to is
> just a wrapper around the spinlock code to do some preliminary
> checks to make sure the lock is held before releasing it or
> along similar lines.
SGI's Lockmeter does not provide any such verification. Lockmeter
instruments spinlocks in order to report who locks what spinlocks, how
often, for how long, and suffering what wait-times in the event of lock
> Is this lockmeter from sgi similar in performance and is it
Lockmeter is lighter-weight than some spinlock instumention
implementations and heavier-weight than other implementations. Typical
system slowdowns are in the 5-15% range. And yes, there is potential
for perturbing timing-sensitive locking patterns.
If you want to verify that the lock is held when you do an unlock, then
you need to roll your own wrapper.