[lttng-dev] [RFC] Add support for CTF trace files

Philippe Proulx eeppeliteloop at gmail.com
Thu Aug 22 17:38:17 EDT 2013


---
 magic/Magdir/ctf  | 18 ++++++++++++++++++
 magic/Makefile.am |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 magic/Magdir/ctf

diff --git a/magic/Magdir/ctf b/magic/Magdir/ctf
new file mode 100644
index 0000000..1848422
--- /dev/null
+++ b/magic/Magdir/ctf
@@ -0,0 +1,18 @@
+
+#--------------------------------------------------------------
+# ctf:  file(1) magic for CTF (Common Trace Format) trace files
+#
+# Specs. available here: <http://www.efficios.com/ctf>
+#--------------------------------------------------------------
+
+# CTF trace data
+0	lelong	0xc1fc1fc1	Common Trace Format (CTF) trace data (LE)
+0	belong	0xc1fc1fc1	Common Trace Format (CTF) trace data (BE)
+
+# CTF metadata
+0	lelong	0x75d11d57	Common Trace Format (CTF) metadata (LE)
+>35	byte	x		\b, v%d
+>36	byte	x		\b.%d
+0	belong	0x75d11d57	Common Trace Format (CTF) metadata (BE)
+>35	byte	x		\b, v%d
+>36	byte	x		\b.%d
diff --git a/magic/Makefile.am b/magic/Makefile.am
index 31b8de2..b83b02b 100644
--- a/magic/Makefile.am
+++ b/magic/Makefile.am
@@ -54,6 +54,7 @@ $(MAGIC_FRAGMENT_DIR)/console \
 $(MAGIC_FRAGMENT_DIR)/convex \
 $(MAGIC_FRAGMENT_DIR)/cracklib \
 $(MAGIC_FRAGMENT_DIR)/ctags \
+$(MAGIC_FRAGMENT_DIR)/ctf \
 $(MAGIC_FRAGMENT_DIR)/cubemap \
 $(MAGIC_FRAGMENT_DIR)/cups \
 $(MAGIC_FRAGMENT_DIR)/dact \
-- 
1.8.3.4




More information about the lttng-dev mailing list