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: Friday, April 30, 2010 - 12:06 pm

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

You can add the call to the static inline type check directly within the
generated probe function, right after the local variable declarations.


Please don't take this personally. As I said above, I include myself in
the list of people I don't trust to write entirely bug-free code. I'm
just saying that we should not overlook a possibility to detect more
bugs automatically when we have one, especially if this results in no
object code change.


In the TRACE_EVENT() case, without the extra "void *data" argument,
it is indeed checking that the "proto" of the callback you create is
that same as the "proto" expected by the tracepoint call. However, given
that you plan on adding other parameters besides "proto", then the added
type-checking makes more and more sense.

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)