summaryrefslogtreecommitdiffstats
path: root/runtime/transport/procfs.c
diff options
context:
space:
mode:
authortrz <trz>2006-09-25 22:36:14 +0000
committertrz <trz>2006-09-25 22:36:14 +0000
commit30e44c77c14b22ba822809c2a876a2f430f01350 (patch)
treeef4ffb6c1d4c44075d4ccd87d4b505f9704960d4 /runtime/transport/procfs.c
parentd0114f122c7e04f4f46bc2a5af72dc94af697437 (diff)
downloadsystemtap-steved-30e44c77c14b22ba822809c2a876a2f430f01350.tar.gz
systemtap-steved-30e44c77c14b22ba822809c2a876a2f430f01350.tar.xz
systemtap-steved-30e44c77c14b22ba822809c2a876a2f430f01350.zip
fix for bz 2816
Diffstat (limited to 'runtime/transport/procfs.c')
-rw-r--r--runtime/transport/procfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c
index 90ceb58b..b0b03a73 100644
--- a/runtime/transport/procfs.c
+++ b/runtime/transport/procfs.c
@@ -18,6 +18,7 @@ spinlock_t _stp_pool_lock = SPIN_LOCK_UNLOCKED;
spinlock_t _stp_ready_lock = SPIN_LOCK_UNLOCKED;
#ifdef STP_RELAYFS
+extern int _stp_relay_flushing;
/* handle the per-cpu subbuf info read for relayfs */
static ssize_t
_stp_proc_read (struct file *file, char __user *buf, size_t count, loff_t *ppos)
@@ -38,6 +39,7 @@ _stp_proc_read (struct file *file, char __user *buf, size_t count, loff_t *ppos)
out.produced = atomic_read(&_stp_chan->buf[cpu]->subbufs_produced);
out.consumed = atomic_read(&_stp_chan->buf[cpu]->subbufs_consumed);
#endif /* RELAYFS_CHANNEL_VERSION >= 4 || CONFIG_RELAY */
+ out.flushing = _stp_relay_flushing;
num = sizeof(out);
if (copy_to_user(buf, &out, num))