lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 4 Mar 2019 10:14:48 -0800
From:   Andi Kleen <>
To:     Jiri Olsa <>
Cc:     Andi Kleen <>,,,,, Andi Kleen <>
Subject: Re: [PATCH v3 02/11] perf tools script: Support insn output for
 normal samples

> > +	uname(&uts);
> > +	if (!strcmp(uts.machine, session->header.env.arch) ||
> > +		(!strcmp(uts.machine, "x86_64") &&
> > +		 !strcmp(session->header.env.arch, "i386")))
> why is this check and native_arch bool necessary?
> i386 data will be overed by arch/x86

This is so that e.g. if someone displays an ARM
on x86 it won't try to decode the ARM instructions as x86

It also assumes that noone parses 64bit x86 on 32bit,
but I guess that's ok.


Powered by blists - more mailing lists