Re: [PATCH 09/15] xen/trace: add tlb flush tracepoints

From: Steven Rostedt
Date: Thu Jun 23 2011 - 16:24:00 EST


On Thu, 2011-06-23 at 12:52 -0700, Jeremy Fitzhardinge wrote:
> On 06/21/2011 07:07 AM, Konrad Rzeszutek Wilk wrote:
> >> +TRACE_EVENT(xen_mmu_flush_tlb,
> >> + TP_PROTO(int x),
> >> + TP_ARGS(x),
> >> + TP_STRUCT__entry(__array(char, x, 0)),
> >> + TP_fast_assign((void)x),
> >> + TP_printk("%s", "")
> > Um, why not just "" without the %s?
>
> Uh, vararg macro bogusness; need to supply 2 args.
>

Ouch! I didn't notice this before. Do you really need this empty event?
Why not just use the function tracer for this? It should work.

If you really need something like this, maybe I'll add a
DEFINE_EVENT_NOARGS() that will not require arguments and can eliminate
a lot of code that TRACE_EVENT() adds.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/