2 * SPDX-License-Identifier: MIT
4 * Copyright (C) 2013-2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 #include <ust-helper.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 __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.030788 seconds and 4 git commands to generate.