Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 338967
b: refs/heads/master
c: 4552cf0
h: refs/heads/master
i:
  338965: 68af5dd
  338963: b355b31
  338959: 3793165
v: v3
  • Loading branch information
Namhyung Kim authored and Arnaldo Carvalho de Melo committed Nov 8, 2012
1 parent 0d36573 commit 93c346c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 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: 8dfec403e39b7c37fd6e8813bacc01da1e1210ab
refs/heads/master: 4552cf0f774ae3d24bf31e91324586274a552a66
22 changes: 13 additions & 9 deletions trunk/tools/perf/util/machine.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,19 @@ int machine__process_lost_event(struct machine *machine __maybe_unused,
static void machine__set_kernel_mmap_len(struct machine *machine,
union perf_event *event)
{
machine->vmlinux_maps[MAP__FUNCTION]->start = event->mmap.start;
machine->vmlinux_maps[MAP__FUNCTION]->end = (event->mmap.start +
event->mmap.len);
/*
* Be a bit paranoid here, some perf.data file came with
* a zero sized synthesized MMAP event for the kernel.
*/
if (machine->vmlinux_maps[MAP__FUNCTION]->end == 0)
machine->vmlinux_maps[MAP__FUNCTION]->end = ~0ULL;
int i;

for (i = 0; i < MAP__NR_TYPES; i++) {
machine->vmlinux_maps[i]->start = event->mmap.start;
machine->vmlinux_maps[i]->end = (event->mmap.start +
event->mmap.len);
/*
* Be a bit paranoid here, some perf.data file came with
* a zero sized synthesized MMAP event for the kernel.
*/
if (machine->vmlinux_maps[i]->end == 0)
machine->vmlinux_maps[i]->end = ~0ULL;
}
}

static int machine__process_kernel_mmap_event(struct machine *machine,
Expand Down

0 comments on commit 93c346c

Please sign in to comment.