X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-sessiond%2Fmain.c;h=0a6319f357ac99c2ddf8d3ddf33efe6bf8de7189;hb=4dbd54a14d42213c0b80fa6d797ddd416cd0330d;hp=c6ecb2737f2db2ef7e1c9efe0263b7f1d635242b;hpb=94c55f179ebc4f2846c655e1eba6252e677e0e95;p=lttng-tools.git diff --git a/lttng-sessiond/main.c b/lttng-sessiond/main.c index c6ecb2737..0a6319f35 100644 --- a/lttng-sessiond/main.c +++ b/lttng-sessiond/main.c @@ -2093,9 +2093,7 @@ static int list_lttng_ust_global_events(char *channel_name, tmp[i].type = LTTNG_EVENT_FUNCTION; break; case LTTNG_UST_TRACEPOINT_LOGLEVEL: - /* TODO */ - ret = -LTTCOMM_NOT_IMPLEMENTED; - goto error; + tmp[i].type = LTTNG_EVENT_TRACEPOINT_LOGLEVEL; break; } i++; @@ -2567,6 +2565,12 @@ error: /* * Command LTTNG_ENABLE_EVENT processed by the client thread. + * + * TODO: currently, both events and loglevels are kept within the same + * namespace for UST global registry/app registery, so if an event + * happen to have the same name as the loglevel (very unlikely though), + * and an attempt is made to enable/disable both in the same session, + * the first to be created will be the only one allowed to exist. */ static int cmd_enable_event(struct ltt_session *session, int domain, char *channel_name, struct lttng_event *event)