On Wed, 2008-08-20 at 14:39 +0200, Robert Richter wrote:
We originally added add_event_entry() to include/linux/oprofile.h
specifically because it was needed for the CELL SPU support. As it
turns out it the approach was not completely thought through. We were
using the function call without holding the mutex lock. As we
discovered later, this can result in corrupting the data put into the
event buffer. So exposing the function without a way to hold the mutex
lock is actually a really bad idea as it would encourage others to fall
into the same mistake that we made. So, as Arnd said, the whole point
of this patch is to come up with a correct approach to adding the data.
It really is best to remove it. Thank you for taking the time to review
and comment on the patch.
Carl Love
--