lockdep ouput

孙建希 ycsunjane at gmail.com
Mon Dec 29 03:22:25 EST 2014


Hi,


Can anybody explain the example? I am confused by the `{-.-...}`.


 43
 44 When locking rules are violated, these state bits are presented in the
 45 locking error messages, inside curlies. A contrived example:
 46
 47    modprobe/2287 is trying to acquire lock:
 48     (&sio_locks[i].lock){-.-...}, at: [<c02867fd>] mutex_lock+0x21/0x24
 49
 50    but task is already holding lock:
 51     (&sio_locks[i].lock){-.-...}, at: [<c02867fd>] mutex_lock+0x21/0x24
 52
 53
 54 The bit position indicates STATE, STATE-read, for each of the states
listed
 55 above, and the character displayed in each indicates:
 56
 57    '.'  acquired while irqs disabled and not in irq context
 58    '-'  acquired in irq context
 59    '+'  acquired with irqs enabled
 60    '?'  acquired in irq context with irqs enabled.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20141229/600ff052/attachment.html 


More information about the Kernelnewbies mailing list