[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20190304181448.bnuwf2gvtxdgs7tg@two.firstfloor.org>
Date: Mon, 4 Mar 2019 10:14:48 -0800
From: Andi Kleen <andi@...stfloor.org>
To: Jiri Olsa <jolsa@...hat.com>
Cc: Andi Kleen <andi@...stfloor.org>, acme@...nel.org,
jolsa@...nel.org, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org, Andi Kleen <ak@...ux.intel.com>
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 perf.data
on x86 it won't try to decode the ARM instructions as x86
instructions.
It also assumes that noone parses 64bit x86 on 32bit,
but I guess that's ok.
-Andi
Powered by blists - more mailing lists