X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Ftracef.c;h=ea98e43eeed198a3588ddb21d3668954383da810;hb=171fcc6fd03e3f5787b3d0ee8aedc8cb9bcc6f17;hp=dcae3be746f45350d5d17b9decf5dae90e70de2b;hpb=1bf9a78810308942841c732f5e9b7530f0bb3ca0;p=lttng-ust.git diff --git a/liblttng-ust/tracef.c b/liblttng-ust/tracef.c index dcae3be7..ea98e43e 100644 --- a/liblttng-ust/tracef.c +++ b/liblttng-ust/tracef.c @@ -23,6 +23,7 @@ #define _GNU_SOURCE #define _LGPL_SOURCE #include +#include #define TRACEPOINT_CREATE_PROBES #define TRACEPOINT_DEFINE @@ -40,7 +41,7 @@ void _lttng_ust_tracef(const char *fmt, ...) if (len < 0) goto end; __tracepoint_cb_lttng_ust_tracef___event(msg, len, - __builtin_return_address(0)); + LTTNG_UST_CALLER_IP()); free(msg); end: va_end(ap);