Lines Matching refs:pip
27 struct p_info *pip; member
41 f(rb_entry(n, struct pn_info, rb_node)->pip, arg); in __foreach()
57 free(pnp->pip->name); in __destroy()
58 region_exit(&pnp->pip->regions); in __destroy()
59 free(pnp->pip); in __destroy()
77 return this->pip; in __find_process_pid()
97 return this->pip; in __find_process_name()
123 this->pip = that; in insert_pid()
151 this->pip = that; in insert_name()
157 static void insert(struct p_info *pip) in insert() argument
159 insert_pid(pip, pip->pid); in insert()
160 insert_name(pip); in insert()
170 struct p_info *pip; in find_process() local
173 if ((pip = __find_process_pid(pid)) != NULL) in find_process()
174 return pip; in find_process()
176 pip = __find_process_name(name); in find_process()
178 if (pip && pid != pip->pid) { in find_process()
186 insert_pid(pip, pid); in find_process()
188 return pip; in find_process()
209 struct p_info *pip = find_process(pid, name); in process_alloc() local
211 if (pip == NULL) { in process_alloc()
212 pip = pip_alloc(); in process_alloc()
213 pip->pid = pid; in process_alloc()
214 region_init(&pip->regions); in process_alloc()
215 pip->last_q = (__u64)-1; in process_alloc()
216 pip->name = strdup(name); in process_alloc()
218 insert(pip); in process_alloc()
224 if (iop->pip) { in pip_update_q()
226 update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q_dm, in pip_update_q()
229 update_lq(&iop->pip->last_q, &iop->pip->avgs.q2q, in pip_update_q()
231 update_qregion(&iop->pip->regions, iop->t.time); in pip_update_q()
240 struct p_info *pip; in pip_foreach_out() local
251 pip = __find_process_name(exe); in pip_foreach_out()
252 if (pip) in pip_foreach_out()
253 f(pip, arg); in pip_foreach_out()