On Tue, Nov 6, 2018 at 9:25 AM Tom Hughes <t...@compton.nu> wrote: > On 06/11/2018 17:02, Rafael Antognolli wrote: > > > My (limited) understanding is that valgrind's mremap doesn't let me > > remap an address that was allocated by the ioctl, since valgrind doesn't > > "own" that memory. Is there some way around this, or this is never > > supposed to work?
> I don't see any reason why it shouldn't IF the ioctl wrapper is > correctly written to update valgrind's internal state and record > the mapping that it creates. > By that, do you mean using VALGRIND_MALLOCLIKE_BLOCK and VALGRIND_FREELIKE_BLOCK? If so, that's already happening but no luck so far. Do you have any pointers or examples of that? > > If the wrapper doesn't do that then you probably have bigger > problems than whether you can remap it because it will mean > valgrind's state is out of sync with the kernel. > > Tom > > -- > Tom Hughes (t...@compton.nu) > http://compton.nu/ >
_______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users