Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Jason Baron
Date: Thursday, December 16, 2010 - 12:23 pm

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.

thanks,

-Jason
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH/RFC 0/2] jump label: simplify API, Jason Baron, (Thu Dec 16, 11:25 am)
[PATCH/RFC 1/2] jump label: make enable/disable o(1), Jason Baron, (Thu Dec 16, 11:25 am)
[PATCH/RFC 2/2] jump label: introduce unlikely_switch(), Jason Baron, (Thu Dec 16, 11:25 am)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Peter Zijlstra, (Thu Dec 16, 12:10 pm)
Re: [PATCH/RFC 0/2] jump label: simplify API, Mathieu Desnoyers, (Thu Dec 16, 12:22 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Jason Baron, (Thu Dec 16, 12:23 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Peter Zijlstra, (Thu Dec 16, 12:33 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Peter Zijlstra, (Thu Dec 16, 12:41 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Steven Rostedt, (Thu Dec 16, 1:09 pm)
Re: [PATCH/RFC 0/2] jump label: simplify API, Steven Rostedt, (Thu Dec 16, 1:18 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Mathieu Desnoyers, (Thu Dec 16, 1:36 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Peter Zijlstra, (Thu Dec 16, 1:43 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Mathieu Desnoyers, (Thu Dec 16, 1:45 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Mathieu Desnoyers, (Thu Dec 16, 1:50 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Peter Zijlstra, (Thu Dec 16, 1:56 pm)
Re: [PATCH/RFC 1/2] jump label: make enable/disable o(1), Steven Rostedt, (Fri Dec 17, 2:12 pm)