Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191326
b: refs/heads/master
c: 2c193c7
h: refs/heads/master
v: v3
  • Loading branch information
Frederic Weisbecker committed May 9, 2010
1 parent 8fadc24 commit 7d73bb4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 34 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: 93135439459920c4d856f4ab8f068c030085c8df
refs/heads/master: 2c193c736803ceb547daec725e5c5d992d039f20
48 changes: 15 additions & 33 deletions trunk/include/trace/events/lock.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,64 +35,46 @@ TRACE_EVENT(lock_acquire,
__get_str(name))
);

TRACE_EVENT(lock_release,
DECLARE_EVENT_CLASS(lock,

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

TP_ARGS(lock, ip),

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

TP_fast_assign(
__assign_str(name, lock->name);
__entry->lockdep_addr = lock;
),

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

#ifdef CONFIG_LOCK_STAT

TRACE_EVENT(lock_contended,
DEFINE_EVENT(lock, lock_release,

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

TP_ARGS(lock, ip),

TP_STRUCT__entry(
__string(name, lock->name)
__field(void *, lockdep_addr)
),
TP_ARGS(lock, ip)
);

TP_fast_assign(
__assign_str(name, lock->name);
__entry->lockdep_addr = lock;
),
#ifdef CONFIG_LOCK_STAT

TP_printk("%p %s",
__entry->lockdep_addr, __get_str(name))
);
DEFINE_EVENT(lock, lock_contended,

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

TP_ARGS(lock, ip),
TP_ARGS(lock, ip)
);

TP_STRUCT__entry(
__string(name, lock->name)
__field(void *, lockdep_addr)
),
DEFINE_EVENT(lock, lock_acquired,

TP_fast_assign(
__assign_str(name, lock->name);
__entry->lockdep_addr = lock;
),
TP_printk("%p %s", __entry->lockdep_addr,
__get_str(name))
TP_PROTO(struct lockdep_map *lock, unsigned long ip),

TP_ARGS(lock, ip)
);

#endif
Expand Down

0 comments on commit 7d73bb4

Please sign in to comment.