Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191324
b: refs/heads/master
c: 883a2a3
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed May 9, 2010
1 parent a8f49fc commit 18f5e74
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 90c0e5fc7b73d2575c7367e1da70ff9521718e5e
refs/heads/master: 883a2a3189dae9d2912c417e47152f51cb922a3f
11 changes: 4 additions & 7 deletions trunk/include/trace/events/lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,21 @@ TRACE_EVENT(lock_contended,
);

TRACE_EVENT(lock_acquired,
TP_PROTO(struct lockdep_map *lock, unsigned long ip, s64 waittime),
TP_PROTO(struct lockdep_map *lock, unsigned long ip),

TP_ARGS(lock, ip, waittime),
TP_ARGS(lock, ip),

TP_STRUCT__entry(
__string(name, lock->name)
__field(s64, wait_nsec)
__field(void *, lockdep_addr)
),

TP_fast_assign(
__assign_str(name, lock->name);
__entry->wait_nsec = waittime;
__entry->lockdep_addr = lock;
),
TP_printk("%p %s (%llu ns)", __entry->lockdep_addr,
__get_str(name),
__entry->wait_nsec)
TP_printk("%p %s", __entry->lockdep_addr,
__get_str(name))
);

#endif
Expand Down
2 changes: 1 addition & 1 deletion trunk/kernel/lockdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -3380,7 +3380,7 @@ __lock_acquired(struct lockdep_map *lock, unsigned long ip)
hlock->holdtime_stamp = now;
}

trace_lock_acquired(lock, ip, waittime);
trace_lock_acquired(lock, ip);

stats = get_lock_stats(hlock_class(hlock));
if (waittime) {
Expand Down

0 comments on commit 18f5e74

Please sign in to comment.