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

Christos Zoulas christos at zoulas.com
Sun Mar 10 21:13:53 UTC 2024


Committed, thanks!

christos

> On Mar 6, 2024, at 3:49 AM, Ben Dooks <ben.dooks at codethink.co.uk> wrote:
> 
> 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
> 
> -- 
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file



More information about the File mailing list