X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttng-events.c;h=a706cbdb4d5ff2e12557f8c4a729243ebe79362e;hb=216b6baae40c76965e000d77ee9f3b17a0d7553c;hp=bcf59da1df5d8916ae7e85c01f9e5a6639743d25;hpb=601252cfa07fa29f15c769fe3f4cf4419311d6f9;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index bcf59da1..a706cbdb 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -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) @@ -2402,7 +2413,7 @@ int64_t measure_clock_offset(void) /* Disable interrupts to increase correlation precision. */ local_irq_save(flags); monotonic[0] = trace_clock_read64(); - getnstimeofday(&rts); + getnstimeofday(&rts); monotonic[1] = trace_clock_read64(); local_irq_restore(flags);