oprofile: minimally working
authorRonald G. Minnich <rminnich@google.com>
Thu, 8 May 2014 00:34:24 +0000 (17:34 -0700)
committerRonald G. Minnich <rminnich@google.com>
Thu, 8 May 2014 00:34:24 +0000 (17:34 -0700)
commit2c61470a0710698529bedd9860a2b97ffaf2e3bb
tree79ea8183ad75ea965665b3a7a65fc65881667db0
parent6f3e77138051dea95dc6e4fcd1adc0e708e46cdd
oprofile: minimally working

We don't have on/off control; that's next.

You can echo something > '#K/kpoprofile' and it will go into
the buffer. You can than cat that file. It's a good way to test.
It works.

Need to get the programs going, see if they work and, if so,
enable the rest of the bits. Probably will implement the real
command interface too.

But, sigh. Will probably have to implement all the hokey oprofile
single-value-for-file files, just for compatibility with the
tools. Oh, yuck.

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