Re: [PATCH 1/2] perf: Add munmap callback

From: Liang, Kan
Date: Tue Nov 06 2018 - 11:47:43 EST




On 11/6/2018 10:00 AM, Stephane Eranian wrote:
/*
* mmap 1 page at the location of the unmap page (should reuse virtual space)
* This creates a continuous region built from two mmaps and
potentially two different sources
* especially with jitted runtimes
*/
The two mmaps are both anon. As my understanding, we cannot symbolize
from the anonymous address, can we?
Can't we build the same test case using an actual file mapping (both
mmap from the same file)?


If they are from same file, both mmap have same symbolization name.
We don't need to distinguish them either.

I thought the symbolization issue can only happen when two mmaps are from different sources. Right?

Thanks,
Kan