static int __init ltt_events_init(void)
{
+ int ret;
+
event_cache = KMEM_CACHE(ltt_event, 0);
if (!event_cache)
return -ENOMEM;
+ ret = ltt_debugfs_abi_init();
+ if (ret)
+ goto error;
return 0;
+error:
+ kmem_cache_destroy(event_cache);
+ return ret;
}
module_init(ltt_events_init);
{
struct ltt_session *session, *tmpsession;
+ ltt_debugfs_abi_exit();
list_for_each_entry_safe(session, tmpsession, &sessions, list)
ltt_session_destroy(session);
kmem_cache_destroy(event_cache);