Define max nesting count constant
[lttng-modules.git] / lib / ringbuffer / frontend.h
index 909abc2dc80c714b9aa1372f1a41625c54b2e6ab..ba96d9a6a215e09f4975e56e45500629dab48e1e 100644 (file)
@@ -51,6 +51,9 @@
 /* Internal helpers */
 #include <wrapper/ringbuffer/frontend_internal.h>
 
+/* Max ring buffer nesting count, see lib_ring_buffer_get_cpu(). */
+#define RING_BUFFER_MAX_NESTING 4
+
 /* Buffer creation/removal and setup operations */
 
 /*
@@ -168,7 +171,7 @@ static inline
 int lib_ring_buffer_is_finalized(const struct lib_ring_buffer_config *config,
                                 struct lib_ring_buffer *buf)
 {
-       int finalized = ACCESS_ONCE(buf->finalized);
+       int finalized = READ_ONCE(buf->finalized);
        /*
         * Read finalized before counters.
         */
This page took 0.024009 seconds and 4 git commands to generate.