From 98f0ea565abd496f7f4f065f652456101370751e Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 26 Mar 2007 16:14:44 +0000 Subject: 2007-03-26 Martin Hunt * 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. --- runtime/transport/control.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'runtime/transport/control.c') 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: -- cgit