diff options
author | David Smith <dsmith@redhat.com> | 2009-02-25 09:04:19 -0600 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2009-02-25 09:04:19 -0600 |
commit | 64c962fed5f50a7f82f8b570e000cdcff757862b (patch) | |
tree | 9f60ad3c67c7719f9448f3355e600eefa27c009c /runtime/transport/debugfs.c | |
parent | 23c1c6557af76d506a28bcb3e864d3500e6dc565 (diff) | |
download | systemtap-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/debugfs.c')
-rw-r--r-- | runtime/transport/debugfs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/transport/debugfs.c b/runtime/transport/debugfs.c index 7de57335..7a08982a 100644 --- a/runtime/transport/debugfs.c +++ b/runtime/transport/debugfs.c @@ -23,13 +23,14 @@ static struct dentry *_stp_cmd_file = NULL; static int _stp_register_ctl_channel_fs(void) { - if (_stp_utt == NULL) { - errk("_expected _stp_utt to be set.\n"); + struct dentry *module_dir = _stp_get_module_dir(); + if (module_dir == NULL) { + errk("no module directory found.\n"); return -1; } /* create [debugfs]/systemtap/module_name/.cmd */ - _stp_cmd_file = debugfs_create_file(".cmd", 0600, _stp_utt->dir, + _stp_cmd_file = debugfs_create_file(".cmd", 0600, module_dir, NULL, &_stp_ctl_fops_cmd); if (_stp_cmd_file == NULL) { errk("Error creating systemtap debugfs entries.\n"); |