Lines Matching defs:tid
6 static struct threads_table_entry *threads__table(struct threads *threads, pid_t tid)
8 /* Cast it to handle tid == -1 */
9 return &threads->table[(unsigned int)tid % THREADS__TABLE_SIZE];
65 pid_t tid)
71 if (thread__tid(th) == tid)
92 struct thread *threads__find(struct threads *threads, pid_t tid)
94 struct threads_table_entry *table = threads__table(threads, tid);
98 res = __threads_table_entry__get_last_match(table, tid);
100 if (hashmap__find(&table->shard, tid, &res))
109 struct thread *threads__findnew(struct threads *threads, pid_t pid, pid_t tid, bool *created)
111 struct threads_table_entry *table = threads__table(threads, tid);
116 res = thread__new(pid, tid);
118 if (hashmap__add(&table->shard, tid, res)) {
122 if (hashmap__find(&table->shard, tid, &res))