perf: generalize perf_callchain
authorAlexei Starovoitov <ast@fb.com>
Thu, 18 Feb 2016 03:58:57 +0000 (19:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 20 Feb 2016 05:21:44 +0000 (00:21 -0500)
commit568b329a02f75ed3aaae5eb2cca384cb9e09cb29
treeae50fa4f98c1c7ad07ad834677be3304a282499e
parent6b83d28a55a891a9d70fc61ccb1c138e47dcbe74
perf: generalize perf_callchain

. avoid walking the stack when there is no room left in the buffer
. generalize get_perf_callchain() to be called from bpf helper

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/x86/include/asm/stacktrace.h
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/dumpstack.c
arch/x86/kernel/stacktrace.c
arch/x86/oprofile/backtrace.c
include/linux/perf_event.h
kernel/events/callchain.c
kernel/events/internal.h