X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=libust%2Fbuffers.h;h=db4b7089071e42358d18b4172da60ca2a6963ff6;hb=015d08b66af5ebd10665aa90f5426930e56c540d;hp=28faad79551ab8a0839c2be043875a7246a71cf8;hpb=719569e4967369c8a2e952346250f3bf97fec5f4;p=lttng-ust.git diff --git a/libust/buffers.h b/libust/buffers.h index 28faad79..db4b7089 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; }