Lines Matching defs:pid
64 static int pid;
100 pid = -pid;
122 /* must have either -[Cc], a pid or a command */
123 if (clear == NOTSET && pid == 0 && argc == 0)
125 /* can't have both a pid and a command */
126 /* (note that -C sets pid to 1) */
127 if (pid != 0 && argc > 0) {
140 ops |= pid ? KTROP_CLEAR : KTROP_CLEARFILE;
142 if (ktrace(tracefile, ops, trpoints, pid) < 0)
175 if (ktrace(tracefile, ops, trpoints, pid) < 0)
191 if ((clear == CLEARALL && p != NULL) || (cl == CLEARALL && pid != 0)) {
192 /* both -C and a pid or pgid */
196 if (p != NULL && pid != 0) {
207 * of an int, keeping in mind that the pid may be
215 pid = n;
219 pid = 1;
227 "usage: ktrace [-aCcdi] [-f trfile] [-g pgrp | -p pid] [-t trstr]",