X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Ftracef.c;h=ea98e43eeed198a3588ddb21d3668954383da810;hb=152ba2822ce0dc11947169d2fffe6e0a26a02573;hp=dcae3be746f45350d5d17b9decf5dae90e70de2b;hpb=5dadb547a77d4b03cd18908963d08c27b780b839;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);