Try to read the text metadata if babeltrace failed
authorJulien Desfossez <jdesfossez@efficios.com>
Mon, 22 Feb 2016 17:54:20 +0000 (12:54 -0500)
committerAntoine Busque <abusque@efficios.com>
Wed, 24 Feb 2016 23:22:55 +0000 (18:22 -0500)
commit0349f942481df04132720dee2fb9cde0e0982501
tree9e211e9577897b98c1e7d1f013c4b4b6adcd78cb
parent2dca9c55bde598d0d75433cf619ec781bd91f589
Try to read the text metadata if babeltrace failed

Reading a trace with babeltrace -o ctf-metadata fails if the metadata is
in text format instead of binary format. When we detect this error, try
to read the metadata with 'cat'.

Also, the traces generated with the CTFWriter API can only write strings
in the environment section for now, so we add optional quotes around the
version regex to allow extracting the version in these traces.

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
lttnganalyses/cli/command.py
This page took 0.024874 seconds and 5 git commands to generate.