Lines Matching defs:pid
81 proc_cpu_entry.pid = task->pid;
98 thread_cpu_item.tid = task->pid;
122 if (task->pid != task->tgid)
138 static struct task_struct* get_alive_task_by_pid(unsigned int pid)
141 task = find_task_by_pid_ns(pid, &init_pid_ns);
156 if (task->pid != task->tgid) {
170 struct task_struct *task = get_alive_task_by_pid(kcount->pid);
172 pr_info("pid=%d is task NULL or not alive", kcount->pid);
209 if (current->tgid != kcount.pid) {
210 pr_err("pid=%d is not self current tgid:%d", kcount.pid, current->tgid);
220 struct task_struct *task = get_alive_task_by_pid(kentry->filter.pid);
222 pr_info("pid=%d is task NULL not alive", kentry->filter.pid);
251 if (current->tgid != kentry.filter.pid || kentry.cur_count >= kentry.total_count) {
252 pr_err("pid=%d is not self current tgid:%d , or current count over total count"
253 , kentry.filter.pid, current->tgid);
270 pr_err("pid=%d is not self current:%d , or current count over total count"
271 , kentry.filter.pid, current->pid);
295 struct task_struct *task = get_alive_task_by_pid(kentry.filter.pid);
297 pr_info("pid=%d is task null or not alive", kentry.filter.pid);