X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-abi.c;h=a57e5e9f2acb699c899bba2fc2e1ccc5797be053;hb=aa5d4c0dc4ba7a1f48a8a5e7e19888addc4548f0;hp=77e5e9859e7f51099964f4002b932faf98531984;hpb=aba7d7fc4ec0cf2828ed50b22d6171074635e856;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 77e5e985..a57e5e9f 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -56,6 +56,7 @@ #include #include #include +#include #include /* @@ -1727,6 +1728,12 @@ int __init lttng_abi_init(void) wrapper_vmalloc_sync_all(); lttng_clock_ref(); + + ret = lttng_tp_mempool_init(); + if (ret) { + goto error; + } + lttng_proc_dentry = proc_create_data("lttng", S_IRUSR | S_IWUSR, NULL, <tng_fops, NULL); @@ -1739,6 +1746,7 @@ int __init lttng_abi_init(void) return 0; error: + lttng_tp_mempool_destroy(); lttng_clock_unref(); return ret; } @@ -1746,6 +1754,7 @@ error: /* No __exit annotation because used by init error path too. */ void lttng_abi_exit(void) { + lttng_tp_mempool_destroy(); lttng_clock_unref(); if (lttng_proc_dentry) remove_proc_entry("lttng", NULL);