Lines Matching refs:tcp
225 getllval(struct tcb *tcp, unsigned long long *val, int arg_no)
231 *val = tcp->u_arg[arg_no];
239 *val = LONG_LONG(tcp->u_arg[arg_no], tcp->u_arg[arg_no + 1]);
246 *val = tcp->ext_arg[arg_no];
250 *val = tcp->ext_arg[arg_no];
253 *val = LONG_LONG(tcp->u_arg[arg_no], tcp->u_arg[arg_no + 1]);
264 *val = LONG_LONG(tcp->u_arg[arg_no], tcp->u_arg[arg_no + 1]);
276 printllval(struct tcb *tcp, const char *format, int arg_no)
280 arg_no = getllval(tcp, &val, arg_no);
379 printnum_long(struct tcb *tcp, long addr, const char *fmt)
387 if (umove(tcp, addr, &num) < 0) {
397 printnum_int(struct tcb *tcp, long addr, const char *fmt)
405 if (umove(tcp, addr, &num) < 0) {
436 getfdproto(struct tcb *tcp, int fd, char *buf, unsigned bufsize)
445 sprintf(path, "/proc/%u/fd/%u", tcp->pid, fd);
463 printfd(struct tcb *tcp, int fd)
466 if (show_fd_path && getfdpath(tcp, fd, path, sizeof(path)) >= 0) {
479 getfdproto(tcp, fd, proto_buf, PROTO_NAME_LEN);
709 printpathn(struct tcb *tcp, long addr, unsigned int n)
724 nul_seen = umovestr(tcp, addr, n + 1, path);
736 printpath(struct tcb *tcp, long addr)
739 printpathn(tcp, addr, PATH_MAX);
748 printstr(struct tcb *tcp, long addr, long len)
780 if (umovestr(tcp, addr, size + 1, str) < 0) {
789 if (umoven(tcp, addr, size, str) < 0) {
808 dumpiov(struct tcb *tcp, int len, long addr)
838 if (umoven(tcp, addr, size, iov) >= 0) {
844 dumpstr(tcp, (long) iov_iov_base(i),
856 dumpstr(struct tcb *tcp, long addr, int len)
884 if (umoven(tcp, addr, len, str) < 0)
986 umoven(struct tcb *tcp, long addr, unsigned int len, void *our_addr)
989 int pid = tcp->pid;
1105 umovestr(struct tcb *tcp, long addr, unsigned int len, char *laddr)
1117 int pid = tcp->pid;