ctf 878 B

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