Lines Matching defs:old_addr

252 SysRes do_mremap( Addr old_addr, SizeT old_len, 
266 old_addr,old_len,new_addr,new_len,
275 if (!VG_IS_PAGE_ALIGNED(old_addr))
289 if (old_addr + old_len < old_addr)
300 if (!ML_(valid_client_addr)(old_addr, old_len, tid, "mremap(old_addr)"))
305 old_seg = VG_(am_find_nsegment)( old_addr );
306 if (old_addr < old_seg->start || old_addr+old_len-1 > old_seg->end)
315 vg_assert(VG_IS_PAGE_ALIGNED(old_addr));
367 if (new_addr+new_len-1 < old_addr || new_addr > old_addr+old_len-1) {
380 ( &d, old_addr, old_len, new_addr, new_len );
382 VG_TRACK( copy_mem_remap, old_addr, new_addr,
388 VG_TRACK(die_mem_munmap, old_addr, old_len);
390 VG_(discard_translations)( old_addr, old_len, "do_remap(1)" );
404 Addr needA = old_addr + old_len;
434 return VG_(mk_SysRes_Success)( old_addr );
445 vg_assert(advised+new_len-1 < old_addr
446 || advised > old_addr+old_len-1);
448 ( &d, old_addr, old_len, advised, new_len );
450 VG_TRACK( copy_mem_remap, old_addr, advised,
455 VG_TRACK(die_mem_munmap, old_addr, old_len);
457 VG_(discard_translations)( old_addr, old_len, "do_remap(4)" );
469 Addr needA = old_addr + old_len;
497 return VG_(mk_SysRes_Success)( old_addr );
503 SysRes sres = VG_(am_munmap_client)( &d, old_addr+new_len, old_len-new_len );
506 VG_TRACK( die_mem_munmap, old_addr+new_len, old_len-new_len );
508 VG_(discard_translations)( old_addr+new_len, old_len-new_len,
510 return VG_(mk_SysRes_Success)( old_addr );
515 return VG_(mk_SysRes_Success)( old_addr );
2338 unsigned long, old_addr, unsigned long, old_size,
2345 unsigned long, old_addr, unsigned long, old_size,