On Thu, Dec 16, 2010 at 08:10:02PM +0100, Peter Zijlstra wrote:
its not 2 APIS doing the same thing...one does refcounting, the other is
a straight enable/disable.
For the jump label disabled case, perf is using atomic_inc/dec and atomic_read
to check if enabled. While other consumers (tracepoints) are just using an
'int'. I didn't want hurt the jump label disabled case for tracepoints.
If we can agree to use atomic ops for tracepoints, or drop atomics from
perf, that would simplify things.
For the jump albel enabled case, there is no issue.