Re: [PATCH 04/10][RFC] tracing: Remove per event trace registering

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mathieu Desnoyers
Date: Thursday, April 29, 2010 - 7:55 am

* Steven Rostedt (rostedt@goodmis.org) wrote:

Can we add something like this to DECLARE_TRACE ? (not convinced it is
valid though)

static inline void check_trace_##name(cb_type)
{
	BUILD_BUG_ON(!__same_type(void (*probe)(TP_PROTO(proto), void *data),
				  cb_type));
}


Either within this callback, or in a dummy static function after, we
could add:

check_trace_##call(ftrace_raw_event_##call);

So.. you are the preprocessor expert, do you think this could fly ? ;)

Thanks,

Mathieu


-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Wed Apr 28, 1:44 pm)
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Wed Apr 28, 5:05 pm)
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Thu Apr 29, 7:55 am)
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Fri Apr 30, 10:09 am)
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Fri Apr 30, 12:06 pm)
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Fri Apr 30, 1:07 pm)
Re: [PATCH 04/10][RFC] tracing: Remove per event trace reg ..., Mathieu Desnoyers, (Fri Apr 30, 2:02 pm)