transport_name);
goto notransport;
}
- printk("got transport\n");
chan = kzalloc(sizeof(struct ltt_channel), GFP_KERNEL);
if (!chan)
goto nomem;
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;
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;
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);