Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have data passed to tracepoint callbacks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Frederic Weisbecker
Date: Thursday, May 6, 2010 - 8:52 pm

On Mon, May 03, 2010 at 11:40:47PM -0400, Steven Rostedt wrote:


So, we had a talk about this and we concluded that it is probably fine
on every archs to push one more argument than needed in a function.

But I think it would be nice to add a comment about this. Firstly
because this line breaks all the self-explanation of the code, I mean
I tried hard to find how the non-data callback case was handled :)
Secondly to also to avoid people asking what happens here.







That too, may be, deserves a small comment :)







It seems that the on and off cases are exactly the same for DECLARE_TRACE*(),
you could provide a single version and let the __DECLARE_TRACE() do
the on/off trick.

Thanks.

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

Messages in current thread:
Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have da ..., Frederic Weisbecker, (Thu May 6, 8:52 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ..., Frederic Weisbecker, (Thu May 6, 9:20 pm)
Re: [PATCH 1/9 - v2][RFC] tracing: Create class struct for ..., Frederic Weisbecker, (Thu May 6, 9:21 pm)
Re: [PATCH 4/9 - v2][RFC] tracing: Move fields from event ..., Frederic Weisbecker, (Thu May 6, 9:49 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ..., Mathieu Desnoyers, (Fri May 7, 7:54 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ..., Mathieu Desnoyers, (Fri May 7, 8:31 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ..., Frederic Weisbecker, (Fri May 7, 11:01 am)
Re: [PATCH 2/9 - v2][RFC] tracing: Let tracepoints have da ..., Frederic Weisbecker, (Fri May 7, 11:06 am)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ..., Frederic Weisbecker, (Fri May 7, 1:03 pm)
Re: [PATCH 3/9 - v2][RFC] tracing: Remove per event trace ..., Mathieu Desnoyers, (Fri May 7, 1:58 pm)