Add ctf_enum_auto() for autoincrementing enumeration values
[lttng-modules.git] / lttng-events.c
index bcf59da1df5d8916ae7e85c01f9e5a6639743d25..ef934374b7442845d6bcb4e3d7fb798742eb8eda 100644 (file)
@@ -1955,8 +1955,19 @@ int _lttng_enum_statedump(struct lttng_session *session,
                        if (ret)
                                goto end;
                }
+               ret = lttng_metadata_printf(session, "\"");
+               if (ret)
+                       goto end;
+
+               if (entry->options.is_auto) {
+                       ret = lttng_metadata_printf(session, ",\n");
+                       if (ret)
+                               goto end;
+                       continue;
+               }
+
                ret = lttng_metadata_printf(session,
-                               "\" = ");
+                               " = ");
                if (ret)
                        goto end;
                if (entry->start.signedness)
This page took 0.022785 seconds and 4 git commands to generate.