Lines Matching refs:thread

45 	pthread_t		thread;  member
91 struct thread *thread; member
141 struct thread *curr_thread[MAX_CPUS];
572 err = pthread_create(&task->thread, &attr, thread_func, parms); in create_tasks()
765 struct thread *child, *parent; in replay_fork_event()
816 thread_atoms_search(struct rb_root *root, struct thread *thread, in thread_atoms_search() argument
820 struct work_atoms key = { .thread = thread }; in thread_atoms_search()
834 BUG_ON(thread != atoms->thread); in thread_atoms_search()
866 static int thread_atoms_insert(struct perf_sched *sched, struct thread *thread) in thread_atoms_insert() argument
874 atoms->thread = thread__get(thread); in thread_atoms_insert()
963 struct thread *sched_out, *sched_in; in latency_switch_event()
1031 struct thread *thread = machine__findnew_thread(machine, -1, pid); in latency_runtime_event() local
1032 struct work_atoms *atoms = thread_atoms_search(&sched->atom_root, thread, &sched->cmp_pid); in latency_runtime_event()
1036 if (thread == NULL) in latency_runtime_event()
1041 if (thread_atoms_insert(sched, thread)) in latency_runtime_event()
1043 atoms = thread_atoms_search(&sched->atom_root, thread, &sched->cmp_pid); in latency_runtime_event()
1055 thread__put(thread); in latency_runtime_event()
1067 struct thread *wakee; in latency_wakeup_event()
1129 struct thread *migrant; in latency_migrate_task_event()
1181 if (!strcmp(thread__comm_str(work_list->thread), "swapper")) in output_lat_thread()
1188 ret = printf(" %s:(%d) ", thread__comm_str(work_list->thread), work_list->num_merged); in output_lat_thread()
1190 ret = printf(" %s:%d ", thread__comm_str(work_list->thread), work_list->thread->tid); in output_lat_thread()
1206 if (l->thread == r->thread) in pid_cmp()
1208 if (l->thread->tid < r->thread->tid) in pid_cmp()
1210 if (l->thread->tid > r->thread->tid) in pid_cmp()
1212 return (int)(l->thread - r->thread); in pid_cmp()
1346 struct thread *sched_in; in map_switch_event()
1590 const char *comm = thread__comm_str(data->thread), *this_comm; in __merge_work_atoms()
1598 this_comm = thread__comm_str(this->thread); in __merge_work_atoms()
1663 thread__zput(work_list->thread); in perf_sched__lat()