Enforce documented RCU preconditions with assertions
[lttng-tools.git] / src / bin / lttng-sessiond / trace-ust.cpp
index 4be27f89716aed38223e4242dab603345bc093bd..f3303efd7c1a55980541e39253cfb5b7d1e34b41 100644 (file)
@@ -167,6 +167,7 @@ struct ltt_ust_channel *trace_ust_find_channel_by_name(struct lttng_ht *ht,
        struct lttng_ht_node_str *node;
        struct lttng_ht_iter iter;
 
+       ASSERT_RCU_READ_LOCKED();
        /*
         * If we receive an empty string for channel name, it means the
         * default channel name is requested.
@@ -204,6 +205,7 @@ struct ltt_ust_event *trace_ust_find_event(struct lttng_ht *ht,
 
        LTTNG_ASSERT(name);
        LTTNG_ASSERT(ht);
+       ASSERT_RCU_READ_LOCKED();
 
        key.name = name;
        key.filter = filter;
This page took 0.023259 seconds and 4 git commands to generate.