lkml.org 
[lkml]   [2019]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2019-03-04 19:15    [W:2.186 / U:0.276 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site