kernel - Record token & mplock collisions in thread->td_wmesg
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 11 Dec 2010 08:38:45 +0000 (00:38 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 11 Dec 2010 08:38:45 +0000 (00:38 -0800)
commit2a9d466332523e6c2d4eb9fd0495ec2f79314658
tree9b2a45698f655e0485e517665bf2acff44720cce
parent14db6e91494d098f3c021f69fb9887a919fd2650
kernel - Record token & mplock collisions in thread->td_wmesg

* Record token & mplock collisions which the lwkt thread schedule spins
  on in the thread wmesg, which will show up in ps, top, etc.

  This makes it a lot more obvious when a thread is stalling on a token
  or the mplock and is generally superior to the old per-cpu collision
  record.
sys/kern/lwkt_thread.c
sys/kern/lwkt_token.c
sys/sys/mplock2.h
sys/sys/thread.h