[RFC patch 09/32] trace event lock remove semicolons

Mathieu Desnoyers
2011-05-02T22:08:42Z

[-- Attachment #1: trace-event-lock-remove-semicolons.patch --]
[-- Type: text/plain, Size: 1465 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: Peter Zijlstra <peterz@infradead.org>
---
include/trace/events/lock.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Index: linux-2.6-lttng/include/trace/events/lock.h
===================================================================
--- linux-2.6-lttng.orig/include/trace/events/lock.h
+++ linux-2.6-lttng/include/trace/events/lock.h
@@ -33,7 +33,7 @@ TRACE_EVENT(lock_acquire,
(__entry->flags & 1) ? "try " : "",
(__entry->flags & 2) ? "read " : "",
__get_str(name))
-);
+)

DECLARE_EVENT_CLASS(lock,

@@ -52,14 +52,14 @@ DECLARE_EVENT_CLASS(lock,
),

TP_printk("%p %s", __entry->lockdep_addr, __get_str(name))
-);
+)

DEFINE_EVENT(lock, lock_release,

TP_PROTO(struct lockdep_map *lock, unsigned long ip),

TP_ARGS(lock, ip)
-);
+)

#ifdef CONFIG_LOCK_STAT

@@ -68,14 +68,14 @@ DEFINE_EVENT(lock, lock_contended,
TP_PROTO(struct lockdep_map *lock, unsigned long ip),

TP_ARGS(lock, ip)
-);
+)

DEFINE_EVENT(lock, lock_acquired,

TP_PROTO(struct lockdep_map *lock, unsigned long ip),

TP_ARGS(lock, ip)
-);
+)

#endif
#endif