X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=liblttng-ust-dl%2Flttng-ust-dl.c;h=1394ce1963fce5e31ec53dc41e1b39ebf21237c3;hb=465a0d0493a126c09d0bf469369b8410d4bf73a9;hp=2e4c3c01f9b6dcb0e88d573993a4add6c787baa3;hpb=ae4b659d95f8dab9f2aa4b890d6937d7d5375f07;p=lttng-ust.git diff --git a/liblttng-ust-dl/lttng-ust-dl.c b/liblttng-ust-dl/lttng-ust-dl.c index 2e4c3c01..1394ce19 100644 --- a/liblttng-ust-dl/lttng-ust-dl.c +++ b/liblttng-ust-dl/lttng-ust-dl.c @@ -14,11 +14,13 @@ #include #include -#include +#include #include -#include +#include #include "usterr-signal-safe.h" +#include "../liblttng-ust/ust-events-internal.h" + /* Include link.h last else it conflicts with ust-dlfcn. */ #include @@ -32,6 +34,15 @@ static void *(*__lttng_ust_plibc_dlmopen)(Lmid_t nsid, const char *filename, #endif static int (*__lttng_ust_plibc_dlclose)(void *handle); +static +void _lttng_ust_dl_init(void) + __attribute__((constructor)); +static +void _lttng_ust_dl_init(void) +{ + ust_err_init(); +} + static void *_lttng_ust_dl_libc_dlopen(const char *filename, int flags) {