lkml.org 
[lkml]   [2011]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[RFC patch 09/32] trace event lock 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: 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


\
 
 \ /
  Last update: 2011-05-03 00:11    [W:0.083 / U:15.752 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site