projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Force usage of assert() condition when NDEBUG is defined
[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 0b39a5a3e61cb489c8340ef51a12926a3a76959a..c15e356ada4187f7e044897a3d0a23ae0d48791c 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread.c
+++ b/
src/bin/lttng-sessiond/notification-thread.c
@@
-50,7
+50,7
@@
void notification_thread_handle_destroy(
goto end;
}
goto end;
}
-
assert
(cds_list_empty(&handle->cmd_queue.list));
+
LTTNG_ASSERT
(cds_list_empty(&handle->cmd_queue.list));
pthread_mutex_destroy(&handle->cmd_queue.lock);
sem_destroy(&handle->ready);
pthread_mutex_destroy(&handle->cmd_queue.lock);
sem_destroy(&handle->ready);
@@
-335,48
+335,48
@@
void fini_thread_state(struct notification_thread_state *state)
if (state->client_socket_ht) {
ret = handle_notification_thread_client_disconnect_all(state);
if (state->client_socket_ht) {
ret = handle_notification_thread_client_disconnect_all(state);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
ret = cds_lfht_destroy(state->client_socket_ht, NULL);
ret = cds_lfht_destroy(state->client_socket_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->client_id_ht) {
ret = cds_lfht_destroy(state->client_id_ht, NULL);
}
if (state->client_id_ht) {
ret = cds_lfht_destroy(state->client_id_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->triggers_ht) {
ret = handle_notification_thread_trigger_unregister_all(state);
}
if (state->triggers_ht) {
ret = handle_notification_thread_trigger_unregister_all(state);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
ret = cds_lfht_destroy(state->triggers_ht, NULL);
ret = cds_lfht_destroy(state->triggers_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->channel_triggers_ht) {
ret = cds_lfht_destroy(state->channel_triggers_ht, NULL);
}
if (state->channel_triggers_ht) {
ret = cds_lfht_destroy(state->channel_triggers_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->channel_state_ht) {
ret = cds_lfht_destroy(state->channel_state_ht, NULL);
}
if (state->channel_state_ht) {
ret = cds_lfht_destroy(state->channel_state_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->notification_trigger_clients_ht) {
ret = cds_lfht_destroy(state->notification_trigger_clients_ht,
NULL);
}
if (state->notification_trigger_clients_ht) {
ret = cds_lfht_destroy(state->notification_trigger_clients_ht,
NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->channels_ht) {
ret = cds_lfht_destroy(state->channels_ht, NULL);
}
if (state->channels_ht) {
ret = cds_lfht_destroy(state->channels_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->sessions_ht) {
ret = cds_lfht_destroy(state->sessions_ht, NULL);
}
if (state->sessions_ht) {
ret = cds_lfht_destroy(state->sessions_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->triggers_by_name_uid_ht) {
ret = cds_lfht_destroy(state->triggers_by_name_uid_ht, NULL);
}
if (state->triggers_by_name_uid_ht) {
ret = cds_lfht_destroy(state->triggers_by_name_uid_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->trigger_tokens_ht) {
ret = cds_lfht_destroy(state->trigger_tokens_ht, NULL);
}
if (state->trigger_tokens_ht) {
ret = cds_lfht_destroy(state->trigger_tokens_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
/*
* Must be destroyed after all channels have been destroyed.
}
/*
* Must be destroyed after all channels have been destroyed.
@@
-384,14
+384,14
@@
void fini_thread_state(struct notification_thread_state *state)
*/
if (state->session_triggers_ht) {
ret = cds_lfht_destroy(state->session_triggers_ht, NULL);
*/
if (state->session_triggers_ht) {
ret = cds_lfht_destroy(state->session_triggers_ht, NULL);
-
assert
(!ret);
+
LTTNG_ASSERT
(!ret);
}
if (state->notification_channel_socket >= 0) {
notification_channel_socket_destroy(
state->notification_channel_socket);
}
}
if (state->notification_channel_socket >= 0) {
notification_channel_socket_destroy(
state->notification_channel_socket);
}
-
assert
(cds_list_empty(&state->tracer_event_sources_list));
+
LTTNG_ASSERT
(cds_list_empty(&state->tracer_event_sources_list));
if (state->executor) {
action_executor_destroy(state->executor);
if (state->executor) {
action_executor_destroy(state->executor);
@@
-610,7
+610,7
@@
static bool fd_is_event_notification_source(const struct notification_thread_sta
{
struct notification_event_tracer_event_source_element *source_element;
{
struct notification_event_tracer_event_source_element *source_element;
-
assert
(domain);
+
LTTNG_ASSERT
(domain);
cds_list_for_each_entry(source_element,
&state->tracer_event_sources_list, node) {
cds_list_for_each_entry(source_element,
&state->tracer_event_sources_list, node) {
This page took
0.025209 seconds
and
4
git commands to generate.