]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/file/magic/Magdir/ctf
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / file / magic / Magdir / ctf
1
2 #--------------------------------------------------------------
3 # ctf:  file(1) magic for CTF (Common Trace Format) trace files
4 #
5 # Specs. available here: <http://www.efficios.com/ctf>
6 #--------------------------------------------------------------
7
8 # CTF trace data
9 0       lelong  0xc1fc1fc1      Common Trace Format (CTF) trace data (LE)
10 0       belong  0xc1fc1fc1      Common Trace Format (CTF) trace data (BE)
11
12 # CTF metadata (packetized)
13 0       lelong  0x75d11d57      Common Trace Format (CTF) packetized metadata (LE)
14 >35     byte    x               \b, v%d
15 >36     byte    x               \b.%d
16 0       belong  0x75d11d57      Common Trace Format (CTF) packetized metadata (BE)
17 >35     byte    x               \b, v%d
18 >36     byte    x               \b.%d
19
20 # CTF metadata (plain text)
21 0       string  /*\x20CTF\x20   Common Trace Format (CTF) plain text metadata
22 !:strength + 5                  # this is to make sure we beat C
23 >&0     regex   [0-9]+\.[0-9]+  \b, v%s