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