X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fevent.c;h=24dd292a4e3fdd5f86e48cf0ae11762938766694;hp=4bc8fb90df81f6b722d5ef50d282a6c4cf15d597;hb=51f1a3b9df60b6951e8748961893cb4129cf4832;hpb=a027b2d2edced8011ef674f88146253715952af7 diff --git a/src/bin/lttng-sessiond/event.c b/src/bin/lttng-sessiond/event.c index 4bc8fb90d..24dd292a4 100644 --- a/src/bin/lttng-sessiond/event.c +++ b/src/bin/lttng-sessiond/event.c @@ -51,6 +51,15 @@ static void init_syscalls_kernel_event(struct lttng_event *event) static int loglevel_match(struct ltt_ust_event *uevent, enum lttng_ust_loglevel_type log_type, int loglevel) { + /* + * For the loglevel type ALL, the loglevel is set to -1 but the event + * received by the session daemon is 0 which does not match the negative + * value in the existing event. + */ + if (log_type == LTTNG_UST_LOGLEVEL_ALL) { + loglevel = -1; + } + if (uevent == NULL || uevent->attr.loglevel_type != log_type || uevent->attr.loglevel != loglevel) { goto no_match;