Home | History | Annotate | Download | only in m_syswrap

Lines Matching refs:old_addr

244 SysRes do_mremap( Addr old_addr, SizeT old_len, 
258 old_addr,old_len,new_addr,new_len,
267 if (!VG_IS_PAGE_ALIGNED(old_addr))
281 if (old_addr + old_len < old_addr)
292 if (!ML_(valid_client_addr)(old_addr, old_len, tid, "mremap(old_addr)"))
297 old_seg = VG_(am_find_nsegment)( old_addr );
298 if (old_addr < old_seg->start || old_addr+old_len-1 > old_seg->end)
307 vg_assert(VG_IS_PAGE_ALIGNED(old_addr));
359 if (new_addr+new_len-1 < old_addr || new_addr > old_addr+old_len-1) {
372 ( &d, old_addr, old_len, new_addr, new_len );
374 VG_TRACK( copy_mem_remap, old_addr, new_addr,
380 VG_TRACK(die_mem_munmap, old_addr, old_len);
382 VG_(discard_translations)( old_addr, old_len, "do_remap(1)" );
396 Addr needA = old_addr + old_len;
418 return VG_(mk_SysRes_Success)( old_addr );
429 vg_assert(advised+new_len-1 < old_addr
430 || advised > old_addr+old_len-1);
432 ( &d, old_addr, old_len, advised, new_len );
434 VG_TRACK( copy_mem_remap, old_addr, advised,
439 VG_TRACK(die_mem_munmap, old_addr, old_len);
441 VG_(discard_translations)( old_addr, old_len, "do_remap(4)" );
453 Addr needA = old_addr + old_len;
474 return VG_(mk_SysRes_Success)( old_addr );
480 SysRes sres = VG_(am_munmap_client)( &d, old_addr+new_len, old_len-new_len );
483 VG_TRACK( die_mem_munmap, old_addr+new_len, old_len-new_len );
485 VG_(discard_translations)( old_addr+new_len, old_len-new_len,
487 return VG_(mk_SysRes_Success)( old_addr );
492 return VG_(mk_SysRes_Success)( old_addr );
2434 unsigned long, old_addr, unsigned long, old_size,
2441 unsigned long, old_addr, unsigned long, old_size,