e48ef802c1cdbddc41aa9e49435e9e1b2d7f64fe
2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2013-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 #include "common/macros.h"
11 #define TRACEPOINT_CREATE_PROBES
12 #define TRACEPOINT_DEFINE
13 #include "lttng-ust-tracef-provider.h"
16 void __lttng_ust_vtracef(const char *fmt
, va_list ap
)
17 __attribute__((always_inline
, format(printf
, 1, 0)));
19 void __lttng_ust_vtracef(const char *fmt
, va_list ap
)
22 const int len
= vasprintf(&msg
, fmt
, ap
);
24 /* len does not include the final \0 */
27 lttng_ust_tracepoint_cb_lttng_ust_tracef___event(msg
, len
,
28 LTTNG_UST_CALLER_IP());
35 * FIXME: We should include <lttng/tracef.h> for the declarations here, but it
36 * fails with tracepoint magic above my paygrade.
39 void _lttng_ust_vtracef(const char *fmt
, va_list ap
)
40 __attribute__((format(printf
, 1, 0)));
41 void _lttng_ust_vtracef(const char *fmt
, va_list ap
)
43 __lttng_ust_vtracef(fmt
, ap
);
46 void _lttng_ust_tracef(const char *fmt
, ...)
47 __attribute__((format(printf
, 1, 2)));
48 void _lttng_ust_tracef(const char *fmt
, ...)
53 __lttng_ust_vtracef(fmt
, ap
);
This page took 0.035725 seconds and 3 git commands to generate.