2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2013-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
7 #ifndef _LTTNG_UST_TRACEF_H
8 #define _LTTNG_UST_TRACEF_H
10 #include <lttng/ust-api-compat.h>
11 #include <lttng/tp/lttng-ust-tracef.h>
18 void lttng_ust__tracef(const char *fmt
, ...)
19 __attribute__((format(printf
, 1, 2)));
22 void lttng_ust__vtracef(const char *fmt
, va_list ap
)
23 __attribute__((format(printf
, 1, 0)));
25 #define lttng_ust_tracef(fmt, ...) \
27 LTTNG_UST_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
28 if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracef___event.state)) \
29 lttng_ust__tracef(fmt, ## __VA_ARGS__); \
32 #define lttng_ust_vtracef(fmt, ap) \
34 if (caa_unlikely(lttng_ust_tracepoint_lttng_ust_tracef___event.state)) \
35 lttng_ust__vtracef(fmt, ap); \
38 #if LTTNG_UST_COMPAT_API(0)
39 #define tracef lttng_ust_tracef
46 #endif /* _LTTNG_UST_TRACEF_H */
This page took 0.041258 seconds and 4 git commands to generate.