Get oprofile working more correctly.
authorRonald G. Minnich <rminnich@google.com>
Thu, 15 May 2014 00:49:46 +0000 (17:49 -0700)
committerRonald G. Minnich <rminnich@google.com>
Thu, 15 May 2014 00:51:19 +0000 (17:51 -0700)
commit1dfb3b472263bfe30219335ad4b73528681f0719
treee9d9ea6ec1cb372d9d198f08b4e45d01cec6637a
parent5a3f7b45ea5402e7b8414cf75866c72d46e33c97
Get oprofile working more correctly.

Do this:
echo opstart > /prof/kpctl
echo 8 > /prof/kpoprofile
echo 8 > /prof/kpoprofile
echo 8 > /prof/kpoprofile
echo opstop > /prof/kpctl
cat /prof/kpoprofile

This will return data in oprofile format. Shame that oprofile is obsolete,
this was so easy.

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