summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2007-06-21 04:10:03 +0000
committerhunt <hunt>2007-06-21 04:10:03 +0000
commit66f08017b92f685f9e62f76731c9cfc79a53f0b0 (patch)
treebfc990af41f67daa7a5d136fee70c29b6a317066
parent3f569620a1dc0c65cfe440dc4f58597567f94cdb (diff)
downloadsystemtap-steved-66f08017b92f685f9e62f76731c9cfc79a53f0b0.tar.gz
systemtap-steved-66f08017b92f685f9e62f76731c9cfc79a53f0b0.tar.xz
systemtap-steved-66f08017b92f685f9e62f76731c9cfc79a53f0b0.zip
2007-06-21 Martin Hunt <hunt@redhat.com>
* control.c (_stp_ctl_write_cmd): Add support for STP_BULK. * transport_msgs.h (enum): Add STP_BULK.
-rw-r--r--runtime/transport/ChangeLog5
-rw-r--r--runtime/transport/control.c6
-rw-r--r--runtime/transport/transport_msgs.h1
3 files changed, 12 insertions, 0 deletions
diff --git a/runtime/transport/ChangeLog b/runtime/transport/ChangeLog
index 61d42908..498b2568 100644
--- a/runtime/transport/ChangeLog
+++ b/runtime/transport/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-21 Martin Hunt <hunt@redhat.com>
+
+ * control.c (_stp_ctl_write_cmd): Add support for STP_BULK.
+ * transport_msgs.h (enum): Add STP_BULK.
+
2007-06-18 Martin Hunt <hunt@redhat.com>
* control.c (_stp_register_ctl_channel): Fix mode of cmd file.
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 7b14901e..68c3b9ae 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -59,6 +59,12 @@ static ssize_t _stp_ctl_write_cmd (struct file *file, const char __user *buf,
case STP_EXIT:
_stp_exit_flag = 1;
break;
+ case STP_BULK:
+#ifdef STP_BULKMODE
+ return count;
+#else
+ return -1;
+#endif
default:
errk ("invalid command type %d\n", type);
return -EINVAL;
diff --git a/runtime/transport/transport_msgs.h b/runtime/transport/transport_msgs.h
index dbbee41d..c6090969 100644
--- a/runtime/transport/transport_msgs.h
+++ b/runtime/transport/transport_msgs.h
@@ -26,6 +26,7 @@ enum
STP_TRANSPORT,
STP_CONNECT,
STP_DISCONNECT,
+ STP_BULK,
#ifdef STP_OLD_TRANSPORT
/** deprecated **/
STP_BUF_INFO,