All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] CTF files support
@ 2013-08-22 21:38 Philippe Proulx
  0 siblings, 0 replies; only message in thread
From: Philippe Proulx @ 2013-08-22 21:38 UTC (permalink / raw)
  To: file; +Cc: lttng-dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-22 21:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-22 21:38 [RFC] CTF files support Philippe Proulx

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.