Lines Matching refs:pid
20 # USAGE: tcpsnoop [-a|hjsvZ] [-n name] [-p pid]
28 # -p pid # PID to snoop
91 opt_zone=0; opt_proj=0; opt_pid=0; pid=0
99 p) opt_pid=1; pid=$OPTARG ;;
105 USAGE: tcpsnoop [-a|hjsvZ] [-n name] [-p pid]
113 -p pid # PID to snoop
141 inline int PID = '$pid';
196 tpid[(int)self->connp] = pid;
214 tpid[(int)self->connp] = pid;
356 self->pid = 0;
366 self->uid, self->pid, self->laddr, self->lport, self->dir,
374 self->uid, self->pid, self->laddr, self->lport, self->dir,
405 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
407 self->pid = pid && (tname[(int)self->conn_p] == "inetd") ?
408 pid : tpid[(int)self->conn_p];
410 tpid[(int)self->conn_p] = self->pid;
436 self->name = pid && (tname[(int)self->conn_p] == "inetd") ?
438 self->pid = pid && (tname[(int)self->conn_p] == "inetd") ?
439 pid : tpid[(int)self->conn_p];
441 tpid[(int)self->conn_p] = self->pid;
451 self->pid = tpid[(int)self->connp];
462 (OPT_pid && self->pid == PID) ||
471 self->uid, self->pid, self->laddr, self->lport, self->dir,
482 self->pid = tpid[(int)self->connp];
493 (OPT_pid && self->pid == PID) ||
502 self->uid, self->pid, self->laddr, self->lport, self->dir,
510 self->uid, self->pid, self->laddr, self->lport, self->dir,
518 self->uid, self->pid, self->laddr, self->lport, self->dir,
529 (OPT_pid && self->pid == PID) ||
540 self->uid, self->pid, self->laddr, self->lport, self->dir,
557 self->pid = 0;
570 self->pid = 0;