Add probe registry
[lttng-modules.git] / ltt-events.c
index b8dbec69a2dfb40cb8d38c73092fbf81389c913c..0e34f6f8b0585bdc3f192467a4e5f75096f33d66 100644 (file)
@@ -284,10 +284,15 @@ static int __init ltt_events_init(void)
        event_cache = KMEM_CACHE(ltt_event, 0);
        if (!event_cache)
                return -ENOMEM;
-       ret = ltt_debugfs_abi_init();
+       ret = ltt_probes_init();
        if (ret)
                goto error;
+       ret = ltt_debugfs_abi_init();
+       if (ret)
+               goto error_abi;
        return 0;
+error_abi:
+       ltt_probes_exit();
 error:
        kmem_cache_destroy(event_cache);
        return ret;
@@ -300,6 +305,7 @@ static void __exit ltt_events_exit(void)
        struct ltt_session *session, *tmpsession;
 
        ltt_debugfs_abi_exit();
+       ltt_probes_exit();
        list_for_each_entry_safe(session, tmpsession, &sessions, list)
                ltt_session_destroy(session);
        kmem_cache_destroy(event_cache);
This page took 0.03058 seconds and 4 git commands to generate.