summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorhunt <hunt>2006-03-20 16:05:24 +0000
committerhunt <hunt>2006-03-20 16:05:24 +0000
commite1d96810d0c2c1da6ec36eb81c642bcc6cf420c8 (patch)
tree19f67a6fb6f6d2573484192eb651a9ff70408c39 /runtime
parent743e6b49d92c1ef9c6d3a174be8130731b60019e (diff)
downloadsystemtap-steved-e1d96810d0c2c1da6ec36eb81c642bcc6cf420c8.tar.gz
systemtap-steved-e1d96810d0c2c1da6ec36eb81c642bcc6cf420c8.tar.xz
systemtap-steved-e1d96810d0c2c1da6ec36eb81c642bcc6cf420c8.zip
*** empty log message ***
Diffstat (limited to 'runtime')
-rw-r--r--runtime/transport/procfs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c
index ec463c4c..cbcc5239 100644
--- a/runtime/transport/procfs.c
+++ b/runtime/transport/procfs.c
@@ -1,7 +1,7 @@
/* -*- linux-c -*-
*
* /proc transport and control
- * Copyright (C) 2005 Red Hat Inc.
+ * Copyright (C) 2005, 2006 Red Hat Inc.
*
* This file is part of systemtap, and is free software. You can
* redistribute it and/or modify it under the terms of the GNU General
@@ -133,7 +133,9 @@ static int _stp_write (int type, void *data, int len)
spin_lock(&_stp_ready_lock);
if (!list_empty(&_stp_ready_q)) {
bptr = (struct _stp_buffer *)_stp_ready_q.prev;
- if (bptr->len + len <= STP_BUFFER_SIZE && bptr->type == type) {
+ if (bptr->len + len <= STP_BUFFER_SIZE
+ && type == STP_REALTIME_DATA
+ && bptr->type == STP_REALTIME_DATA) {
memcpy (bptr->buf + bptr->len - 1, data, len);
bptr->len += len - 1;
spin_unlock(&_stp_ready_lock);