summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2009-12-17 16:59:26 -0500
committerDave Brolley <brolley@redhat.com>2009-12-17 16:59:26 -0500
commit6dd4e32114264ccda20395cb07bb877de3c062b2 (patch)
tree6ea4eb4e631df7832c07eafeda2ca4031870b335 /runtime/runtime.h
parent089ed967ce3894c3569091db70db423a5316b04e (diff)
parent4180475982d87f720897baa6f988a48b4c654ee5 (diff)
downloadsystemtap-steved-6dd4e32114264ccda20395cb07bb877de3c062b2.tar.gz
systemtap-steved-6dd4e32114264ccda20395cb07bb877de3c062b2.tar.xz
systemtap-steved-6dd4e32114264ccda20395cb07bb877de3c062b2.zip
Merge branch 'master' of ssh://sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index ba583aeb..0fd2a380 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -31,6 +31,17 @@
#include <linux/sched.h>
#include <linux/mm.h>
+/* If uprobes isn't in the kernel, pull it in from the runtime. */
+#if defined(CONFIG_UPROBES) || defined(CONFIG_UPROBES_MODULE)
+#include <linux/uprobes.h>
+#else
+#include "uprobes/uprobes.h"
+#endif
+#ifndef UPROBES_API_VERSION
+#define UPROBES_API_VERSION 1
+#endif
+
+
#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,15)
#if !defined (CONFIG_DEBUG_FS) && !defined (CONFIG_DEBUG_FS_MODULE)
#error "DebugFS is required and was not found in the kernel."
@@ -115,6 +126,16 @@ static struct
#endif
#endif
+#ifndef SYM_VERBOSE_NO
+#define SYM_VERBOSE_NO 0
+#endif
+#ifndef SYM_VERBOSE_FULL
+#define SYM_VERBOSE_FULL 1
+#endif
+#ifndef SYM_VERBOSE_BRIEF
+#define SYM_VERBOSE_BRIEF 2
+#endif
+
#include "alloc.c"
#include "print.c"
#include "string.c"