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

From: Mathieu Desnoyers
Date: Tue May 03 2011 - 19:20:23 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: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
---
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

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