ltt_event_create should return error values
[lttng-ust.git] / liblttng-ust / tracepoint.c
index e62b11c73f23117c9275bed67bfbafc40f0d02f1..1e252ce39d859fc10cc1766757db9ace908da7fe 100644 (file)
 
 #define _LGPL_SOURCE
 #include <errno.h>
-#include <lttng/tracepoint.h>
 #include <stdint.h>
 #include <stddef.h>
+
 #include <urcu/arch.h>
 #include <urcu-bp.h>
 #include <urcu/hlist.h>
 #include <urcu/uatomic.h>
 #include <urcu/compiler.h>
+
+#include <lttng/tracepoint.h>
+
+#include <usterr-signal-safe.h>
 #include <helper.h>
 
-#include <lttng/usterr-signal-safe.h>
 #include "tracepoint-internal.h"
 #include "ltt-tracer-core.h"
 #include "jhash.h"
@@ -492,7 +495,7 @@ void tracepoint_probe_update_all(void)
  * Returns 0 if current not found.
  * Returns 1 if current found.
  *
- * Called with tracepoint mutex held
+ * Called with UST lock held
  */
 int lib_get_iter_tracepoints(struct tracepoint_iter *iter)
 {
@@ -524,7 +527,7 @@ int lib_get_iter_tracepoints(struct tracepoint_iter *iter)
  * Returns whether a next tracepoint has been found (1) or not (0).
  * Will return the first tracepoint in the range if the input tracepoint is
  * NULL.
- * Called with tracepoint mutex held.
+ * Called with UST lock held.
  */
 int tracepoint_get_iter_range(struct tracepoint * const **tracepoint,
        struct tracepoint * const *begin, struct tracepoint * const *end)
@@ -541,7 +544,7 @@ int tracepoint_get_iter_range(struct tracepoint * const **tracepoint,
 }
 
 /*
- * Called with tracepoint mutex held.
+ * Called with UST lock held.
  */
 static void tracepoint_get_iter(struct tracepoint_iter *iter)
 {
@@ -570,7 +573,7 @@ void tracepoint_iter_next(struct tracepoint_iter *iter)
        /*
         * iter->tracepoint may be invalid because we blindly incremented it.
         * Make sure it is valid by marshalling on the tracepoints, getting the
-        * tracepoints from following modules if necessary.
+        * tracepoints from following library if necessary.
         */
        tracepoint_get_iter(iter);
 }
This page took 0.024816 seconds and 4 git commands to generate.