lkml.org 
[lkml]   [2011]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC patch 20/28] trace event syscalls remove semicolons
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 */



\
 
 \ /
  Last update: 2011-01-09 23:13    [from the cache]
©2003-2011 Jasper Spaans