X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-events.h;h=33cabcf9c87bd886e6381adad21ae6bbfb39dcde;hb=7b8ea3a503536c9d00f8bb14958a150cbf7370c0;hp=d3d75ad518d82da5148d9971f71b596597c5a3ec;hpb=de544ea58e0231054bb62e2c814c662b894d6e25;p=lttng-modules.git diff --git a/probes/lttng-events.h b/probes/lttng-events.h index d3d75ad5..33cabcf9 100644 --- a/probes/lttng-events.h +++ b/probes/lttng-events.h @@ -22,6 +22,7 @@ #include #include "lttng.h" #include "lttng-types.h" +#include "lttng-probe-user.h" #include "../wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */ #include "../wrapper/ringbuffer/frontend_types.h" #include "../lttng-events.h" @@ -359,7 +360,7 @@ static __used struct lttng_probe_desc TP_ID(__probe_desc___, TRACE_SYSTEM) = { #undef __string_from_user #define __string_from_user(_item, _src) \ __event_len += __dynamic_len[__dynamic_len_idx++] = \ - max_t(size_t, strlen_user(_src), 1); + max_t(size_t, lttng_strlen_user_inatomic(_src), 1); #undef TP_PROTO #define TP_PROTO(args...) args