|
@@ -1226,7 +1226,7 @@ static void machine__set_kernel_mmap(struct machine *machine,
|
|
* Be a bit paranoid here, some perf.data file came with
|
|
* Be a bit paranoid here, some perf.data file came with
|
|
* a zero sized synthesized MMAP event for the kernel.
|
|
* a zero sized synthesized MMAP event for the kernel.
|
|
*/
|
|
*/
|
|
- if (machine->vmlinux_maps[i]->end == 0)
|
|
|
|
|
|
+ if (start == 0 && end == 0)
|
|
machine->vmlinux_maps[i]->end = ~0ULL;
|
|
machine->vmlinux_maps[i]->end = ~0ULL;
|
|
}
|
|
}
|
|
}
|
|
}
|