perf tools: Use normalized arch name for searching objdump path
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 2 Nov 2012 05:50:04 +0000 (14:50 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Nov 2012 17:03:58 +0000 (14:03 -0300)
commit48ed0ece1b8063313284812ef048b26c3c4250af
tree8ff3851d73b25874bc695477e3d85944f84e5acd
parentb84800a31502ab75c0032192de01e61a0d517f38
perf tools: Use normalized arch name for searching objdump path

David reported that perf report for i686 target data on x86_64 host
failed to work because it tried to find out cross-compiled objdump.

However objdump for x86_64 is compatible to i686 so that it doesn't need
to do it at all.  To prevent similar artifacts, normalize arch name when
comparing host and file architectures.

Reported-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: David Ahern <dsahern@gmail.com>
Tested-by: David Ahern <dsahern@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Irina Tirdea <irina.tirdea@gmail.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1351835406-15208-1-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/common.c