X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-events.c;fp=lttng-events.c;h=ff28c9af559aecff2d5952a6f5fe9a43e2e343fe;hb=0c95667685cf8612eb0d231883874c173b7bb5a1;hp=0512a3f3ddfda66a72cf468f8f8c4730e2e4d4a1;hpb=fb2c37799306d16fb590aebee6fad8be431264b7;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 0512a3f3..ff28c9af 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -1261,7 +1261,13 @@ static int __init lttng_events_init(void) ret = lttng_abi_init(); if (ret) goto error_abi; + ret = lttng_logger_init(); + if (ret) + goto error_logger; return 0; + +error_logger: + lttng_abi_exit(); error_abi: kmem_cache_destroy(event_cache); return ret; @@ -1273,6 +1279,7 @@ static void __exit lttng_events_exit(void) { struct lttng_session *session, *tmpsession; + lttng_logger_exit(); lttng_abi_exit(); list_for_each_entry_safe(session, tmpsession, &sessions, list) lttng_session_destroy(session);