Revert "Revert "Update loglevel ABI""
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 8304de8be394ca034f0726f622fdebe865c7c5df..8e4afb00ba0827295d86f53ed728763eb5ebe463 100644 (file)
@@ -2031,8 +2031,15 @@ static int list_lttng_ust_global_events(char *channel_name,
                case LTTNG_UST_FUNCTION:
                        tmp[i].type = LTTNG_EVENT_FUNCTION;
                        break;
-               case LTTNG_UST_TRACEPOINT_LOGLEVEL:
-                       tmp[i].type = LTTNG_EVENT_TRACEPOINT_LOGLEVEL;
+               }
+               strncpy(tmp[i].loglevel, uevent->attr.loglevel, LTTNG_SYMBOL_NAME_LEN);
+               tmp[i].loglevel[LTTNG_SYMBOL_NAME_LEN - 1] = '\0';
+               switch (uevent->attr.loglevel_type) {
+               case LTTNG_UST_LOGLEVEL:
+                       tmp[i].type = LTTNG_EVENT_LOGLEVEL;
+                       break;
+               case LTTNG_UST_LOGLEVEL_ONLY:
+                       tmp[i].type = LTTNG_EVENT_LOGLEVEL_ONLY;
                        break;
                }
                i++;
This page took 0.024273 seconds and 5 git commands to generate.