perf: Have arches handle the backtrace
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 19 Jul 2016 23:26:24 +0000 (19:26 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 27 Jul 2016 16:52:43 +0000 (12:52 -0400)
commit4a5d86c829b2b80be62bf95d073af9c963d5a988
tree79bf8aab1daa45abedc9fdae4d19612fa378295c
parent061085cca802ff42351411be60da8daf5ac392f1
perf: Have arches handle the backtrace

Instead of having arch-independent perf do the backtraces, let the arch
generate the BT and pass it to the arch-independent part.

This will matter for NMI tracing, where the actual pc_list will be saved
somewhere temporarily and then emitted.  Only x86 needs to know about that.

This also removes the add_trace() option.  It's a bad thing to do.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/perfmon.c
kern/drivers/dev/kprof.c
kern/include/profiler.h
kern/src/profiler.c