X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=libust%2Fbuffers.h;h=db4b7089071e42358d18b4172da60ca2a6963ff6;hb=015d08b66af5ebd10665aa90f5426930e56c540d;hp=28faad79551ab8a0839c2be043875a7246a71cf8;hpb=1e8c9e7b5464b708572fe0d28f9d8bf572784e45;p=ust.git diff --git a/libust/buffers.h b/libust/buffers.h index 28faad7..db4b708 100644 --- a/libust/buffers.h +++ b/libust/buffers.h @@ -356,7 +356,7 @@ static __inline__ int ltt_reserve_slot(struct ust_trace *trace, * Perform retryable operations. */ /* FIXME: make this rellay per cpu? */ - if (unlikely(__get_cpu_var(ltt_nesting) > 4)) { + if (unlikely(LOAD_SHARED(ltt_nesting) > 4)) { local_inc(&buf->events_lost); return -EPERM; }