Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182465
b: refs/heads/master
c: 10fe12e
h: refs/heads/master
i:
  182463: 1ed8cb2
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Feb 21, 2010
1 parent d237970 commit 700b4ed
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7e7ee36757f68778700cde1aaed89e1d23e59fd
refs/heads/master: 10fe12ef631a7e85022ed26304a37f033a6a95b8
6 changes: 6 additions & 0 deletions trunk/tools/perf/util/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,12 @@ int event__process_mmap(event_t *self, struct perf_session *session)

session->vmlinux_maps[MAP__FUNCTION]->start = self->mmap.start;
session->vmlinux_maps[MAP__FUNCTION]->end = self->mmap.start + self->mmap.len;
/*
* Be a bit paranoid here, some perf.data file came with
* a zero sized synthesized MMAP event for the kernel.
*/
if (session->vmlinux_maps[MAP__FUNCTION]->end == 0)
session->vmlinux_maps[MAP__FUNCTION]->end = ~0UL;

perf_session__set_kallsyms_ref_reloc_sym(session, symbol_name,
self->mmap.pgoff);
Expand Down
2 changes: 1 addition & 1 deletion trunk/tools/perf/util/symbol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ int map_groups__create_kernel_maps(struct map_groups *self,
return -1;

if (symbol_conf.use_modules && map_groups__create_modules(self) < 0)
return 0;
pr_debug("Problems creating module maps, continuing anyway...\n");
/*
* Now that we have all the maps created, just set the ->end of them:
*/
Expand Down

0 comments on commit 700b4ed

Please sign in to comment.