Function attributes should be located after the declaration.
Change-Id: Ie3ef444bf150824b3a57e8485417f019cecc61be
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
}
#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)
{
__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)
{
* function in liblttng-ust that is overridden by the one in
* liblttng-ust-wrapper-libc when it's preloaded.
*/
-void lttng_ust_libc_wrapper_malloc_init(void);
+void lttng_ust_libc_wrapper_malloc_init(void)
+ __attribute__((constructor));
#endif
/* Reset all macros within TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
-static void lttng_ust_notrace __attribute__((constructor))
-_TP_COMBINE_TOKENS(__lttng_events_init__, TRACEPOINT_PROVIDER)(void);
+static void
+_TP_COMBINE_TOKENS(__lttng_events_init__, TRACEPOINT_PROVIDER)(void)
+ lttng_ust_notrace __attribute__((constructor));
static void
_TP_COMBINE_TOKENS(__lttng_events_init__, TRACEPOINT_PROVIDER)(void)
{
return counter->ops->counter_clear(counter->counter, dimension_indexes);
}
-static __attribute__((constructor))
+static
+void ustctl_init(void)
+ __attribute__((constructor));
+static
void ustctl_init(void)
{
ust_err_init();
#endif
static int (*__lttng_ust_plibc_dlclose)(void *handle);
-static __attribute__((constructor))
+static
+void _lttng_ust_dl_init(void)
+ __attribute__((constructor));
+static
void _lttng_ust_dl_init(void)
{
ust_err_init();
asm volatile ("" : : "m" (URCU_TLS(malloc_nesting)));
}
-__attribute__((constructor))
void lttng_ust_libc_wrapper_malloc_init(void)
{
/* Initialization already done */
* sessiond monitoring thread: monitor presence of global and per-user
* sessiond by polling the application common named pipe.
*/
-void __attribute__((constructor)) lttng_ust_init(void)
+static
+void lttng_ust_init(void)
+ __attribute__((constructor));
+static
+void lttng_ust_init(void)
{
struct timespec constructor_timeout;
sigset_t sig_all_blocked, orig_parent_mask;
};
static
-void __attribute__((constructor)) _lttng_ust_urcu_init(void);
+void _lttng_ust_urcu_init(void)
+ __attribute__((constructor));
static
void __attribute__((destructor)) lttng_ust_urcu_exit(void);