[lttng-dev] [RFC] CTF files support
Philippe Proulx
eeppeliteloop at gmail.com
Thu Aug 22 17:38:16 EDT 2013
This patch adds support for CTF trace files. CTF is a trace format
that's gaining popularity amongst trace producers. It's the format used
by the LTTng tracer <http://lttng.org/>.
Details about the format can be found here: <http://www.efficios.com/ctf>.
The CTF metadata can also be found in an alternative text form. In this
case, it starts with exactly "/* CTF " followed by the version number.
Looks like this currently:
/* CTF 1.8
Of course it's easy to write a magic file for file(1) to detect it.
However, the CTF metadata language looks very much like the C language
(it has lots of shared keywords with C) so file(1) will detect it as
a C file first.
Knowing this, would you accept a patch merging the C and CTF text
metadata magics? This would be similar to Mach-O and Java having common
detection code in "cafebabe".
Thank you,
Phil
Philippe Proulx (1):
Add support for CTF trace files
magic/Magdir/ctf | 18 ++++++++++++++++++
magic/Makefile.am | 1 +
2 files changed, 19 insertions(+)
create mode 100644 magic/Magdir/ctf
--
1.8.3.4
More information about the lttng-dev
mailing list