Re: [PATCH][1/3] Completely out of line spinlocks / generic

From: Anton Blanchard
Date: Tue Aug 31 2004 - 20:29:23 EST



> Looking at the PPC oprofile code, how does contention get reported?
> get_pc() looks like it may be returning _raw_spin_*

Yep unfortunately we end up with ticks in the out of line spinlock
functions. We could recognise this in the profile code and walk up the
stack, I think sparc64 has been doing that.

I have a similar problem with hardware performance counters but its much
more difficult there. Since we dont have an NMI you get the profile tick
when interrupts are reenabled. At that point we may be out of the spin
lock so backtracing is impossible.

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