diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-15 17:04:08 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-08-17 15:44:04 +0200 |
commit | 347cb29151859a56a6c5f0f355a43033e5e035a5 (patch) | |
tree | 9800e817d7712ad3d2a8e36c309466fefe2efeb1 /xen/net.c | |
parent | bdc9b8583e6336bb3a44a80f10bac8b7b369719c (diff) |
kern: improve simple lock debugging
Do not bother saving the return address when acquire a simple lock.
Save the location as provided by the compiler as string instead. Also
save the lock parameter.
* kern/lock.c (struct simple_locks_info): Drop `ra', add `expr', `loc'.
(simple_lock): Rename to `_simple_lock', add expression and location
parameters and save them.
(simple_lock_try): Likewise.
(simple_unlock): Zero-out the now unused slot in the list of taken locks.
(db_show_all_slocks): Use the new information.
* kern/lock.h (simple_lock, simple_lock_try): Provide macro versions
passing the location and expression as string.
Diffstat (limited to 'xen/net.c')
0 files changed, 0 insertions, 0 deletions