Re: [RFC] perf record: missing buildid for callstack modules

From: One Thousand Gnomes
Date: Tue Jan 12 2016 - 08:09:23 EST

> And we cannot, at mmap() time, 'assume' the file is ELF and try prodding
> into it to find a buildid or whatnot.

And you cannot at any time assume that something like NFS won't change
the page contents under you. In fact it's valid (but completely insane)
to use MAP_DISCARD to throw away part of your program and page it back in
again so that a daemon on the other side of the NFS can change the code
you are executing 8)