aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/lock.h
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2010-05-08 00:16:11 -0400
committerFrederic Weisbecker <fweisbec@gmail.com>2010-05-09 07:45:32 -0400
commit883a2a3189dae9d2912c417e47152f51cb922a3f (patch)
tree286a31a1d86b1e49afc79f61c9b83ca81840065b /include/trace/events/lock.h
parent90c0e5fc7b73d2575c7367e1da70ff9521718e5e (diff)
tracing: Drop lock_acquired waittime field
Drop the waittime field from the lock_acquired event, we can calculate it by substracting the lock_acquired event timestamp with the matching lock_acquire one. It is not needed and takes useless space in the traces. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> Cc: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace/events/lock.h')
-rw-r--r--include/trace/events/lock.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/include/trace/events/lock.h b/include/trace/events/lock.h
index 5c1dcfc16c60..17ca287ae176 100644
--- a/include/trace/events/lock.h
+++ b/include/trace/events/lock.h
@@ -78,24 +78,21 @@ TRACE_EVENT(lock_contended,
78); 78);
79 79
80TRACE_EVENT(lock_acquired, 80TRACE_EVENT(lock_acquired,
81 TP_PROTO(struct lockdep_map *lock, unsigned long ip, s64 waittime), 81 TP_PROTO(struct lockdep_map *lock, unsigned long ip),
82 82
83 TP_ARGS(lock, ip, waittime), 83 TP_ARGS(lock, ip),
84 84
85 TP_STRUCT__entry( 85 TP_STRUCT__entry(
86 __string(name, lock->name) 86 __string(name, lock->name)
87 __field(s64, wait_nsec)
88 __field(void *, lockdep_addr) 87 __field(void *, lockdep_addr)
89 ), 88 ),
90 89
91 TP_fast_assign( 90 TP_fast_assign(
92 __assign_str(name, lock->name); 91 __assign_str(name, lock->name);
93 __entry->wait_nsec = waittime;
94 __entry->lockdep_addr = lock; 92 __entry->lockdep_addr = lock;
95 ), 93 ),
96 TP_printk("%p %s (%llu ns)", __entry->lockdep_addr, 94 TP_printk("%p %s", __entry->lockdep_addr,
97 __get_str(name), 95 __get_str(name))
98 __entry->wait_nsec)
99); 96);
100 97
101#endif 98#endif