summaryrefslogtreecommitdiffstats
path: root/runtime/transport/procfs.c
diff options
context:
space:
mode:
authortrz <trz>2006-03-16 15:14:39 +0000
committertrz <trz>2006-03-16 15:14:39 +0000
commit743e6b49d92c1ef9c6d3a174be8130731b60019e (patch)
treec58a2c20643595c275acae07de15fb9ac8952087 /runtime/transport/procfs.c
parent1e48b88a1a18daa71febc91638eec076443b06d3 (diff)
downloadsystemtap-steved-743e6b49d92c1ef9c6d3a174be8130731b60019e.tar.gz
systemtap-steved-743e6b49d92c1ef9c6d3a174be8130731b60019e.tar.xz
systemtap-steved-743e6b49d92c1ef9c6d3a174be8130731b60019e.zip
change relayfs version checking ifdefs
Diffstat (limited to 'runtime/transport/procfs.c')
-rw-r--r--runtime/transport/procfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c
index 22b14046..ec463c4c 100644
--- a/runtime/transport/procfs.c
+++ b/runtime/transport/procfs.c
@@ -31,13 +31,13 @@ _stp_proc_read (struct file *file, char __user *buf, size_t count, loff_t *ppos)
return -EINVAL;
out.cpu = cpu;
-#if RELAYFS_VERSION_GE_4 || defined (CONFIG_RELAY)
+#if (RELAYFS_CHANNEL_VERSION >= 4) || defined (CONFIG_RELAY)
out.produced = _stp_chan->buf[cpu]->subbufs_produced;
out.consumed = _stp_chan->buf[cpu]->subbufs_consumed;
#else
out.produced = atomic_read(&_stp_chan->buf[cpu]->subbufs_produced);
out.consumed = atomic_read(&_stp_chan->buf[cpu]->subbufs_consumed);
-#endif /* RELAYFS_VERSION_GE_4 || CONFIG_RELAY */
+#endif /* RELAYFS_CHANNEL_VERSION >= 4 || CONFIG_RELAY */
num = sizeof(out);
if (copy_to_user(buf, &out, num))