xref: /freebsd/contrib/file/magic/Magdir/ctf (revision 48c779cdecb5f803e5fe5d761987e976ca9609db)
1b6cee71dSXin LI
2b6cee71dSXin LI#--------------------------------------------------------------
3b6cee71dSXin LI# ctf:  file(1) magic for CTF (Common Trace Format) trace files
4b6cee71dSXin LI#
5*48c779cdSXin LI# Specs. available here: <https://www.efficios.com/ctf>
6b6cee71dSXin LI#--------------------------------------------------------------
7b6cee71dSXin LI
8b6cee71dSXin LI# CTF trace data
9b6cee71dSXin LI0	lelong	0xc1fc1fc1	Common Trace Format (CTF) trace data (LE)
10b6cee71dSXin LI0	belong	0xc1fc1fc1	Common Trace Format (CTF) trace data (BE)
11b6cee71dSXin LI
12b6cee71dSXin LI# CTF metadata (packetized)
13b6cee71dSXin LI0	lelong	0x75d11d57	Common Trace Format (CTF) packetized metadata (LE)
14b6cee71dSXin LI>35	byte	x		\b, v%d
15b6cee71dSXin LI>36	byte	x		\b.%d
16b6cee71dSXin LI0	belong	0x75d11d57	Common Trace Format (CTF) packetized metadata (BE)
17b6cee71dSXin LI>35	byte	x		\b, v%d
18b6cee71dSXin LI>36	byte	x		\b.%d
19b6cee71dSXin LI
20b6cee71dSXin LI# CTF metadata (plain text)
21b6cee71dSXin LI0	string	/*\x20CTF\x20   Common Trace Format (CTF) plain text metadata
22b6cee71dSXin LI!:strength + 5			# this is to make sure we beat C
23b6cee71dSXin LI>&0	regex	[0-9]+\.[0-9]+	\b, v%s
24