diff options
author | David Smith <dsmith@redhat.com> | 2009-02-13 12:08:56 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-13 12:08:56 -0600 |
commit | 177bcaebf508bb86f06a4f7b0830096cf2f3acc5 (patch) | |
tree | 8428352bb10ee5153350fe934a4ec6c7dcd3c9f9 /runtime/transport/procfs.c | |
parent | 57439678db34719d2795e84cbe1bb9ef2b537deb (diff) | |
download | systemtap-steved-177bcaebf508bb86f06a4f7b0830096cf2f3acc5.tar.gz systemtap-steved-177bcaebf508bb86f06a4f7b0830096cf2f3acc5.tar.xz systemtap-steved-177bcaebf508bb86f06a4f7b0830096cf2f3acc5.zip |
Fixed transport/procfs.c for systems that use the old transport (RHEL4).
2009-02-13 David Smith <dsmith@redhat.com>
* procfs.c: Added macros to guard against multiple inclusion.
2009-02-13 David Smith <dsmith@redhat.com>
* procfs.c: Added inclusion of ../procfs.c for
_stp_mkdir_proc_module().
Diffstat (limited to 'runtime/transport/procfs.c')
-rw-r--r-- | runtime/transport/procfs.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/runtime/transport/procfs.c b/runtime/transport/procfs.c index ca33e0fd..0c31ae3c 100644 --- a/runtime/transport/procfs.c +++ b/runtime/transport/procfs.c @@ -9,6 +9,8 @@ * later version. */ +#include "../procfs.c" // for _stp_mkdir_proc_module() + #define STP_DEFAULT_BUFFERS 256 static int _stp_current_buffers = STP_DEFAULT_BUFFERS; @@ -72,7 +74,7 @@ static ssize_t _stp_ctl_write_cmd(struct file *file, const char __user *buf, siz if (get_user(type, (int __user *)buf)) return -EFAULT; -#if DEBUG_TRANSPORT > 0 +#if DEBUG_TRANS if (type < STP_MAX_CMD) _dbug("Got %s. len=%d\n", _stp_command_name[type], (int)count); #endif @@ -121,7 +123,7 @@ struct _stp_buffer { static DECLARE_WAIT_QUEUE_HEAD(_stp_ctl_wq); -#if DEBUG_TRANSPORT > 0 +#if DEBUG_TRANS static void _stp_ctl_write_dbug(int type, void *data, int len) { char buf[64]; @@ -155,7 +157,7 @@ static int _stp_ctl_write(int type, void *data, int len) struct _stp_buffer *bptr; unsigned long flags; -#if DEBUG_TRANSPORT > 0 +#if DEBUG_TRANS _stp_ctl_write_dbug(type, data, len); #endif |