Re: why is perf-report asking for objdump path?

From: Namhyung Kim
Date: Thu Nov 01 2012 - 21:12:20 EST


Hi David,

On Thu, 01 Nov 2012 15:09:46 -0600, David Ahern wrote:
> $ /tmp/pbuild/perf report -i perf.data --kallsyms kallsyms
> Error:
> Please install objdump for i686.
> You can add it to PATH, set CROSS_COMPILE or override the default
> using --objdump.
>
> And worse it refuses to run without it. If I was running the annotate
> command I could understand the request -- but this is the report path.

Agreed. It should not affect when no annotation was used.

>
> Furthermore objdump exists:
>
> $ which objdump
> /usr/bin/objdump
>
> yes, the file was created on an i686 target, but I should be able to
> use the x86_64 host objdump if I were doing an annotate.

Could you test the below patch? It'd great if you can do it in a
reverse situation - using x86_64 target on i686 host.