Skip to contentSkip to conversation

Add support for CTF trace files

RFC New Philippe Proulx 1 participant 1 message Aug 22, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

RFC 1/1 Add support for CTF trace files

In reply to a message not in the archive
---
 magic/Magdir/ctf  | 18 ++++++++++++++++++
 magic/Makefile.am |  1 +
 2 files changed, 19 insertions(+)
 create mode 100644 magic/Magdir/ctf
magic/Magdir/ctf new file +18 -0
new file mode 100644
index 0000000..1848422
@@ -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
magic/Makefile.am +1 -0
index 31b8de2..b83b02b 100644
@@ -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 \
Signature · 1 line
1.8.3.4