diff options
author | Stan Cox <scox@redhat.com> | 2009-06-19 14:06:52 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-06-19 14:06:52 -0400 |
commit | d138d3d71a1685c53cc5c2b72ed8ae64d3e012d2 (patch) | |
tree | 966ff2622c07fb84513b487482a1a1f46bae5dfc /runtime/staprun | |
parent | 45148f5b5e371ff852dbbb08d83c5e87932b372e (diff) | |
parent | eba61c56888482553551a16ec651444a583522e0 (diff) | |
download | systemtap-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/staprun')
-rw-r--r-- | runtime/staprun/mainloop.c | 2 | ||||
-rw-r--r-- | runtime/staprun/staprun.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/runtime/staprun/mainloop.c b/runtime/staprun/mainloop.c index 205fdf37..7125a7bb 100644 --- a/runtime/staprun/mainloop.c +++ b/runtime/staprun/mainloop.c @@ -487,7 +487,7 @@ int stp_main_loop(void) nb -= sizeof(uint32_t); switch (type) { -#ifdef STP_OLD_TRANSPORT +#if STP_TRANSPORT_VERSION == 1 case STP_REALTIME_DATA: if (write_realtime_data(data, nb)) { _perr("write error (nb=%ld)", (long)nb); diff --git a/runtime/staprun/staprun.h b/runtime/staprun/staprun.h index acc533b2..bd6402e4 100644 --- a/runtime/staprun/staprun.h +++ b/runtime/staprun/staprun.h @@ -94,8 +94,9 @@ extern char *__name__; /* Grabbed from linux/module.h kernel include. */ #define MODULE_NAME_LEN (64 - sizeof(unsigned long)) -/* we define this so we are compatible with old transport, but we don't have to use it. */ -#define STP_OLD_TRANSPORT +/* We define this so we are compatible with old transport, but we + * don't have to use it. */ +#define STP_TRANSPORT_VERSION 1 #include "../transport/transport_msgs.h" #define RELAYFS_MAGIC 0xF0B4A981 |