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