Commit 17cd95b
committed
lttng: Make text metadata detection more lenient
Text CTF metadata files are supposed to start with "/* CTF " followed by
the CTF version. https://diamon.org/ctf/v1.8.3/#spec7.1
However, to support opening traces that don't comply with the
specification check for some common metadata keywords at the
beginning of the metadata file when validating the trace. This will
allow to open such traces with Trace Compass.
fixes #298
Signed-off-by: Bernd Hufmann <bernd.hufmann@ericsson.com>1 parent a55a408 commit 17cd95b
2 files changed
Lines changed: 9 additions & 1 deletion
File tree
- ctf/org.eclipse.tracecompass.ctf.core/src/org/eclipse/tracecompass
- ctf/core/trace
- internal/ctf/core/event/metadata
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
93 | 97 | | |
94 | 98 | | |
95 | 99 | | |
| |||
349 | 353 | | |
350 | 354 | | |
351 | 355 | | |
352 | | - | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
0 commit comments