X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-abi.c;h=c45c10f42c747fa4d553d08d18900b5bca1a9e08;hb=362fee9413ea3b73587f53f2574ce6b5efaea14e;hp=901e58c0aa11ad95e5fda808e1e15e8c02b688b4;hpb=67e891fbe09d8bf262c8aefe15467446a20721db;p=lttng-modules.git diff --git a/lttng-abi.c b/lttng-abi.c index 901e58c0..c45c10f4 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -55,6 +55,7 @@ #include #include #include +#include #include /* @@ -1722,6 +1723,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); @@ -1734,6 +1741,7 @@ int __init lttng_abi_init(void) return 0; error: + lttng_tp_mempool_destroy(); lttng_clock_unref(); return ret; } @@ -1741,6 +1749,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);