diff options
author | Irina Tirdea <irina.tirdea@intel.com> | 2012-10-15 19:33:38 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-10-24 12:20:11 -0400 |
commit | 68e94f4eb56d92ccb617a98fcac5e575702ec4fd (patch) | |
tree | e032cf52fc4cc66c845a1985bd5c58706e869706 /tools/perf/builtin-report.c | |
parent | feb8ada4ea5540ee986b23abd95597118729704c (diff) |
perf tools: Try to find cross-built objdump path
As we have architecture information of saved perf.data file, we can try
to find cross-built objdump path.
The triplets include support for Android (arm, x86 and mips
architectures).
Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
Originally-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1350344020-8071-5-git-send-email-irina.tirdea@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 5104a40af563..90d1162bb8b8 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "util/thread.h" | 33 | #include "util/thread.h" |
34 | #include "util/sort.h" | 34 | #include "util/sort.h" |
35 | #include "util/hist.h" | 35 | #include "util/hist.h" |
36 | #include "arch/common.h" | ||
36 | 37 | ||
37 | #include <linux/bitmap.h> | 38 | #include <linux/bitmap.h> |
38 | 39 | ||
@@ -672,6 +673,12 @@ int cmd_report(int argc, const char **argv, const char *prefix __maybe_unused) | |||
672 | has_br_stack = perf_header__has_feat(&session->header, | 673 | has_br_stack = perf_header__has_feat(&session->header, |
673 | HEADER_BRANCH_STACK); | 674 | HEADER_BRANCH_STACK); |
674 | 675 | ||
676 | if (!objdump_path) { | ||
677 | ret = perf_session_env__lookup_objdump(&session->header.env); | ||
678 | if (ret) | ||
679 | goto error; | ||
680 | } | ||
681 | |||
675 | if (sort__branch_mode == -1 && has_br_stack) | 682 | if (sort__branch_mode == -1 && has_br_stack) |
676 | sort__branch_mode = 1; | 683 | sort__branch_mode = 1; |
677 | 684 | ||