summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2008-04-21 16:50:52 -0400
committerMartin Hunt <hunt@redhat.com>2008-04-21 16:50:52 -0400
commitb197bf0b2a6267b73edcdbf68c73d259bf6a6e6a (patch)
tree0daf7bc638ce8f095cbb2251726e71cb52c1fdc3 /runtime/transport/control.c
parent159cb10989a9d6c1d28fc5d1fa5506a75046a9f7 (diff)
downloadsystemtap-steved-b197bf0b2a6267b73edcdbf68c73d259bf6a6e6a.tar.gz
systemtap-steved-b197bf0b2a6267b73edcdbf68c73d259bf6a6e6a.tar.xz
systemtap-steved-b197bf0b2a6267b73edcdbf68c73d259bf6a6e6a.zip
Change staprun to exec stapio. Add "-d" option to staprun.
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 92334b9c..ca7edf79 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -141,7 +141,7 @@ static int _stp_ctl_write(int type, void *data, unsigned len)
list_add_tail(&bptr->list, &_stp_ctl_ready_q);
spin_unlock_irqrestore(&_stp_ctl_ready_lock, flags);
- return len;
+ return len + sizeof(bptr->type);
}
/* send commands with timeout and retry */