summaryrefslogtreecommitdiffstats
path: root/runtime/procfs.c
diff options
context:
space:
mode:
authorDavid Smith <dsmith@redhat.com>2009-02-12 14:52:40 -0600
committerDavid Smith <dsmith@redhat.com>2009-02-12 14:52:40 -0600
commit8df79eb6046f2fa2e1aed736b2adac4eaaf3a2f5 (patch)
treeb2b9e5fe2cf982ea4d9be6e1c40c1ea73467f31e /runtime/procfs.c
parent152d6935cc4db354c067df5ec16d6a7da3113477 (diff)
downloadsystemtap-steved-8df79eb6046f2fa2e1aed736b2adac4eaaf3a2f5.tar.gz
systemtap-steved-8df79eb6046f2fa2e1aed736b2adac4eaaf3a2f5.tar.xz
systemtap-steved-8df79eb6046f2fa2e1aed736b2adac4eaaf3a2f5.zip
Cleanup. Renamed _stp_{un}lock_debugfs() to _stp_{un}lock_transport_dir().
2009-02-12 David Smith <dsmith@redhat.com> * transport.c (_stp_lock_transport_dir): Renamed from _stp_lock_debugfs(), since on older kernels this actually uses procfs. (_stp_unlock_transport_dir): Renamed from _stp_unlock_debugfs(), since on older kernels this actually uses procfs. (_stp_lock_transport_dir): Changed _stp_lock_debugfs()/_stp_unlock_debugfs() to _stp_lock_transport_dir()/_stp_unlock_transport_dir(). * transport.h: Ditto. Also added _stp_transport_init() prototype. * utt.c (utt_remove_root): Changed _stp_lock_debugfs()/_stp_unlock_debugfs() to _stp_lock_transport_dir()/_stp_unlock_transport_dir(). * relayfs.c (_stp_remove_relay_root): Ditto. 2009-02-12 David Smith <dsmith@redhat.com> * procfs.c (_stp_rmdir_proc_module): Changed _stp_lock_debugfs()/_stp_unlock_debugfs() to _stp_lock_transport_dir()/_stp_unlock_transport_dir(). (_stp_mkdir_proc_module): Ditto.
Diffstat (limited to 'runtime/procfs.c')
-rw-r--r--runtime/procfs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/procfs.c b/runtime/procfs.c
index 4011ebfc..afedb4f4 100644
--- a/runtime/procfs.c
+++ b/runtime/procfs.c
@@ -45,7 +45,7 @@ static void _stp_rmdir_proc_module(void)
}
if (_stp_proc_stap) {
- if (!_stp_lock_debugfs()) {
+ if (!_stp_lock_transport_dir()) {
errk("Unable to lock transport directory.\n");
return;
}
@@ -62,7 +62,7 @@ static void _stp_rmdir_proc_module(void)
_stp_proc_stap = NULL;
}
- _stp_unlock_debugfs();
+ _stp_unlock_transport_dir();
}
}
@@ -76,7 +76,7 @@ static int _stp_mkdir_proc_module(void)
if (_stp_proc_root == NULL) {
struct nameidata nd;
- if (!_stp_lock_debugfs()) {
+ if (!_stp_lock_transport_dir()) {
errk("Unable to lock transport directory.\n");
goto done;
}
@@ -90,7 +90,7 @@ static int _stp_mkdir_proc_module(void)
/* doesn't exist, so create it */
_stp_proc_stap = proc_mkdir ("systemtap", NULL);
if (_stp_proc_stap == NULL) {
- _stp_unlock_debugfs();
+ _stp_unlock_transport_dir();
goto done;
}
} else {
@@ -110,7 +110,7 @@ static int _stp_mkdir_proc_module(void)
_stp_proc_root->owner = THIS_MODULE;
#endif
- _stp_unlock_debugfs();
+ _stp_unlock_transport_dir();
}
done:
return (_stp_proc_root) ? 1 : 0;