projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs: Add documentation explaining the meaning of "internal" events
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
save.c
diff --git
a/src/bin/lttng-sessiond/save.c
b/src/bin/lttng-sessiond/save.c
index 0a1393a4bd90267bb9d5d041af3f6b40e007595b..851b9ac5b2f27171dd5bc06fb0ec8b7ad4f02e44 100644
(file)
--- a/
src/bin/lttng-sessiond/save.c
+++ b/
src/bin/lttng-sessiond/save.c
@@
-705,6
+705,10
@@
int save_ust_events(struct config_writer *writer,
cds_lfht_for_each_entry(events->ht, &iter.iter, node, node) {
event = caa_container_of(node, struct ltt_ust_event, node);
cds_lfht_for_each_entry(events->ht, &iter.iter, node, node) {
event = caa_container_of(node, struct ltt_ust_event, node);
+ if (event->internal) {
+ /* Internal events must not be exposed to clients */
+ continue;
+ }
ret = save_ust_event(writer, event);
if (ret) {
rcu_read_unlock();
ret = save_ust_event(writer, event);
if (ret) {
rcu_read_unlock();
@@
-1382,11
+1386,7
@@
int save_domains(struct config_writer *writer, struct ltt_session *session)
goto end;
}
goto end;
}
- rcu_read_lock();
- agent_count =
- lttng_ht_get_count(session->ust_session->agents);
- rcu_read_unlock();
-
+ agent_count = lttng_ht_get_count(session->ust_session->agents);
if (agent_count > 0) {
ret = config_writer_open_element(writer,
config_element_domain);
if (agent_count > 0) {
ret = config_writer_open_element(writer,
config_element_domain);
@@
-1409,9
+1409,6
@@
int save_domains(struct config_writer *writer, struct ltt_session *session)
}
}
}
}
- if (session->ust_session) {
- }
-
/* /domains */
ret = config_writer_close_element(writer);
if (ret) {
/* /domains */
ret = config_writer_close_element(writer);
if (ret) {
This page took
0.02649 seconds
and
5
git commands to generate.