summaryrefslogtreecommitdiffstats
path: root/runtime/transport/control.c
diff options
context:
space:
mode:
authorhunt <hunt>2007-03-26 16:14:44 +0000
committerhunt <hunt>2007-03-26 16:14:44 +0000
commit98f0ea565abd496f7f4f065f652456101370751e (patch)
tree36afe165449e979086eba5824fbe185c0e07ded6 /runtime/transport/control.c
parent4d452cb34d0d15d88ef6b04ce8407ad106447d98 (diff)
downloadsystemtap-steved-98f0ea565abd496f7f4f065f652456101370751e.tar.gz
systemtap-steved-98f0ea565abd496f7f4f065f652456101370751e.tar.xz
systemtap-steved-98f0ea565abd496f7f4f065f652456101370751e.zip
2007-03-26 Martin Hunt <hunt@redhat.com>
* symbols.c (_stp_do_module): If a module has no symbols, just return NULL instead of an errorcode. * control.c, procfs.c, relayfs.c, transport.c, utt.c, utt.h: Revert back to using systemtap/modulename instead of systemtap_pid.
Diffstat (limited to 'runtime/transport/control.c')
-rw-r--r--runtime/transport/control.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/runtime/transport/control.c b/runtime/transport/control.c
index 3ad3e309..2924edab 100644
--- a/runtime/transport/control.c
+++ b/runtime/transport/control.c
@@ -206,7 +206,6 @@ _stp_ctl_read_cmd (struct file *file, char __user *buf, size_t count, loff_t *pp
return len;
}
-
static struct file_operations _stp_ctl_fops_cmd = {
.owner = THIS_MODULE,
.read = _stp_ctl_read_cmd,
@@ -240,11 +239,10 @@ static int _stp_register_ctl_channel (void)
}
- /* create [debugfs]/systemtap_[pid]/cmd */
- _stp_cmd_file = debugfs_create_file("cmd", 0444, _stp_utt->utt_tree_root, NULL, &_stp_ctl_fops_cmd);
+ /* create [debugfs]/systemtap/module_name/cmd */
+ _stp_cmd_file = debugfs_create_file("cmd", 0444, _stp_utt->dir, NULL, &_stp_ctl_fops_cmd);
if (_stp_cmd_file == NULL)
goto err0;
-
return 0;
err0: