Re: [PATCH 02/10][RFC] tracing: Let tracepoints have data passed to tracepoint callbacks

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Rostedt
Date: Wednesday, April 28, 2010 - 4:56 pm

On Wed, 2010-04-28 at 16:37 -0400, Mathieu Desnoyers wrote:

Well, looking at the examples, it's pretty obvious what data is ;-)


I have no problem with modifying DECLARE_TRACE() this way. In fact that
was the original way I did it. I was just concerned about changing the
fact that DECLARE_TRACE() no longer allows for (void), and it breaks
your example in the samples dir.

We can make DECLARE_TRACE() add the callback data, and add a NOARG()
version for those that do not have any args.



Hmm, this may be difficult, since the TRACE_EVENT() requires passing of
a arg. I guess we can make NOARG will just ignore the "arg" value.


Well, as Li just pointed out, we already require it ;-)

Not a big deal, we can add a noarg version in the future, but this is
the cost for doing advance work with CPP.

-- Steve


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

Messages in current thread:
Re: [PATCH 02/10][RFC] tracing: Let tracepoints have data ..., Mathieu Desnoyers, (Wed Apr 28, 1:37 pm)
Re: [PATCH 02/10][RFC] tracing: Let tracepoints have data ..., Steven Rostedt, (Wed Apr 28, 4:56 pm)