X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Flib%2Flttng-ust-dl%2Flttng-ust-dl.c;h=e342fb2d0ed8b85971e13e51f0da19068d66d5eb;hb=1d188af9688feee0ec4e34038113a0edccddd4ea;hp=e07136ce9d012d1c2d1d66641fc3d830349437c9;hpb=39313bf35301f186b2517e05e0bda38e138e868c;p=lttng-ust.git diff --git a/src/lib/lttng-ust-dl/lttng-ust-dl.c b/src/lib/lttng-ust-dl/lttng-ust-dl.c index e07136ce..e342fb2d 100644 --- a/src/lib/lttng-ust-dl/lttng-ust-dl.c +++ b/src/lib/lttng-ust-dl/lttng-ust-dl.c @@ -26,7 +26,7 @@ /* Include link.h last else it conflicts with ust-dlfcn. */ #include -#define TRACEPOINT_DEFINE +#define LTTNG_UST_TRACEPOINT_DEFINE #include "ust_dl.h" static void *(*__lttng_ust_plibc_dlopen)(const char *filename, int flags); @@ -118,17 +118,17 @@ void lttng_ust_dl_dlopen(void *so_base, const char *so_name, goto end; } - tracepoint(lttng_ust_dl, dlopen, + lttng_ust_tracepoint(lttng_ust_dl, dlopen, ip, so_base, resolved_path, flags, memsz, has_build_id, has_debug_link); if (has_build_id) { - tracepoint(lttng_ust_dl, build_id, + lttng_ust_tracepoint(lttng_ust_dl, build_id, ip, so_base, build_id, build_id_len); } if (has_debug_link) { - tracepoint(lttng_ust_dl, debug_link, + lttng_ust_tracepoint(lttng_ust_dl, debug_link, ip, so_base, dbg_file, crc); } @@ -180,17 +180,17 @@ void lttng_ust_dl_dlmopen(void *so_base, Lmid_t nsid, const char *so_name, goto end; } - tracepoint(lttng_ust_dl, dlmopen, + lttng_ust_tracepoint(lttng_ust_dl, dlmopen, ip, so_base, nsid, resolved_path, flags, memsz, has_build_id, has_debug_link); if (has_build_id) { - tracepoint(lttng_ust_dl, build_id, + lttng_ust_tracepoint(lttng_ust_dl, build_id, ip, so_base, build_id, build_id_len); } if (has_debug_link) { - tracepoint(lttng_ust_dl, debug_link, + lttng_ust_tracepoint(lttng_ust_dl, debug_link, ip, so_base, dbg_file, crc); } @@ -207,7 +207,7 @@ void *dlopen(const char *filename, int flags) void *handle; handle = _lttng_ust_dl_libc_dlopen(filename, flags); - if (__tracepoint_ptrs_registered && handle) { + if (lttng_ust_tracepoint_ptrs_registered && handle) { struct link_map *p = NULL; int ret; @@ -227,7 +227,7 @@ void *dlmopen(Lmid_t nsid, const char *filename, int flags) void *handle; handle = _lttng_ust_dl_libc_dlmopen(nsid, filename, flags); - if (__tracepoint_ptrs_registered && handle) { + if (lttng_ust_tracepoint_ptrs_registered && handle) { struct link_map *p = NULL; int ret; @@ -248,12 +248,12 @@ int dlclose(void *handle) { int ret; - if (__tracepoint_ptrs_registered) { + if (lttng_ust_tracepoint_ptrs_registered) { struct link_map *p = NULL; ret = dlinfo(handle, RTLD_DI_LINKMAP, &p); if (ret != -1 && p != NULL && p->l_addr != 0) { - tracepoint(lttng_ust_dl, dlclose, + lttng_ust_tracepoint(lttng_ust_dl, dlclose, LTTNG_UST_CALLER_IP(), (void *) p->l_addr); }