Add probe registry
[lttng-modules.git] / ltt-events.c
index 603170682a822dea830830cf0ec155e5651b124b..0e34f6f8b0585bdc3f192467a4e5f75096f33d66 100644 (file)
@@ -124,7 +124,6 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session,
                       transport_name);
                goto notransport;
        }
-       printk("got transport\n");
        chan = kzalloc(sizeof(struct ltt_channel), GFP_KERNEL);
        if (!chan)
                goto nomem;
@@ -133,7 +132,6 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session,
        chan->chan = transport->ops.channel_create("[lttng]", session, buf_addr,
                        subbuf_size, num_subbuf, switch_timer_interval,
                        read_timer_interval);
-       printk("chan create %p\n", chan->chan);
        if (!chan->chan)
                goto create_error;
        chan->ops = &transport->ops;
@@ -286,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;
@@ -302,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.023893 seconds and 4 git commands to generate.