event_cache = KMEM_CACHE(ltt_event, 0);
if (!event_cache)
return -ENOMEM;
- ret = ltt_debugfs_abi_init();
+ ret = lttng_abi_init();
if (ret)
goto error_abi;
return 0;
{
struct ltt_session *session, *tmpsession;
- ltt_debugfs_abi_exit();
+ lttng_abi_exit();
list_for_each_entry_safe(session, tmpsession, &sessions, list)
ltt_session_destroy(session);
kmem_cache_destroy(event_cache);
void ltt_transport_unregister(struct ltt_transport *transport);
void synchronize_trace(void);
-int ltt_debugfs_abi_init(void);
-void ltt_debugfs_abi_exit(void);
+int lttng_abi_init(void);
+void lttng_abi_exit(void);
int ltt_probe_register(struct lttng_probe_desc *desc);
void ltt_probe_unregister(struct lttng_probe_desc *desc);
*/
#include <linux/module.h>
-#include <linux/debugfs.h>
#include <linux/proc_fs.h>
#include <linux/anon_inodes.h>
#include <linux/file.h>
/*
* This is LTTng's own personal way to create a system call as an external
- * module. We use ioctl() on /sys/kernel/debug/lttng.
+ * module. We use ioctl() on /proc/lttng.
*/
-static struct dentry *lttng_dentry;
static struct proc_dir_entry *lttng_proc_dentry;
static const struct file_operations lttng_fops;
static const struct file_operations lttng_session_fops;
#endif
};
-int __init ltt_debugfs_abi_init(void)
+int __init lttng_abi_init(void)
{
int ret = 0;
wrapper_vmalloc_sync_all();
- lttng_dentry = debugfs_create_file("lttng", S_IWUSR, NULL, NULL,
- <tng_fops);
- if (IS_ERR(lttng_dentry))
- lttng_dentry = NULL;
-
lttng_proc_dentry = proc_create_data("lttng", S_IWUSR, NULL,
<tng_fops, NULL);
- if (!lttng_dentry && !lttng_proc_dentry) {
+ if (lttng_proc_dentry) {
printk(KERN_ERR "Error creating LTTng control file\n");
ret = -ENOMEM;
goto error;
return ret;
}
-void __exit ltt_debugfs_abi_exit(void)
+void __exit lttng_abi_exit(void)
{
- if (lttng_dentry)
- debugfs_remove(lttng_dentry);
if (lttng_proc_dentry)
remove_proc_entry("lttng", NULL);
}