prof: backtrace the interrupted context
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 May 2014 19:18:26 +0000 (12:18 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 28 May 2014 19:18:26 +0000 (12:18 -0700)
commit6530f3d9be67afc0c34ee8a77252a9de745bbdc7
tree8afe6d2544e220d69fcb807c0a45ada6ea6540cc
parenta88f03ca6ea211064c771dd759ced34061f052c7
prof: backtrace the interrupted context

Just calling backtrace on the current context just gave us the IRQ's BT,
which is just handle_irq, timer_interrupt, etc.  We actually want the
context that we interrupted, such as the kernel executing a syscall or
userspace.
kern/include/kdebug.h
kern/include/oprofile.h
kern/src/oprofile/cpu_buffer.c
kern/src/time.c