[RFC patch 20/28] trace event syscalls remove semicolons

From: Mathieu Desnoyers
Date: Sun Jan 09 2011 - 17:09:48 EST


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 <mathieu.desnoyers@xxxxxxxxxxxx>
CC: Steven Rostedt <rostedt@xxxxxxxxxxx>
CC: Frederic Weisbecker <fweisbec@xxxxxxxxx>
CC: Ingo Molnar <mingo@xxxxxxx>
CC: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
CC: Josh Stone <jistone@xxxxxxxxxx>
---
include/trace/events/syscalls.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)

Index: linux-2.6-lttng/include/trace/events/syscalls.h
===================================================================
--- linux-2.6-lttng.orig/include/trace/events/syscalls.h
+++ linux-2.6-lttng/include/trace/events/syscalls.h
@@ -13,9 +13,14 @@

#ifdef CONFIG_HAVE_SYSCALL_TRACEPOINTS

+#ifndef _TRACE_SYSCALLS_DEF_
+#define _TRACE_SYSCALLS_DEF_
+
extern void syscall_regfunc(void);
extern void syscall_unregfunc(void);

+#endif /* _TRACE_SYSCALLS_DEF_ */
+
TRACE_EVENT_FN(sys_enter,

TP_PROTO(struct pt_regs *regs, long id),
@@ -38,7 +43,7 @@ TRACE_EVENT_FN(sys_enter,
__entry->args[3], __entry->args[4], __entry->args[5]),

syscall_regfunc, syscall_unregfunc
-);
+)

TRACE_EVENT_FN(sys_exit,

@@ -60,7 +65,7 @@ TRACE_EVENT_FN(sys_exit,
__entry->id, __entry->ret),

syscall_regfunc, syscall_unregfunc
-);
+)

#endif /* CONFIG_HAVE_SYSCALL_TRACEPOINTS */


--
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/