X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=ltt-events.c;h=f3f7ab78152bb31ac624cbe0f3553d2c292d92a5;hb=1c25284c690cd38b71789c4024089d28de21caea;hp=7c7cda6525a4250379521ddf40b4a4bcce389dc2;hpb=57a13317407af307da09f519799a860f88ae7246;p=lttng-modules.git diff --git a/ltt-events.c b/ltt-events.c index 7c7cda65..f3f7ab78 100644 --- a/ltt-events.c +++ b/ltt-events.c @@ -263,10 +263,18 @@ EXPORT_SYMBOL_GPL(ltt_transport_unregister); 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); @@ -275,6 +283,7 @@ static void __exit ltt_events_exit(void) { 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);