summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-02-25 09:04:19 -0600
committerDavid Smith <dsmith@redhat.com>2009-02-25 09:04:19 -0600
commit64c962fed5f50a7f82f8b570e000cdcff757862b (patch)
tree9f60ad3c67c7719f9448f3355e600eefa27c009c /runtime/transport/control.c
parent23c1c6557af76d506a28bcb3e864d3500e6dc565 (diff)
downloadsystemtap-steved-64c962fed5f50a7f82f8b570e000cdcff757862b.tar.gz
systemtap-steved-64c962fed5f50a7f82f8b570e000cdcff757862b.tar.xz
systemtap-steved-64c962fed5f50a7f82f8b570e000cdcff757862b.zip
More cleanup.
2009-02-25 David Smith <dsmith@redhat.com> * debug.h: Removed unused variable '_stp_transport_state'. * print_new.c (stp_print_flush): Ifdef'ed out call to utt_reserve(). * runtime.h: Added _stp_warn() prototype. * transport/control.c: Includes control.h, mempool.c, and symbols.c. Renamed '_stp_attached' to '_stp_ctl_attached'. * transport/control.h: Removed _stp_pool_q declaration. * transport/debugfs.c (_stp_register_ctl_channel_fs): Uses _stp_get_module_dir(). * transport/transport.c: Cleanup. * transport/transport.h: Ditto.
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index edde244d..7626305a 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -9,6 +9,10 @@
* later version.
*/
+#include "control.h"
+#include "../mempool.c"
+#include "symbols.c"
+
static _stp_mempool_t *_stp_pool_q;
static struct list_head _stp_ctl_ready_q;
static DEFINE_SPINLOCK(_stp_ctl_ready_lock);
@@ -192,7 +196,7 @@ static ssize_t _stp_ctl_read_cmd(struct file *file, char __user *buf,
static int _stp_ctl_open_cmd(struct inode *inode, struct file *file)
{
- if (_stp_attached)
+ if (_stp_ctl_attached)
return -1;
_stp_attach();
return 0;
@@ -200,7 +204,7 @@ static int _stp_ctl_open_cmd(struct inode *inode, struct file *file)
static int _stp_ctl_close_cmd(struct inode *inode, struct file *file)
{
- if (_stp_attached)
+ if (_stp_ctl_attached)
_stp_detach();
return 0;
}