Part of the gradual TRACE_EVENT() semicolon removal. Enables creation of array of events, thus saving space for trace event probes. Signed-off-by: Mathieu Desnoyers CC: Steven Rostedt CC: Frederic Weisbecker CC: Ingo Molnar CC: Thomas Gleixner CC: Anton Blanchard CC: Paul Mackerras CC: Christoph Hellwig CC: Jeremy Kerr CC: Benjamin Herrenschmidt --- arch/powerpc/include/asm/trace.h | 23 +++++++++++++++++------ arch/powerpc/platforms/cell/spufs/sputrace.h | 2 +- 2 files changed, 18 insertions(+), 7 deletions(-) Index: linux-2.6-lttng/arch/powerpc/include/asm/trace.h =================================================================== --- linux-2.6-lttng.orig/arch/powerpc/include/asm/trace.h +++ linux-2.6-lttng/arch/powerpc/include/asm/trace.h @@ -6,8 +6,13 @@ #include +#ifndef _TRACE_POWERPC_DEF_ +#define _TRACE_POWERPC_DEF_ + struct pt_regs; +#endif /* _TRACE_POWERPC_DEF_ */ + TRACE_EVENT(irq_entry, TP_PROTO(struct pt_regs *regs), @@ -23,7 +28,7 @@ TRACE_EVENT(irq_entry, ), TP_printk("pt_regs=%p", __entry->regs) -); +) TRACE_EVENT(irq_exit, @@ -40,7 +45,7 @@ TRACE_EVENT(irq_exit, ), TP_printk("pt_regs=%p", __entry->regs) -); +) TRACE_EVENT(timer_interrupt_entry, @@ -57,7 +62,7 @@ TRACE_EVENT(timer_interrupt_entry, ), TP_printk("pt_regs=%p", __entry->regs) -); +) TRACE_EVENT(timer_interrupt_exit, @@ -74,12 +79,18 @@ TRACE_EVENT(timer_interrupt_exit, ), TP_printk("pt_regs=%p", __entry->regs) -); +) #ifdef CONFIG_PPC_PSERIES + +#ifndef _TRACE_PPC_PSERIES_DEF_ +#define _TRACE_PPC_PSERIES_DEF_ + extern void hcall_tracepoint_regfunc(void); extern void hcall_tracepoint_unregfunc(void); +#endif /* _TRACE_PPC_PSERIES_DEF_ */ + TRACE_EVENT_FN(hcall_entry, TP_PROTO(unsigned long opcode, unsigned long *args), @@ -97,7 +108,7 @@ TRACE_EVENT_FN(hcall_entry, TP_printk("opcode=%lu", __entry->opcode), hcall_tracepoint_regfunc, hcall_tracepoint_unregfunc -); +) TRACE_EVENT_FN(hcall_exit, @@ -119,7 +130,7 @@ TRACE_EVENT_FN(hcall_exit, TP_printk("opcode=%lu retval=%lu", __entry->opcode, __entry->retval), hcall_tracepoint_regfunc, hcall_tracepoint_unregfunc -); +) #endif #endif /* _TRACE_POWERPC_H */ Index: linux-2.6-lttng/arch/powerpc/platforms/cell/spufs/sputrace.h =================================================================== --- linux-2.6-lttng.orig/arch/powerpc/platforms/cell/spufs/sputrace.h +++ linux-2.6-lttng/arch/powerpc/platforms/cell/spufs/sputrace.h @@ -24,7 +24,7 @@ TRACE_EVENT(spufs_context, TP_printk("%s (ctxthread = %d, spu = %d)", __entry->name, __entry->owner_tid, __entry->number) -); +) #define spu_context_trace(name, ctx, spu) \ trace_spufs_context(ctx, spu, __stringify(name)) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/