Lines Matching defs:pid

57 	pid_t pid;
185 case 'p': /* grab given pid */
186 if ((opts->pid = atoi(optarg)) <= 0)
203 (argc == optind && opts->pid == 0) ||
204 (argc > optind && opts->pid != 0) ||
208 "\t\t-c events [command [args] | -p pid]\n\n"
220 "\t-p pid\t pid of existing process to capture\n\n"
256 (void) fprintf(opts->log, "%6s ", "pid");
265 print_exec(float now, pid_t pid, char *name)
272 (void) fprintf(opts->log, "%6d ", (int)pid);
294 print_sample(pid_t pid, id_t lwpid,
303 (void) fprintf(opts->log, "%6d ", (int)pid);
325 pinit_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
342 "%6d: init_lwp: out of memory\n"), (int)pid);
354 "%6d: init_lwp: out of memory\n"), (int)pid);
378 "to lwp%d - %s\n"), (int)pid, (int)lwpid,
384 print_sample(pid, lwpid, "init_lwp",
391 pfini_lwp(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
423 print_sample(pid, lwpid, "fini_lwp",
434 (int)pid, (int)lwpid);
440 (int)pid, (int)lwpid, errstr);
448 plwp_create(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
459 print_sample(pid, lwpid, "lwp_create",
467 plwp_exit(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
483 print_sample(pid, lwpid, "lwp_exit",
492 pexec(pctx_t *pctx, pid_t pid, id_t lwpid, char *name, void *arg)
515 print_sample(pid, lwpid, "exec",
521 print_exec(now, pid, name);
537 pexit(pctx_t *pctx, pid_t pid, id_t lwpid, int status, void *arg)
554 print_sample(pid, lwpid, "exit",
571 ptick(pctx_t *pctx, pid_t pid, id_t lwpid, void *arg)
629 print_sample(pid, lwpid, "tick", *scratch, nreqs, name);
638 (int)pid, (int)lwpid);
644 (int)pid, (int)lwpid, errstr);
652 * The system has just created a new address space that has a new pid.
657 pfork(pctx_t *pctx, pid_t oldpid, pid_t pid, id_t lwpid, void *arg)
661 print_fork(mstimestamp(0), pid, lwpid, oldpid);
697 if (opts->pid == 0) {
714 pctx = pctx_capture(opts->pid, state, 1, cputrack_pctx_errfn);
718 gettext("failed to capture pid"),
719 (int)opts->pid);