Lines Matching refs:proc

66 fetch_context_init(struct process *proc, struct fetch_context *context)  in fetch_context_init()  argument
70 if (ptrace(PTRACE_GETREGS, proc->pid, 0, &context->regs) < 0) in fetch_context_init()
79 arch_fetch_arg_init(enum tof type, struct process *proc, in arch_fetch_arg_init() argument
84 || fetch_context_init(proc, context) < 0) { in arch_fetch_arg_init()
94 arch_fetch_arg_clone(struct process *proc, in arch_fetch_arg_clone() argument
105 allocate_stack_slot(struct fetch_context *ctx, struct process *proc, in allocate_stack_slot() argument
108 size_t al = type_alignof(proc, info); in allocate_stack_slot()
109 size_t sz = type_sizeof(proc, info); in allocate_stack_slot()
114 long value = ptrace(PTRACE_PEEKDATA, proc->pid, ctx->stack_pointer, 0); in allocate_stack_slot()
124 allocate_reg(struct fetch_context *ctx, struct process *proc, in allocate_reg() argument
128 return allocate_stack_slot(ctx, proc, info, valuep); in allocate_reg()
146 long ret = ptrace(PTRACE_PEEKDATA, proc->pid, ptr, 0); in allocate_reg()
155 copy_aggregate_part(struct fetch_context *ctx, struct process *proc, in copy_aggregate_part() argument
165 value_init(&tmp, proc, NULL, long_info, 0); in copy_aggregate_part()
166 int rc = allocate_reg(ctx, proc, long_info, &tmp); in copy_aggregate_part()
179 allocate_arg(struct fetch_context *ctx, struct process *proc, in allocate_arg() argument
182 size_t sz = type_sizeof(proc, info); in allocate_arg()
183 size_t align = type_alignof(proc, info); in allocate_arg()
198 allocate_reg(ctx, proc, info, NULL); in allocate_arg()
200 int rc= copy_aggregate_part(ctx, proc, buf, sz); in allocate_arg()
216 allocate_float(struct fetch_context *ctx, struct process *proc, in allocate_float() argument
230 return allocate_reg(ctx, proc, info, valuep); in allocate_float()
238 allocate_reg(ctx, proc, info, NULL); in allocate_float()
253 allocate_hfa(struct fetch_context *ctx, struct process *proc, in allocate_hfa() argument
257 size_t sz = type_sizeof(proc, info); in allocate_hfa()
286 size_t hfa_sz = type_sizeof(proc, hfa_info); in allocate_hfa()
291 value_init(&tmp, proc, NULL, hfa_info, 0); in allocate_hfa()
292 int rc = allocate_float(ctx, proc, hfa_info, &tmp, 0); in allocate_hfa()
301 if (allocate_reg(ctx, proc, info, NULL) < 0) in allocate_hfa()
318 value_init(&tmp, proc, NULL, long_info, 0); in allocate_hfa()
319 int rc = allocate_reg(ctx, proc, long_info, &tmp); in allocate_hfa()
334 return copy_aggregate_part(ctx, proc, buf, rest); in allocate_hfa()
338 allocate_ret(struct fetch_context *ctx, struct process *proc, in allocate_ret() argument
341 size_t sz = type_sizeof(proc, info); in allocate_ret()
355 return allocate_hfa(ctx, proc, info, valuep, in allocate_ret()
378 struct process *proc, in arch_fetch_arg_next() argument
391 return allocate_float(ctx, proc, info, valuep, 1); in arch_fetch_arg_next()
396 return allocate_hfa(ctx, proc, info, valuep, in arch_fetch_arg_next()
407 return allocate_arg(ctx, proc, info, valuep); in arch_fetch_arg_next()
419 struct process *proc, struct arg_type_info *info, in arch_fetch_retval() argument
422 if (fetch_context_init(proc, ctx) < 0) in arch_fetch_retval()
431 return arch_fetch_arg_next(ctx, type, proc, info, valuep); in arch_fetch_retval()
442 return allocate_ret(ctx, proc, info, valuep); in arch_fetch_retval()
451 return arch_fetch_arg_next(ctx, type, proc, info, valuep); in arch_fetch_retval()