The API in linux/stacktrace.h has drifted somewhat. If the runtime is to retain compatibility with RHEL5-era 2.6.18, autoconf- or KERNEL_VERSION-based checks are needed. Related, dump_trace() does not seem necessary as we can also invoke address->symbol-name mappings in the runtime proper.
Part of the responsibility of committing code to the runtime is keeping it buildable as kernels change.
Even with commit 8aaa6e11f666ad372107299b5b17602011125c7d "PR9866 band-aid: deactivate new CONFIG_STACKTRACE code for older kernels" Stap fails to build a kernel module on a ppc64 machine with latest kernel with config option CONFIG_STACKTRACE set. This is because there is no asm/stacktrace.h file for ppc64 and hence we cant use struct stacktrace_ops print_stack_ops on ppc64.
Fixed by adding a STAPCONF test and define (8c5905d0)