summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
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 /runtime/transport/control.c
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.
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c6
1 files changed, 6 insertions, 0 deletions
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;