Lines Matching full:proc
169 void create_processes(int num_processes, int num_threads, struct child_args proc[]) in create_processes() argument
175 proc[i].num_threads = num_threads; in create_processes()
177 if (pipe(proc[i].pfd) == -1) in create_processes()
181 SIGCHLD, &proc[i]); in create_processes()
182 proc[i].cpid = cpid; in create_processes()
183 close(proc[i].pfd[1]); in create_processes()
187 read(proc[i].pfd[0], &proc[i].thr_tids, sizeof(int) * proc[i].num_threads); in create_processes()
188 close(proc[i].pfd[0]); in create_processes()
192 void disp_processes(int num_processes, struct child_args proc[]) in disp_processes() argument
200 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].cpid, proc[i].cpid, in disp_processes()
201 getpgid(proc[i].cpid), get_cs_cookie(proc[i].cpid)); in disp_processes()
202 for (j = 0; j < proc[i].num_threads; ++j) { in disp_processes()
203 printf(" tid=%d, / tgid=%d / pgid=%d: %lx\n", proc[i].thr_tids[j], in disp_processes()
204 proc[i].cpid, getpgid(0), get_cs_cookie(proc[i].thr_tids[j])); in disp_processes()