snapshot written in 2 folders if it takes more than 1 second to record
With "lttng snapshot record" on a session with UST et kernel buffers, if the writing of one domain takes longer than 1 second, another folder is created when writing the data of the second domain.
Reproduced with master.
lttng create --snapshot
lttng enable-channel -k bla --subbuf-size 8M --num-subbuf 8
lttng enable-event -k -a -c bla
lttng enable-event -u -a
... wait for the kernel ring-buffer to be full...
lttng snapshot record
If the disk takes longer than 1 second to write 64MB, the resulting snapshot looks like this:
This is confusing because we expect all the traces of one snapshot to be in the same folder, especially when we record lots of them it becomes a mess to link the ones that belong together.