Adds a pcpui trace buffer for generic events
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 27 Jul 2013 00:09:51 +0000 (17:09 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Sat, 27 Jul 2013 00:09:51 +0000 (17:09 -0700)
commit976795eab0d852af9f3636d1a99b0b85311f7220
tree62a7d7f6ca958fef77dd503e4b3a88944c9f187b
parent2559537e612dad92d9f12409acccf0e465bb25d0
Adds a pcpui trace buffer for generic events

Users pick the next available type and provide a handler.  You can run
all the handlers or reset the trace ring from the kernel monitor (e.g.
trace pcpui, trace pcpui-reset).

All users should use the same access method (racy, no overwrite).  If
some subsystem uses overwrite, they'll end up starving the
non-overwriters.
kern/include/smp.h
kern/src/monitor.c
kern/src/smp.c