summaryrefslogtreecommitdiffstats
path: root/runtime/stack-i386.c
diff options
context:
space:
mode:
authorTim Moore <timoore@redhat.com>2009-12-18 17:56:24 +0100
committerTim Moore <timoore@redhat.com>2009-12-18 19:11:07 +0100
commit471fca5e53a239f7fa4d04b7b6d6f53765a3d598 (patch)
tree405a6cda2f7c18c26ac20fcfb42c7849f56c0e73 /runtime/stack-i386.c
parent4180475982d87f720897baa6f988a48b4c654ee5 (diff)
downloadsystemtap-steved-471fca5e53a239f7fa4d04b7b6d6f53765a3d598.tar.gz
systemtap-steved-471fca5e53a239f7fa4d04b7b6d6f53765a3d598.tar.xz
systemtap-steved-471fca5e53a239f7fa4d04b7b6d6f53765a3d598.zip
Remove uprobes.h declaration from runtime.h
Turns out that it breaks on kernels that don't have utrace. * runtime/runtime.h : Don't include uprobes.h * runtime/stack.c: Include uprobes.h * runtime/stack-i386.c: Check if uprobes is included at all. * runtime/stack-x86_64.c: ditto * tapsets.cxx (uprobe_derived_probe_group::emit_module_decls): put uprobes.h include back in.
Diffstat (limited to 'runtime/stack-i386.c')
-rw-r--r--runtime/stack-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/stack-i386.c b/runtime/stack-i386.c
index 4bd3cc53..66d892d3 100644
--- a/runtime/stack-i386.c
+++ b/runtime/stack-i386.c
@@ -63,7 +63,7 @@ static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels,
while (levels && (tsk || !arch_unw_user_mode(&info))) {
int ret = unwind(&info, tsk);
-#if UPROBES_API_VERSION > 1
+#if defined(UPROBES_API_VERSION) && UPROBES_API_VERSION > 1
unsigned long maybe_pc = 0;
if (ri) {
maybe_pc = uprobe_get_pc(ri, UNW_PC(&info),