diff options
author | Tim Moore <timoore@redhat.com> | 2009-03-04 11:56:45 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-03-04 13:18:55 +0100 |
commit | 8c5905d0b6c8206c5ed971a637077aa8ef5c1b02 (patch) | |
tree | 12e9d4f80aec601b66ec83e06e8b3675ba4a18bd /runtime/stack-i386.c | |
parent | cd1db1dd034141535648a66d9896db6c5e74dd9e (diff) | |
download | systemtap-steved-8c5905d0b6c8206c5ed971a637077aa8ef5c1b02.tar.gz systemtap-steved-8c5905d0b6c8206c5ed971a637077aa8ef5c1b02.tar.xz systemtap-steved-8c5905d0b6c8206c5ed971a637077aa8ef5c1b02.zip |
stap autoconf test for kernel stack trace support
* buildrun.cxx (compile_pass): Add autoconf line for stack trace
test, which defines STAPCONF_KERNEL_STACKTRACE.
* runtime/autoconf-save-stack-trace.c: New file.
* runtime/stack.c : Use STAPCONF_KERNEL_STACKTRACE instead of
tests for kernel configuration and versions.
* runtime/stack-i386.c : ditto
* runtime/stack-x86_64.c : ditto
Diffstat (limited to 'runtime/stack-i386.c')
-rw-r--r-- | runtime/stack-i386.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stack-i386.c b/runtime/stack-i386.c index 206801d8..5a18c9d8 100644 --- a/runtime/stack-i386.c +++ b/runtime/stack-i386.c @@ -14,7 +14,7 @@ static int _stp_valid_stack_ptr(unsigned long context, unsigned long p) } /* DWARF unwinder failed. Just dump intereting addresses on kernel stack. */ -#if ! (defined(CONFIG_STACKTRACE) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,26)) +#if !defined(STAPCONF_KERNEL_STACKTRACE) static void _stp_stack_print_fallback(unsigned long stack, int verbose, int levels) { unsigned long addr; |