X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=liblttng-ust-dl%2Flttng-ust-dl.c;fp=liblttng-ust-dl%2Flttng-ust-dl.c;h=8f2faac00630717ee96bf3fa1e23681075e151ca;hb=171fcc6fd03e3f5787b3d0ee8aedc8cb9bcc6f17;hp=e4cb42068ed1548ab10eaa4a1b850b2a19d45eb8;hpb=1bf9a78810308942841c732f5e9b7530f0bb3ca0;p=lttng-ust.git diff --git a/liblttng-ust-dl/lttng-ust-dl.c b/liblttng-ust-dl/lttng-ust-dl.c index e4cb4206..8f2faac0 100644 --- a/liblttng-ust-dl/lttng-ust-dl.c +++ b/liblttng-ust-dl/lttng-ust-dl.c @@ -27,6 +27,7 @@ #include #include +#include #include "usterr-signal-safe.h" /* Include link.h last else it conflicts with ust-dlfcn. */ @@ -136,7 +137,7 @@ void *dlopen(const char *filename, int flag) ret = dlinfo(handle, RTLD_DI_LINKMAP, &p); if (ret != -1 && p != NULL && p->l_addr != 0) { lttng_ust_dl_dlopen((void *) p->l_addr, p->l_name, - __builtin_return_address(0)); + LTTNG_UST_CALLER_IP()); } } @@ -152,7 +153,7 @@ int dlclose(void *handle) ret = dlinfo(handle, RTLD_DI_LINKMAP, &p); if (ret != -1 && p != NULL && p->l_addr != 0) { tracepoint(lttng_ust_dl, dlclose, - __builtin_return_address(0), + LTTNG_UST_CALLER_IP(), (void *) p->l_addr); } }