perf: Remove the kprof.pdata staging ground
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 15 Jun 2016 18:25:19 +0000 (14:25 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 17 Jun 2016 16:17:54 +0000 (12:17 -0400)
commit7afb773d7750e62af64d54622ab8dc0afee1548e
tree70d333173ba2f5901b42fad0982df7797b4f0b2b
parent1d6cc4d8f8efc5c6f49deccad37986bd1faf91b0
perf: Remove the kprof.pdata staging ground

Previously, kpdata would be a snapshotted view of the profiler queue.  This
was a pain, and it didn't help with anything.  Instead, now we just drain
the profiler queue directly.

This is also a nice step towards having multiple profilers, instead of the
existing global profiler.  When you open kpctl, the chan has a reference on
a profiler.  That happens to be the global one now.  When you close the
chan, the profiler is released.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/drivers/dev/kprof.c
kern/include/profiler.h
kern/src/profiler.c