[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-162bcc17bb876772793ca070ebd6488cfdae09bf@git.kernel.org>
Date: Wed, 19 Nov 2014 23:37:12 -0800
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: hpa@...or.com, acme@...hat.com, bp@...e.de, eranian@...gle.com,
dsahern@...il.com, peterz@...radead.org, jolsa@...hat.com,
adrian.hunter@...el.com, tglx@...utronix.de,
linux-kernel@...r.kernel.org, dzickus@...hat.com, efault@....de,
namhyung@...nel.org, fweisbec@...il.com, mingo@...nel.org
Subject: [tip:perf/core] perf symbols:
Fallback to kallsyms when using the minimal 'ELF' loader
Commit-ID: 162bcc17bb876772793ca070ebd6488cfdae09bf
Gitweb: http://git.kernel.org/tip/162bcc17bb876772793ca070ebd6488cfdae09bf
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Tue, 11 Nov 2014 11:25:28 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Wed, 19 Nov 2014 12:33:46 -0300
perf symbols: Fallback to kallsyms when using the minimal 'ELF' loader
The minimal ELF loader should not return 1 when it manages to read the
vmlinux build-id, it should instead return 0, meaning that it hasn't
loaded any symbols, since it doesn't parses ELF at all.
That way, the main symbol.c routines will understand that it is
necessary to continue looking for a file with symbols, and when no
libelf is linked, that means it will eventually try kallsyms.
Reported-by: Peter Zijlstra <peterz@...radead.org>
Tested-by: Peter Zijlstra <peterz@...radead.org>
Cc: Adrian Hunter <adrian.hunter@...el.com>
Cc: Borislav Petkov <bp@...e.de>
Cc: David Ahern <dsahern@...il.com>
Cc: Don Zickus <dzickus@...hat.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Mike Galbraith <efault@....de>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Stephane Eranian <eranian@...gle.com>
Link: http://lkml.kernel.org/r/20141111130326.GT18464@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/symbol-minimal.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/perf/util/symbol-minimal.c b/tools/perf/util/symbol-minimal.c
index c9541fe..fa585c6 100644
--- a/tools/perf/util/symbol-minimal.c
+++ b/tools/perf/util/symbol-minimal.c
@@ -341,7 +341,6 @@ int dso__load_sym(struct dso *dso, struct map *map __maybe_unused,
if (filename__read_build_id(ss->name, build_id, BUILD_ID_SIZE) > 0) {
dso__set_build_id(dso, build_id);
- return 1;
}
return 0;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists