diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-06-04 16:55:19 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-06-04 16:55:19 +0200 |
commit | 58cc1a9e3b11a84e66c4d3a4cc9073f2cb0ecabb (patch) | |
tree | 59a30eac488c38dd8b34173df9f2533fd616c9f3 | |
parent | c6df8d5ab87a246942d138321e1721edbb69f6e1 (diff) | |
parent | e7dadc0089da730a1ba2638a1a03533be0c67f11 (diff) |
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/urgent
-rw-r--r-- | tools/perf/util/symbol.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 7fd6b151feb..b63e5713849 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -1745,7 +1745,12 @@ static int dso__load_kernel_sym(struct dso *self, struct map *map, if (symbol_conf.vmlinux_name != NULL) { err = dso__load_vmlinux(self, map, symbol_conf.vmlinux_name, filter); - goto out_try_fixup; + if (err > 0) { + dso__set_long_name(self, + strdup(symbol_conf.vmlinux_name)); + goto out_fixup; + } + return err; } if (vmlinux_path != NULL) { @@ -1806,7 +1811,6 @@ do_kallsyms: pr_debug("Using %s for symbols\n", kallsyms_filename); free(kallsyms_allocated_filename); -out_try_fixup: if (err > 0) { out_fixup: if (kallsyms_filename != NULL) |