From facb12917344afc79b4e034b623ffc75c5ea1114 Mon Sep 17 00:00:00 2001 From: Namhyung Kim Date: Wed, 7 Nov 2012 10:30:15 +0900 Subject: [PATCH] --- yaml --- r: 338973 b: refs/heads/master c: ff6f7778a66edc033044a6baa2459ce79519e571 h: refs/heads/master i: 338971: db4e4ad9b287aabdd4e4208e457e4dc473fce3a2 v: v3 --- [refs] | 2 +- trunk/tools/perf/arch/common.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4e109f1c7cae..7ccddea2b867 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: eef9ba98b9ee96f52e544b09f581c397d8cc8265 +refs/heads/master: ff6f7778a66edc033044a6baa2459ce79519e571 diff --git a/trunk/tools/perf/arch/common.c b/trunk/tools/perf/arch/common.c index 5683529135b1..3e975cb6232e 100644 --- a/trunk/tools/perf/arch/common.c +++ b/trunk/tools/perf/arch/common.c @@ -199,6 +199,13 @@ static int perf_session_env__lookup_binutils_path(struct perf_session_env *env, int perf_session_env__lookup_objdump(struct perf_session_env *env) { + /* + * For live mode, env->arch will be NULL and we can use + * the native objdump tool. + */ + if (env->arch == NULL) + return 0; + return perf_session_env__lookup_binutils_path(env, "objdump", &objdump_path); }