Home | History | Annotate | Download | only in ltrace

Lines Matching refs:proc

46 #include "proc.h"
58 output_indent(struct process *proc)
60 int d = options.indent * (proc->callstack_depth - 1);
65 begin_of_line(struct process *proc, int is_func, int indent)
68 if (!proc) {
72 current_column += fprintf(options.output, "%u ", proc->pid);
74 current_column += fprintf(options.output, "[pid %u] ", proc->pid);
123 = &proc->callstack[proc->callstack_depth - 1];
128 proc->instruction_pointer);
132 output_indent(proc);
227 find_proto_cb(struct process *proc, struct library *lib, void *d)
235 lookup_symbol_prototype(struct process *proc, struct library_symbol *libsym)
246 proc_each_library(proc, NULL, find_proto_cb, &data);
255 output_line(struct process *proc, const char *fmt, ...)
270 begin_of_line(proc, 0, 0);
295 fetch_simple_param(enum tof type, struct process *proc,
315 value_init(&value, proc, NULL, info, own);
316 if (fetch_arg_next(context, type, proc, info, &value) < 0)
338 fetch_param_pack(enum tof type, struct process *proc,
369 if (fetch_simple_param(type, proc, context, arguments,
392 fetch_one_param(enum tof type, struct process *proc,
400 return fetch_simple_param(type, proc, context, arguments,
407 rc = fetch_param_pack(type, proc, context, arguments,
423 struct process *proc;
434 return CBS_STOP_IF(fetch_one_param(cb_data->tof, cb_data->proc,
441 fetch_params(enum tof type, struct process *proc,
447 = { proc, context, arguments, params_leftp, type };
495 output_left(enum tof type, struct process *proc,
504 current_proc = proc;
505 current_depth = proc->callstack_depth;
506 begin_of_line(proc, type == LT_TOF_FUNCTION, 1);
534 struct prototype *func = lookup_symbol_prototype(proc, libsym);
541 struct fetch_context *context = fetch_arg_init(type, proc,
555 if (fetch_params(type, proc, context, arguments, func, &params_left) < 0
564 = &proc->callstack[proc->callstack_depth - 1];
639 output_right(enum tof type, struct process *proc, struct library_symbol *libsym,
644 struct prototype *func = lookup_symbol_prototype(proc, libsym);
649 && (current_proc != proc
650 || current_depth != proc->callstack_depth)) {
654 if (current_proc != proc) {
655 begin_of_line(proc, type == LT_TOF_FUNCTIONR, 1);
668 = &procproc->callstack_depth - 1];
677 value_init(&retval, proc, NULL, func->return_info, 0);
679 if (fetch_retval(context, type, proc, func->return_info,
716 && proc->unwind_priv != NULL
717 && proc->unwind_as != NULL) {
730 unw_init_remote(&cursor, proc->unwind_as, proc->unwind_priv);
745 lib = proc->libraries;
779 if (options.bt_depth > 0 && proc->leader->dwfl != NULL) {
781 if (dwfl_getthread_frames(proc->leader->dwfl, proc->pid,
788 proc->pid, dwfl_errmsg(-1));