X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=include%2Flttng%2Ftracepoint.h;h=d4733e057920c1cb38acb5fb1da09268c50d548f;hb=465a0d0493a126c09d0bf469369b8410d4bf73a9;hp=71f3e36c856af7ddffdddf23e5e8e57cc23e82fc;hpb=f641d544ea2630c5a52c0cbc5db947d34461cea7;p=lttng-ust.git diff --git a/include/lttng/tracepoint.h b/include/lttng/tracepoint.h index 71f3e36c..d4733e05 100644 --- a/include/lttng/tracepoint.h +++ b/include/lttng/tracepoint.h @@ -15,8 +15,10 @@ #include #include /* for dlopen */ #include /* for memset */ + #include /* for sdt */ #include +#include #ifdef LTTNG_UST_HAVE_SDT_INTEGRATION /* @@ -159,8 +161,9 @@ extern "C" { */ #define _DECLARE_TRACEPOINT(_provider, _name, ...) \ extern struct lttng_ust_tracepoint __tracepoint_##_provider##___##_name; \ -static inline __attribute__((always_inline, unused)) lttng_ust_notrace \ -void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__)); \ +static inline \ +void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__)) \ + __attribute__((always_inline, unused)) lttng_ust_notrace; \ static \ void __tracepoint_cb_##_provider##___##_name(_TP_ARGS_PROTO(__VA_ARGS__)) \ { \ @@ -343,8 +346,9 @@ __tracepoint__init_urcu_sym(void) } #endif -static void lttng_ust_notrace __attribute__((constructor)) -__tracepoints__init(void); +static void +__tracepoints__init(void) + lttng_ust_notrace __attribute__((constructor)); static void __tracepoints__init(void) { @@ -359,7 +363,7 @@ __tracepoints__init(void) tracepoint_dlopen_ptr = &tracepoint_dlopen; if (!tracepoint_dlopen_ptr->liblttngust_handle) tracepoint_dlopen_ptr->liblttngust_handle = - dlopen("liblttng-ust-tracepoint.so.1", RTLD_NOW | RTLD_GLOBAL); + dlopen(LTTNG_UST_TRACEPOINT_LIB_SONAME, RTLD_NOW | RTLD_GLOBAL); if (!tracepoint_dlopen_ptr->liblttngust_handle) return; __tracepoint__init_urcu_sym(); @@ -456,8 +460,9 @@ extern struct lttng_ust_tracepoint * const __stop___tracepoints_ptrs[] __lttng_ust_variable_attribute_no_sanitize_address = \ &__tracepoint_##_provider##___##_name; -static void lttng_ust_notrace __attribute__((constructor)) -__tracepoints__ptrs_init(void); +static void +__tracepoints__ptrs_init(void) + lttng_ust_notrace __attribute__((constructor)); static void __tracepoints__ptrs_init(void) { @@ -467,7 +472,7 @@ __tracepoints__ptrs_init(void) tracepoint_dlopen_ptr = &tracepoint_dlopen; if (!tracepoint_dlopen_ptr->liblttngust_handle) tracepoint_dlopen_ptr->liblttngust_handle = - dlopen("liblttng-ust-tracepoint.so.1", RTLD_NOW | RTLD_GLOBAL); + dlopen(LTTNG_UST_TRACEPOINT_LIB_SONAME, RTLD_NOW | RTLD_GLOBAL); if (!tracepoint_dlopen_ptr->liblttngust_handle) return; if (!tracepoint_destructors_syms_ptr)