Home | History | Annotate | Download | only in ltrace

Lines Matching refs:elem

475 		struct callstack_element *elem = &proc->callstack[i];
476 spent[i] = calc_time_spent(elem->enter_time);
480 struct callstack_element *elem = &proc->callstack[i];
482 if (elem->is_syscall) {
483 const char *name = sysname(proc, elem->c_un.syscall);
488 libsym = elem->c_un.libfunc;
494 if (elem->is_syscall)
624 struct callstack_element *elem = &event->proc->callstack[d - 1];
625 assert(elem->is_syscall);
628 struct timedelta spent = calc_time_spent(elem->enter_time);
657 struct callstack_element *elem = &proc->callstack[d - 1];
658 assert(! elem->is_syscall);
661 struct timedelta spent = calc_time_spent(elem->enter_time);
663 summary_account_call(elem->c_un.libfunc, spent);
665 output_right(LT_TOF_FUNCTIONR, proc, elem->c_un.libfunc,
772 struct callstack_element *elem;
782 elem = &proc->callstack[proc->callstack_depth];
783 *elem = (struct callstack_element){};
784 elem->is_syscall = 1;
785 elem->c_un.syscall = sysnum;
786 elem->return_addr = NULL;
791 gettimeofday(&elem->enter_time, &tz);
798 struct callstack_element *elem;
809 elem = &proc->callstack[proc->callstack_depth++];
810 *elem = (struct callstack_element){};
811 elem->is_syscall = 0;
812 elem->c_un.libfunc = bp->libsym;
825 elem->return_addr = rbp != NULL ? rbp->addr : 0;
829 gettimeofday(&elem->enter_time, &tz);
836 struct callstack_element *elem;
840 elem = &proc->callstack[proc->callstack_depth - 1];
841 if (!elem->is_syscall && elem->return_addr) {
843 = address2bpstruct(proc->leader, elem->return_addr);
850 if (elem->fetch_context != NULL)
851 fetch_arg_done(elem->fetch_context);
853 if (elem->arguments != NULL) {
854 val_dict_destroy(elem->arguments);
855 free(elem->arguments);