oprofile: sampling works
authorRonald G. Minnich <rminnich@google.com>
Fri, 23 May 2014 02:49:46 +0000 (19:49 -0700)
committerRonald G. Minnich <rminnich@google.com>
Fri, 23 May 2014 02:49:46 +0000 (19:49 -0700)
commit94cc807792818749674e27ebd28df17c15640983
tree523e1f09378ab671ff6ea63a504f194d7290d33c
parent467b06c136d0efcf584eb3b97284a1c131b49700
oprofile: sampling works

ash /ifconfig
echo opstart > /prof/kpctl
do stuff
echo opstop > /prof/kpctl

cat /prof/kpoprofile > /whatever (or 9p place)
profit.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>
kern/drivers/dev/kprof.c
kern/include/oprofile.h
kern/src/oprofile/cpu_buffer.c