1 // SPDX-FileCopyrightText: 2013-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 // SPDX-License-Identifier: MIT
5 #ifndef _LTTNG_UST_TRACEF_H
6 #define _LTTNG_UST_TRACEF_H
8 #include <lttng/ust-api-compat.h>
9 #include <lttng/tp/lttng-ust-tracef.h>
16 void lttng_ust__tracef(const char *fmt
, ...)
17 __attribute__((format(printf
, 1, 2)));
20 void lttng_ust__vtracef(const char *fmt
, va_list ap
)
21 __attribute__((format(printf
, 1, 0)));
23 #define lttng_ust_tracef(fmt, ...) \
25 LTTNG_UST_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
26 if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracef___event.state)) \
27 lttng_ust__tracef(fmt, ## __VA_ARGS__); \
30 #define lttng_ust_vtracef(fmt, ap) \
32 if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracef___event.state)) \
33 lttng_ust__vtracef(fmt, ap); \
36 #if LTTNG_UST_COMPAT_API(0)
37 #define tracef lttng_ust_tracef
44 #endif /* _LTTNG_UST_TRACEF_H */
This page took 0.031512 seconds and 4 git commands to generate.