summaryrefslogtreecommitdiffstats
path: root/runtime/runtime.h
diff options
context:
space:
mode:
authorStan Cox <scox@redhat.com>2009-06-19 14:06:52 -0400
committerStan Cox <scox@redhat.com>2009-06-19 14:06:52 -0400
commitd138d3d71a1685c53cc5c2b72ed8ae64d3e012d2 (patch)
tree966ff2622c07fb84513b487482a1a1f46bae5dfc /runtime/runtime.h
parent45148f5b5e371ff852dbbb08d83c5e87932b372e (diff)
parenteba61c56888482553551a16ec651444a583522e0 (diff)
downloadsystemtap-steved-d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2.tar.gz
systemtap-steved-d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2.tar.xz
systemtap-steved-d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2.zip
Merge branch 'master' of ssh://sourceware.org/git/systemtap
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r--runtime/runtime.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 9881acb7..c3bf501d 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -34,9 +34,14 @@
#if !defined (CONFIG_DEBUG_FS) && !defined (CONFIG_DEBUG_FS_MODULE)
#error "DebugFS is required and was not found in the kernel."
#endif
+#ifdef CONFIG_RING_BUFFER
+#define STP_TRANSPORT_VERSION 3
+#else
+#define STP_TRANSPORT_VERSION 2
+#endif
#else
/* older kernels have no debugfs and older version of relayfs. */
-#define STP_OLD_TRANSPORT
+#define STP_TRANSPORT_VERSION 1
#endif
#ifndef stp_for_each_cpu
@@ -45,6 +50,9 @@
static void _stp_dbug (const char *func, int line, const char *fmt, ...);
static void _stp_error (const char *fmt, ...);
+static void _stp_warn (const char *fmt, ...);
+
+static void _stp_exit(void);
#include "debug.h"