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

Mathieu Desnoyers
2011-01-09T22:05:30Z

[-- Attachment #1: trace-event-syscalls-remove-semicolons.patch --]
[-- Type: text/plain, Size: 1393 bytes --]

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@efficios.com>
CC: Steven Rostedt <rostedt@goodmis.org>
CC: Frederic Weisbecker <fweisbec@gmail.com>
CC: Ingo Molnar <mingo@elte.hu>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: Josh Stone <jistone@redhat.com>
---
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 */