[File] [PATCH v2] magic: add linux-perf v1 and v2 type

Ben Dooks ben.dooks at codethink.co.uk
Wed Mar 6 08:49:23 UTC 2024


v2: fixed spelling mistake of version and the bequad for v2 big-endian
---
 magic/Magdir/linux | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/magic/Magdir/linux b/magic/Magdir/linux
index a740d68c..2ef24044 100644
--- a/magic/Magdir/linux
+++ b/magic/Magdir/linux
@@ -938,3 +938,12 @@
 >124	ubyte		!0x79
 >>124	ubyte		>0x40			\b, english y is %c
 #>764	ubyte		x			\b, english Y is %c
+
+# From: Ben Dooks <ben.dooks at codethink.co.uk>
+# URL: https://github.com/torvalds/linux/blob/master/tools/perf/util/header.c
+# perf files for v1 and v2
+0	string		PERFFILE		Linux perf recording, version 1
+
+0	lequad		0x32454c4946524550	Linux perf recording, version 2. little endian
+
+0	bequad		0x32454c4946524550	Linux perf recording, version 2. big endian
\ No newline at end of file
-- 
2.37.2.352.g3c44437643



More information about the File mailing list