Lines Matching refs:st

126 	struct thread_stat *st;
130 st = container_of(node, struct thread_stat, rb);
131 if (st->tid == tid)
132 return st;
133 else if (tid < st->tid)
166 struct thread_stat *st;
168 st = thread_stat_find(tid);
169 if (st)
170 return st;
172 st = zalloc(sizeof(struct thread_stat));
173 if (!st)
176 st->tid = tid;
177 INIT_LIST_HEAD(&st->seq_list);
179 thread_stat_insert(st);
181 return st;
190 struct thread_stat *st;
192 st = zalloc(sizeof(struct thread_stat));
193 if (!st)
195 st->tid = tid;
196 INIT_LIST_HEAD(&st->seq_list);
198 rb_link_node(&st->rb, NULL, &thread_stats.rb_node);
199 rb_insert_color(&st->rb, &thread_stats);
202 return st;
274 static void insert_to_result(struct lock_stat *st,
285 if (bigger(st, p))
291 rb_link_node(&st->rb, parent, rb);
292 rb_insert_color(&st->rb, &result);
768 struct lock_stat *st;
783 while ((st = pop_from_result())) {
785 if (st->discard) {
791 if (strlen(st->name) < 16) {
793 pr_info("%20s ", st->name);
795 strncpy(cut_name, st->name, 16);
804 pr_info("%10u ", st->nr_acquired);
805 pr_info("%10u ", st->nr_contended);
807 pr_info("%15" PRIu64 " ", st->wait_time_total);
808 pr_info("%15" PRIu64 " ", st->wait_time_max);
809 pr_info("%15" PRIu64 " ", st->wait_time_min == ULLONG_MAX ?
810 0 : st->wait_time_min);
821 struct thread_stat *st;
829 st = container_of(node, struct thread_stat, rb);
830 t = perf_session__findnew(session, st->tid);
831 pr_info("%10d: %s\n", st->tid, t->comm);
839 struct lock_stat *st;
843 list_for_each_entry(st, &lockhash_table[i], hash_entry) {
844 pr_info(" %p: %s\n", st->addr, st->name);
895 struct lock_stat *st;
898 list_for_each_entry(st, &lockhash_table[i], hash_entry) {
899 insert_to_result(st, compare);