projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: missing rcu_read_lock when calling trace_ust_find_agent()
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
trace-ust.c
diff --git
a/src/bin/lttng-sessiond/trace-ust.c
b/src/bin/lttng-sessiond/trace-ust.c
index 1f6fd52736abe4f8abde125fdc092601d491ec46..339148ae9cdb8fa8da1121bd39d335b5f2b89141 100644
(file)
--- a/
src/bin/lttng-sessiond/trace-ust.c
+++ b/
src/bin/lttng-sessiond/trace-ust.c
@@
-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.
/*
* 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)
*/
struct agent *trace_ust_find_agent(struct ltt_ust_session *session,
enum lttng_domain_type domain_type)
This page took
0.025 seconds
and
5
git commands to generate.