convert ltt_nesting to a per_thread variable, and access it with volatile access
[ust.git] / libust / buffers.h
index 28faad79551ab8a0839c2be043875a7246a71cf8..db4b7089071e42358d18b4172da60ca2a6963ff6 100644 (file)
@@ -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;
        }
This page took 0.022402 seconds and 4 git commands to generate.