[lkml]   [2009]   [Apr]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 2/8] tracing: create automated trace defines
Mathieu Desnoyers wrote:
> * Jeremy Fitzhardinge ( wrote:
>> -#define __DO_TRACE(tp, proto, args) \
>> - do { \
>> +#define DEFINE_DO_TRACE(name, proto, args) \
>> + void __do_trace_##name(struct tracepoint *tp, TP_PROTO(proto)) \
> I fear that won't work with "void" prototype. If we need this kind of
> flexibility, we will need to create a special case for empty prototype.

Yes, that has been a bit awkward. I couldn't find a way to create a
no-param tracepoint, and so ended up passing a dummy arg. Stupid C syntax.

On the other hand, I can get something that actually compiles this way...


 \ /
  Last update: 2009-04-15 18:11    [W:0.149 / U:0.652 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site