Lines Matching refs:tr
279 struct thread_runtime tr; member
930 struct thread_runtime *tr; in thread__get_runtime() local
932 tr = thread__priv(thread); in thread__get_runtime()
933 if (tr == NULL) { in thread__get_runtime()
934 tr = thread__init_runtime(thread); in thread__get_runtime()
935 if (tr == NULL) in thread__get_runtime()
939 return tr; in thread__get_runtime()
1528 struct thread_runtime *tr; in map_switch_event() local
1568 tr = thread__get_runtime(sched_in); in map_switch_event()
1569 if (tr == NULL) { in map_switch_event()
1579 if (!tr->shortname[0]) { in map_switch_event()
1585 tr->shortname[0] = '.'; in map_switch_event()
1586 tr->shortname[1] = ' '; in map_switch_event()
1588 tr->shortname[0] = sched->next_shortname1; in map_switch_event()
1589 tr->shortname[1] = sched->next_shortname2; in map_switch_event()
1641 if (new_shortname || tr->comm_changed || (verbose > 0 && sched_in->tid)) { in map_switch_event()
1648 tr->shortname, thread__comm_str(sched_in), sched_in->tid); in map_switch_event()
1649 tr->comm_changed = false; in map_switch_event()
1759 struct thread_runtime *tr; in perf_sched__process_comm() local
1772 tr = thread__get_runtime(thread); in perf_sched__process_comm()
1773 if (tr == NULL) { in perf_sched__process_comm()
1778 tr->comm_changed = true; in perf_sched__process_comm()
2003 struct thread_runtime *tr = thread__priv(thread); in timehist_print_sample() local
2032 wait_time = tr->dt_sleep + tr->dt_iowait + tr->dt_preempt; in timehist_print_sample()
2035 print_sched_time(tr->dt_delay, 6); in timehist_print_sample()
2036 print_sched_time(tr->dt_run, 6); in timehist_print_sample()
2197 init_stats(&itr->tr.run_stats); in init_idle_thread()
2404 struct thread_runtime *tr = NULL; in timehist_sched_wakeup_event() local
2412 tr = thread__get_runtime(thread); in timehist_sched_wakeup_event()
2413 if (tr == NULL) in timehist_sched_wakeup_event()
2416 if (tr->ready_to_run == 0) in timehist_sched_wakeup_event()
2417 tr->ready_to_run = sample->time; in timehist_sched_wakeup_event()
2488 struct thread_runtime *tr = NULL; in timehist_migrate_task_event() local
2496 tr = thread__get_runtime(thread); in timehist_migrate_task_event()
2497 if (tr == NULL) in timehist_migrate_task_event()
2500 tr->migrations++; in timehist_migrate_task_event()
2518 struct thread_runtime *tr = NULL; in timehist_sched_change_event() local
2540 tr = thread__get_runtime(thread); in timehist_sched_change_event()
2541 if (tr == NULL) { in timehist_sched_change_event()
2574 timehist_update_runtime_stats(tr, t, tprev); in timehist_sched_change_event()
2577 struct idle_thread_runtime *itr = (void *)tr; in timehist_sched_change_event()
2618 if (tr) { in timehist_sched_change_event()
2620 tr->last_time = sample->time; in timehist_sched_change_event()
2623 tr->last_state = state; in timehist_sched_change_event()
2626 tr->ready_to_run = 0; in timehist_sched_change_event()
2883 print_sched_time(itr->tr.total_run_time, 6); in timehist_print_summary()