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/tp/lttng-ust-tracef.h>
17 __attribute__((format(printf
, 1, 2)))
18 void _lttng_ust_tracef(const char *fmt
, ...);
21 __attribute__((format(printf
, 1, 0)))
22 void _lttng_ust_vtracef(const char *fmt
, va_list ap
);
24 #define tracef(fmt, ...) \
26 LTTNG_STAP_PROBEV(tracepoint_lttng_ust_tracef, event, ## __VA_ARGS__); \
27 if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
28 _lttng_ust_tracef(fmt, ## __VA_ARGS__); \
31 #define vtracef(fmt, ap) \
33 if (caa_unlikely(__tracepoint_lttng_ust_tracef___event.state)) \
34 _lttng_ust_vtracef(fmt, ap); \
40 #endif /* _LTTNG_UST_TRACEF_H */
This page took 0.030361 seconds and 4 git commands to generate.