diff options
author | David Smith <dsmith@redhat.com> | 2009-04-02 10:16:35 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-04-02 10:16:35 -0500 |
commit | 9b23198d73b782bc05dc2b834c7db3afbdefda86 (patch) | |
tree | 63ed86aec9f2ac155158accb72add6af73a416b0 /runtime/runtime.h | |
parent | 2e07d704dc5d7304d6a9e666553a1a8ac4382730 (diff) | |
download | systemtap-steved-9b23198d73b782bc05dc2b834c7db3afbdefda86.tar.gz systemtap-steved-9b23198d73b782bc05dc2b834c7db3afbdefda86.tar.xz systemtap-steved-9b23198d73b782bc05dc2b834c7db3afbdefda86.zip |
Renamed STP_OLD_TRANSPORT to STP_TRANSPORT_VERSION.
2009-04-02 David Smith <dsmith@redhat.com>
* runtime.h: Defines STP_TRANSPORT_VERSION instead of STP_OLD_TRANSPORT.
* staprun/staprun.h (STP_OLD_TRANSPORT): Ditto.
* print.c: Changed STP_OLD_TRANSPORT to STP_TRANSPORT_VERSION.
* staprun/mainloop.c (stp_main_loop): Ditto.
* transport/transport.c: Ditto.
* transport/transport.h: Ditto.
* transport/transport_msgs.h: Ditto.
* transport/utt.h: Ditto.
Diffstat (limited to 'runtime/runtime.h')
-rw-r--r-- | runtime/runtime.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/runtime.h b/runtime/runtime.h index 28283db6..78c27a84 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 |