Lines Matching refs:proc
63 av_invalid_pointer(ProcDesc* proc, target_ulong ptr, int routine) in av_invalid_pointer() argument
71 proc->image_path, proc->pid, ptr, routine == 1 ? "free" : "realloc", in av_invalid_pointer()
90 av_access_violation(ProcDesc* proc, in av_access_violation() argument
111 proc->image_path, proc->pid); in av_access_violation()
114 const MMRangeDesc* rdesc = procdesc_get_range_desc(proc, vaddr); in av_access_violation()
197 ProcDesc* proc = get_current_process(); in memcheck_common_access_validation() local
198 *proc_ptr = proc; in memcheck_common_access_validation()
199 if (proc == NULL) { in memcheck_common_access_validation()
204 desc = procdesc_find_malloc_for_range(proc, addr, data_size); in memcheck_common_access_validation()
264 procdesc_contains_allocs(ProcDesc* proc, target_ulong addr, uint32_t buf_size) { in procdesc_contains_allocs() argument
265 if (proc != NULL) { in procdesc_contains_allocs()
272 return procdesc_find_malloc_for_range(proc, addr, buf_size) ? 1 : 0; in procdesc_contains_allocs()
380 ProcDesc* proc = get_process_from_pid(pid); in memcheck_guest_libc_initialized() local
381 if (proc == NULL) { in memcheck_guest_libc_initialized()
385 proc->flags |= PROC_FLAG_LIBC_INITIALIZED; in memcheck_guest_libc_initialized()
391 procdesc_empty_alloc_map(proc); in memcheck_guest_libc_initialized()
393 proc->image_path, proc->pid); in memcheck_guest_libc_initialized()
402 ProcDesc* proc; in memcheck_guest_alloc() local
412 proc = get_process_from_pid(desc.malloc_desc.allocator_pid); in memcheck_guest_alloc()
413 if (proc == NULL) { in memcheck_guest_alloc()
420 if (!procdesc_is_executing(proc)) { in memcheck_guest_alloc()
446 insert_res = procdesc_add_malloc(proc, &desc, &replaced); in memcheck_guest_alloc()
483 ProcDesc* proc; in memcheck_guest_free() local
488 proc = get_process_from_pid(desc.free_pid); in memcheck_guest_free()
489 if (proc == NULL) { in memcheck_guest_free()
497 pull_res = procdesc_pull_malloc(proc, desc.ptr, &pulled); in memcheck_guest_free()
499 av_invalid_pointer(proc, desc.ptr, 1); in memcheck_guest_free()
508 proc->image_path, proc->pid); in memcheck_guest_free()
529 ProcDesc* proc; in memcheck_guest_query_malloc() local
534 proc = get_process_from_pid(qdesc.query_pid); in memcheck_guest_query_malloc()
535 if (proc == NULL) { in memcheck_guest_query_malloc()
543 found = procdesc_find_malloc(proc, qdesc.ptr); in memcheck_guest_query_malloc()
545 av_invalid_pointer(proc, qdesc.ptr, qdesc.routine); in memcheck_guest_query_malloc()
579 ProcDesc* proc; in memcheck_validate_ld() local
582 int res = memcheck_common_access_validation(addr, data_size, &proc, &desc); in memcheck_validate_ld()
584 av_access_violation(proc, desc, addr, data_size, 0, retaddr, 1); in memcheck_validate_ld()
591 return res ? procdesc_contains_allocs(proc, addr, data_size) : 0; in memcheck_validate_ld()
616 ProcDesc* proc; in memcheck_validate_st() local
618 int res = memcheck_common_access_validation(addr, data_size, &proc, &desc); in memcheck_validate_st()
620 av_access_violation(proc, desc, addr, data_size, value, retaddr, 0); in memcheck_validate_st()
627 return res ? procdesc_contains_allocs(proc, addr, data_size) : 0; in memcheck_validate_st()