projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enforce documented RCU preconditions with assertions
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
trace-ust.cpp
diff --git
a/src/bin/lttng-sessiond/trace-ust.cpp
b/src/bin/lttng-sessiond/trace-ust.cpp
index 4be27f89716aed38223e4242dab603345bc093bd..f3303efd7c1a55980541e39253cfb5b7d1e34b41 100644
(file)
--- a/
src/bin/lttng-sessiond/trace-ust.cpp
+++ b/
src/bin/lttng-sessiond/trace-ust.cpp
@@
-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;
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.
/*
* 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);
LTTNG_ASSERT(name);
LTTNG_ASSERT(ht);
+ ASSERT_RCU_READ_LOCKED();
key.name = name;
key.filter = filter;
key.name = name;
key.filter = filter;
This page took
0.097028 seconds
and
5
git commands to generate.