X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=liblttng-ust%2Ftracef.c;h=ea98e43eeed198a3588ddb21d3668954383da810;hb=a211b293bc6a610bed73a60006967663a30e4931;hp=9ef063ce754c4bdcc05edf199c47794cb9afc066;hpb=641c659aa0558ea68008e96c64abe9629d540ae7;p=lttng-ust.git diff --git a/liblttng-ust/tracef.c b/liblttng-ust/tracef.c index 9ef063ce..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 @@ -39,7 +40,8 @@ void _lttng_ust_tracef(const char *fmt, ...) /* len does not include the final \0 */ if (len < 0) goto end; - __tracepoint_cb_lttng_ust_tracef___event(msg, len); + __tracepoint_cb_lttng_ust_tracef___event(msg, len, + LTTNG_UST_CALLER_IP()); free(msg); end: va_end(ap);