projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce trigger hash table with tracer token as key
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notification-thread.c
diff --git
a/src/bin/lttng-sessiond/notification-thread.c
b/src/bin/lttng-sessiond/notification-thread.c
index 917cec5a2500f56f8f12350b74db94e423dc6928..1a7a16119972b3cebc45e7b3098e03a83fc81bef 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread.c
+++ b/
src/bin/lttng-sessiond/notification-thread.c
@@
-367,6
+367,10
@@
void fini_thread_state(struct notification_thread_state *state)
ret = cds_lfht_destroy(state->triggers_by_name_uid_ht, NULL);
assert(!ret);
}
ret = cds_lfht_destroy(state->triggers_by_name_uid_ht, NULL);
assert(!ret);
}
+ if (state->trigger_tokens_ht) {
+ ret = cds_lfht_destroy(state->trigger_tokens_ht, NULL);
+ assert(!ret);
+ }
/*
* Must be destroyed after all channels have been destroyed.
* See comment in struct lttng_session_trigger_list.
/*
* Must be destroyed after all channels have been destroyed.
* See comment in struct lttng_session_trigger_list.
@@
-490,6
+494,12
@@
int init_thread_state(struct notification_thread_handle *handle,
goto error;
}
goto error;
}
+ state->trigger_tokens_ht = cds_lfht_new(DEFAULT_HT_SIZE,
+ 1, 0, CDS_LFHT_AUTO_RESIZE | CDS_LFHT_ACCOUNTING, NULL);
+ if (!state->trigger_tokens_ht) {
+ goto error;
+ }
+
CDS_INIT_LIST_HEAD(&state->tracer_event_sources_list);
state->executor = action_executor_create(handle);
CDS_INIT_LIST_HEAD(&state->tracer_event_sources_list);
state->executor = action_executor_create(handle);
This page took
0.023546 seconds
and
4
git commands to generate.