Lines Matching refs:pid
94 find_tfp_by_pid(pid_t pid)
99 if (tfp->tfp_pid == pid)
126 pid_t pid = proc_pid(p);
134 if ((tfp->tfp_pid == pid) || (tfp->tfp_pid == -1 &&
217 alloc_tclass_for_proc(pid_t pid, const char *pname)
221 if (pid == -1 && pname == NULL)
228 tfp->tfp_pid = pid;
230 * Add per pid entries before per proc name so we can find
233 if (pid != -1) {
257 pid_t pid = so_tcdbg->so_tcdbg_pid;
260 p = proc_find(pid);
262 printf("%s proc_find(%d) failed\n", __func__, pid);
269 tfp = find_tfp_by_pid(pid);
271 tfp = alloc_tclass_for_proc(pid, NULL);
354 pid_t pid = so_tcdbg->so_tcdbg_pid;
361 p = proc_find(pid);
363 printf("%s proc_find(%d) failed\n", __func__, pid);
405 pid_t pid = so_tcdbg->so_tcdbg_pid;
410 p = proc_find(pid);
412 printf("%s proc_find(%d) failed\n", __func__, pid);
419 tfp = find_tfp_by_pid(pid);
458 pid_t pid = so_tcdbg->so_tcdbg_pid;
463 if (pid != -1)
464 tfp = find_tfp_by_pid(pid);