Add a dump function for trace_printk()
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 25 Jan 2017 18:59:38 +0000 (13:59 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 8 Feb 2017 21:36:32 +0000 (16:36 -0500)
commit598c313986dc6b9bdf60a3467cf4fc4c42705839
tree6746cc241b860e926aaa11a1cae3f7506787f832
parentdf6749aeae40b55b595bb84fc80fc5ccc23d6bdf
Add a dump function for trace_printk()

trace_printk() fills a buffer that you can normally access from userspace
by reading #kprof/kptrace.  This will do a full printk() of the contents to
the raw console.

You can call this via kfunc from the monitor - perfect for those nasty
debugging sessions!

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