From f5d551271fdb6497c4cbe5af41d4a56218010a7c Mon Sep 17 00:00:00 2001 From: Dave Martin Date: Fri, 30 Jul 2010 09:36:08 -0300 Subject: [PATCH] --- yaml --- r: 205343 b: refs/heads/master c: 8b1389ef93b36621c6acdeb623bd85aee3c405c9 h: refs/heads/master i: 205341: 78d2c7c7ce1202e208ba75daa5c49f762c5b98f6 205339: 4d4ad1116947beb50331137b51c35e49a701856b 205335: 6ec1ed7672239121902c682d85f08c124f04b470 205327: ceb807094f44466a1a2899aecffe9a65f487cf7b 205311: 091e55ad98b7a0881fec644b7a2f7844a58c0852 v: v3 --- [refs] | 2 +- trunk/tools/perf/util/symbol.c | 28 ++-------------------------- 2 files changed, 3 insertions(+), 27 deletions(-) diff --git a/[refs] b/[refs] index 5a98d695664d..5536048ab463 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 21916c380d93ab59d6d07ee198fb31c8f1338e26 +refs/heads/master: 8b1389ef93b36621c6acdeb623bd85aee3c405c9 diff --git a/trunk/tools/perf/util/symbol.c b/trunk/tools/perf/util/symbol.c index b812ace91c60..e0d9480dc371 100644 --- a/trunk/tools/perf/util/symbol.c +++ b/trunk/tools/perf/util/symbol.c @@ -986,12 +986,12 @@ static int dso__load_sym(struct dso *self, struct map *map, const char *name, elf = elf_begin(fd, PERF_ELF_C_READ_MMAP, NULL); if (elf == NULL) { - pr_err("%s: cannot read %s ELF file.\n", __func__, name); + pr_debug("%s: cannot read %s ELF file.\n", __func__, name); goto out_close; } if (gelf_getehdr(elf, &ehdr) == NULL) { - pr_err("%s: cannot get elf header.\n", __func__); + pr_debug("%s: cannot get elf header.\n", __func__); goto out_elf_end; } @@ -1710,30 +1710,6 @@ static int dso__load_vmlinux(struct dso *self, struct map *map, { int err = -1, fd; - if (self->has_build_id) { - u8 build_id[BUILD_ID_SIZE]; - - if (filename__read_build_id(vmlinux, build_id, - sizeof(build_id)) < 0) { - pr_debug("No build_id in %s, ignoring it\n", vmlinux); - return -1; - } - if (!dso__build_id_equal(self, build_id)) { - char expected_build_id[BUILD_ID_SIZE * 2 + 1], - vmlinux_build_id[BUILD_ID_SIZE * 2 + 1]; - - build_id__sprintf(self->build_id, - sizeof(self->build_id), - expected_build_id); - build_id__sprintf(build_id, sizeof(build_id), - vmlinux_build_id); - pr_debug("build_id in %s is %s while expected is %s, " - "ignoring it\n", vmlinux, vmlinux_build_id, - expected_build_id); - return -1; - } - } - fd = open(vmlinux, O_RDONLY); if (fd < 0) return -1;