projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs: document the meaning of a ust app channel key set to 0
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notification-thread-events.c
diff --git
a/src/bin/lttng-sessiond/notification-thread-events.c
b/src/bin/lttng-sessiond/notification-thread-events.c
index 5e53b79a1661a458e5d4bada395350b152f6d725..6777fd6dd1f3b34f228981bd4b9aaf30a27dd07e 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread-events.c
+++ b/
src/bin/lttng-sessiond/notification-thread-events.c
@@
-88,7
+88,7
@@
struct notification_client {
uid_t uid;
gid_t gid;
/*
uid_t uid;
gid_t gid;
/*
- * Indicates if the credentials and versions of the client ha
s
been
+ * Indicates if the credentials and versions of the client ha
ve
been
* checked.
*/
bool validated;
* checked.
*/
bool validated;
@@
-295,7
+295,7
@@
unsigned long lttng_condition_buffer_usage_hash(
val = condition->threshold_ratio.value * (double) UINT32_MAX;
hash ^= hash_key_u64(&val, lttng_ht_seed);
val = condition->threshold_ratio.value * (double) UINT32_MAX;
hash ^= hash_key_u64(&val, lttng_ht_seed);
- } else if (condition->threshold_
ratio
.set) {
+ } else if (condition->threshold_
bytes
.set) {
uint64_t val;
val = condition->threshold_bytes.value;
uint64_t val;
val = condition->threshold_bytes.value;
@@
-469,7
+469,7
@@
int evaluate_condition_for_client(struct lttng_trigger *trigger,
ret = evaluate_condition(condition, &evaluation, state, NULL,
last_sample, channel_info->capacity);
if (ret) {
ret = evaluate_condition(condition, &evaluation, state, NULL,
last_sample, channel_info->capacity);
if (ret) {
- WARN("[notification-thread] Fatal error occured while evaluating a newly subscribed-to condition");
+ WARN("[notification-thread] Fatal error occur
r
ed while evaluating a newly subscribed-to condition");
goto end;
}
goto end;
}
@@
-565,6
+565,7
@@
int notification_thread_client_subscribe(struct notification_client *client,
client, state)) {
WARN("[notification-thread] Evaluation of a condition on client subscription failed, aborting.");
ret = -1;
client, state)) {
WARN("[notification-thread] Evaluation of a condition on client subscription failed, aborting.");
ret = -1;
+ free(client_list_element);
goto end_unlock;
}
goto end_unlock;
}
@@
-1275,7
+1276,7
@@
int handle_notification_thread_command(
struct notification_thread_command *cmd;
/* Read event_fd to put it back into a quiescent state. */
struct notification_thread_command *cmd;
/* Read event_fd to put it back into a quiescent state. */
- ret = read(
handle->cmd_queue.event_fd
, &counter, sizeof(counter));
+ ret = read(
lttng_pipe_get_readfd(handle->cmd_queue.event_pipe)
, &counter, sizeof(counter));
if (ret == -1) {
goto error;
}
if (ret == -1) {
goto error;
}
This page took
0.024424 seconds
and
4
git commands to generate.