Fix: missing rcu_read_lock when calling trace_ust_find_agent()
[lttng-tools.git] / src / bin / lttng-sessiond / trace-ust.c
index 1f6fd52736abe4f8abde125fdc092601d491ec46..339148ae9cdb8fa8da1121bd39d335b5f2b89141 100644 (file)
@@ -202,6 +202,9 @@ error:
 /*
  * Lookup an agent in the session agents hash table by domain type and return
  * the object if found else NULL.
+ *
+ * RCU read side lock must be acquired before calling and only released
+ * once the agent is no longer in scope or being used.
  */
 struct agent *trace_ust_find_agent(struct ltt_ust_session *session,
                enum lttng_domain_type domain_type)
This page took 0.023852 seconds and 4 git commands to generate.