aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/util/event.c6
-rw-r--r--tools/perf/util/symbol.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index c3831f633de..9eb7005bc6d 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -379,6 +379,12 @@ int event__process_mmap(event_t *self, struct perf_session *session)
379 379
380 session->vmlinux_maps[MAP__FUNCTION]->start = self->mmap.start; 380 session->vmlinux_maps[MAP__FUNCTION]->start = self->mmap.start;
381 session->vmlinux_maps[MAP__FUNCTION]->end = self->mmap.start + self->mmap.len; 381 session->vmlinux_maps[MAP__FUNCTION]->end = self->mmap.start + self->mmap.len;
382 /*
383 * Be a bit paranoid here, some perf.data file came with
384 * a zero sized synthesized MMAP event for the kernel.
385 */
386 if (session->vmlinux_maps[MAP__FUNCTION]->end == 0)
387 session->vmlinux_maps[MAP__FUNCTION]->end = ~0UL;
382 388
383 perf_session__set_kallsyms_ref_reloc_sym(session, symbol_name, 389 perf_session__set_kallsyms_ref_reloc_sym(session, symbol_name,
384 self->mmap.pgoff); 390 self->mmap.pgoff);
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index 6882e9fec2d..ee9c37efdd3 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1937,7 +1937,7 @@ int map_groups__create_kernel_maps(struct map_groups *self,
1937 return -1; 1937 return -1;
1938 1938
1939 if (symbol_conf.use_modules && map_groups__create_modules(self) < 0) 1939 if (symbol_conf.use_modules && map_groups__create_modules(self) < 0)
1940 return 0; 1940 pr_debug("Problems creating module maps, continuing anyway...\n");
1941 /* 1941 /*
1942 * Now that we have all the maps created, just set the ->end of them: 1942 * Now that we have all the maps created, just set the ->end of them:
1943 */ 1943 */