summaryrefslogtreecommitdiff
path: root/kern/timer.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-15 17:04:08 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2015-08-17 15:44:04 +0200
commit347cb29151859a56a6c5f0f355a43033e5e035a5 (patch)
tree9800e817d7712ad3d2a8e36c309466fefe2efeb1 /kern/timer.h
parentbdc9b8583e6336bb3a44a80f10bac8b7b369719c (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 'kern/timer.h')
0 files changed, 0 insertions, 0 deletions