diff options
author | Alexei Starovoitov <ast@fb.com> | 2016-02-17 19:58:57 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-20 00:21:44 -0500 |
commit | 568b329a02f75ed3aaae5eb2cca384cb9e09cb29 (patch) | |
tree | ae50fa4f98c1c7ad07ad834677be3304a282499e /arch/x86/include | |
parent | 6b83d28a55a891a9d70fc61ccb1c138e47dcbe74 (diff) | |
download | blackbird-obmc-linux-568b329a02f75ed3aaae5eb2cca384cb9e09cb29.tar.gz blackbird-obmc-linux-568b329a02f75ed3aaae5eb2cca384cb9e09cb29.zip |
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/stacktrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/stacktrace.h b/arch/x86/include/asm/stacktrace.h index 70bbe39043a9..7c247e7404be 100644 --- a/arch/x86/include/asm/stacktrace.h +++ b/arch/x86/include/asm/stacktrace.h @@ -37,7 +37,7 @@ print_context_stack_bp(struct thread_info *tinfo, /* Generic stack tracer with callbacks */ struct stacktrace_ops { - void (*address)(void *data, unsigned long address, int reliable); + int (*address)(void *data, unsigned long address, int reliable); /* On negative return stop dumping */ int (*stack)(void *data, char *name); walk_stack_t walk_stack; |