Function attributes should be located after the declaration.
Change-Id: I88688e01ca54f525c4c20173c5e8e36b5f2740fa
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* @largest_align: largest alignment within data payload types
* @ip: caller ip address
*/
-static inline lttng_ust_notrace
+static inline
void lttng_ust_lib_ring_buffer_ctx_init(struct lttng_ust_lib_ring_buffer_ctx *ctx,
void *client_priv, size_t data_size, int largest_align,
- void *ip);
+ void *ip)
+ lttng_ust_notrace;
static inline
void lttng_ust_lib_ring_buffer_ctx_init(struct lttng_ust_lib_ring_buffer_ctx *ctx,
void *client_priv, size_t data_size, int largest_align,
* @align_drift: object offset from an "alignment"-aligned address.
* @size_of_type: Must be non-zero, power of 2.
*/
-static inline lttng_ust_notrace
-unsigned int lttng_ust_lib_ring_buffer_align(size_t align_drift, size_t size_of_type);
+static inline
+unsigned int lttng_ust_lib_ring_buffer_align(size_t align_drift, size_t size_of_type)
+ lttng_ust_notrace;
static inline
unsigned int lttng_ust_lib_ring_buffer_align(size_t align_drift, size_t size_of_type)
{
* @align_drift: object offset from an "alignment"-aligned address.
* @size_of_type: Must be non-zero, power of 2.
*/
-static inline lttng_ust_notrace
-unsigned int lttng_ust_lib_ring_buffer_align(size_t align_drift, size_t size_of_type);
+static inline
+unsigned int lttng_ust_lib_ring_buffer_align(size_t align_drift, size_t size_of_type)
+ lttng_ust_notrace;
static inline
unsigned int lttng_ust_lib_ring_buffer_align(size_t align_drift, size_t size_of_type)
{
end: \
tp_rcu_read_unlock(); \
} \
-static inline lttng_ust_notrace \
+static inline \
void __tracepoint_register_##_provider##___##_name(char *name, \
- void (*func)(void), void *data); \
+ void (*func)(void), void *data) \
+ lttng_ust_notrace; \
static inline \
void __tracepoint_register_##_provider##___##_name(char *name, \
void (*func)(void), void *data) \
__tracepoint_probe_register(name, func, data, \
__tracepoint_##_provider##___##_name.signature); \
} \
-static inline lttng_ust_notrace \
+static inline \
void __tracepoint_unregister_##_provider##___##_name(char *name, \
- void (*func)(void), void *data); \
+ void (*func)(void), void *data) \
+ lttng_ust_notrace; \
static inline \
void __tracepoint_unregister_##_provider##___##_name(char *name, \
void (*func)(void), void *data) \
}
#ifndef _LGPL_SOURCE
-static inline void lttng_ust_notrace
-__tracepoint__init_urcu_sym(void);
+static inline void
+__tracepoint__init_urcu_sym(void)
+ lttng_ust_notrace;
static inline void
__tracepoint__init_urcu_sym(void)
{
"tp_rcu_dereference_sym"));
}
#else
-static inline void lttng_ust_notrace
-__tracepoint__init_urcu_sym(void);
+static inline void
+__tracepoint__init_urcu_sym(void)
+ lttng_ust_notrace;
static inline void
__tracepoint__init_urcu_sym(void)
{
/* Reset all macros within TRACEPOINT_EVENT */
#include <lttng/ust-tracepoint-event-reset.h>
-static inline lttng_ust_notrace
-void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void);
+static inline
+void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void)
+ lttng_ust_notrace;
static inline
void _TP_COMBINE_TOKENS(__tracepoint_provider_mismatch_, TRACEPOINT_PROVIDER)(void)
{
#define _TRACEPOINT_EVENT_INSTANCE(_provider, _template, _name, _args) \
__tracepoint_provider_mismatch_##_provider();
-static inline lttng_ust_notrace
-void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void);
+static inline
+void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void)
+ lttng_ust_notrace;
static inline
void _TP_COMBINE_TOKENS(__tracepoint_provider_check_, TRACEPOINT_PROVIDER)(void)
{
#undef _TRACEPOINT_EVENT_CLASS
#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
-static inline lttng_ust_notrace \
-size_t __event_get_size__##_provider##___##_name(size_t *__dynamic_len, _TP_ARGS_DATA_PROTO(_args)); \
+static inline \
+size_t __event_get_size__##_provider##___##_name(size_t *__dynamic_len, _TP_ARGS_DATA_PROTO(_args)) \
+ lttng_ust_notrace; \
static inline \
size_t __event_get_size__##_provider##___##_name(size_t *__dynamic_len, _TP_ARGS_DATA_PROTO(_args)) \
{ \
#undef _TRACEPOINT_EVENT_CLASS
#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
-static inline lttng_ust_notrace \
-size_t __event_get_align__##_provider##___##_name(_TP_ARGS_PROTO(_args)); \
+static inline \
+size_t __event_get_align__##_provider##___##_name(_TP_ARGS_PROTO(_args)) \
+ lttng_ust_notrace; \
static inline \
size_t __event_get_align__##_provider##___##_name(_TP_ARGS_PROTO(_args)) \
{ \
*/
#undef _TRACEPOINT_EVENT_CLASS
#define _TRACEPOINT_EVENT_CLASS(_provider, _name, _args, _fields) \
-static lttng_ust_notrace \
-void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)); \
+static \
+void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)) \
+ lttng_ust_notrace; \
static \
void __event_probe__##_provider##___##_name(_TP_ARGS_DATA_PROTO(_args)) \
{ \
* lttng_ust_lib_ring_buffer_align_ctx - Align context offset on "alignment"
* @ctx: ring buffer context.
*/
-static inline lttng_ust_notrace
+static inline
void lttng_ust_lib_ring_buffer_align_ctx(struct lttng_ust_lib_ring_buffer_ctx *ctx,
- size_t alignment);
+ size_t alignment)
+ lttng_ust_notrace;
static inline
void lttng_ust_lib_ring_buffer_align_ctx(struct lttng_ust_lib_ring_buffer_ctx *ctx,
size_t alignment)
* lib_ring_buffer_check_config() returns 0 on success.
* Used internally to check for valid configurations at channel creation.
*/
-static inline lttng_ust_notrace
+static inline
int lib_ring_buffer_check_config(const struct lttng_ust_lib_ring_buffer_config *config,
unsigned int switch_timer_interval,
- unsigned int read_timer_interval);
+ unsigned int read_timer_interval)
+ lttng_ust_notrace;
static inline
int lib_ring_buffer_check_config(const struct lttng_ust_lib_ring_buffer_config *config,
unsigned int switch_timer_interval,