Lines Matching refs:tr
283 struct thread_runtime tr; member
934 struct thread_runtime *tr; in thread__get_runtime() local
936 tr = thread__priv(thread); in thread__get_runtime()
937 if (tr == NULL) { in thread__get_runtime()
938 tr = thread__init_runtime(thread); in thread__get_runtime()
939 if (tr == NULL) in thread__get_runtime()
943 return tr; in thread__get_runtime()
1534 struct thread_runtime *tr; in map_switch_event() local
1574 tr = thread__get_runtime(sched_in); in map_switch_event()
1575 if (tr == NULL) { in map_switch_event()
1585 if (!tr->shortname[0]) { in map_switch_event()
1591 tr->shortname[0] = '.'; in map_switch_event()
1592 tr->shortname[1] = ' '; in map_switch_event()
1594 tr->shortname[0] = sched->next_shortname1; in map_switch_event()
1595 tr->shortname[1] = sched->next_shortname2; in map_switch_event()
1647 if (new_shortname || tr->comm_changed || (verbose > 0 && sched_in->tid)) { in map_switch_event()
1654 tr->shortname, thread__comm_str(sched_in), sched_in->tid); in map_switch_event()
1655 tr->comm_changed = false; in map_switch_event()
1765 struct thread_runtime *tr; in perf_sched__process_comm() local
1778 tr = thread__get_runtime(thread); in perf_sched__process_comm()
1779 if (tr == NULL) { in perf_sched__process_comm()
1784 tr->comm_changed = true; in perf_sched__process_comm()
2008 struct thread_runtime *tr = thread__priv(thread); in timehist_print_sample() local
2040 wait_time = tr->dt_sleep + tr->dt_iowait + tr->dt_preempt; in timehist_print_sample()
2043 print_sched_time(tr->dt_delay, 6); in timehist_print_sample()
2044 print_sched_time(tr->dt_run, 6); in timehist_print_sample()
2205 init_stats(&itr->tr.run_stats); in init_idle_thread()
2421 struct thread_runtime *tr = NULL; in timehist_sched_wakeup_event() local
2429 tr = thread__get_runtime(thread); in timehist_sched_wakeup_event()
2430 if (tr == NULL) in timehist_sched_wakeup_event()
2433 if (tr->ready_to_run == 0) in timehist_sched_wakeup_event()
2434 tr->ready_to_run = sample->time; in timehist_sched_wakeup_event()
2505 struct thread_runtime *tr = NULL; in timehist_migrate_task_event() local
2513 tr = thread__get_runtime(thread); in timehist_migrate_task_event()
2514 if (tr == NULL) in timehist_migrate_task_event()
2517 tr->migrations++; in timehist_migrate_task_event()
2535 struct thread_runtime *tr = NULL; in timehist_sched_change_event() local
2556 tr = thread__get_runtime(thread); in timehist_sched_change_event()
2557 if (tr == NULL) { in timehist_sched_change_event()
2591 timehist_update_runtime_stats(tr, t, tprev); in timehist_sched_change_event()
2594 struct idle_thread_runtime *itr = (void *)tr; in timehist_sched_change_event()
2635 if (tr) { in timehist_sched_change_event()
2637 tr->last_time = sample->time; in timehist_sched_change_event()
2640 tr->last_state = state; in timehist_sched_change_event()
2643 tr->ready_to_run = 0; in timehist_sched_change_event()
2903 print_sched_time(itr->tr.total_run_time, 6); in timehist_print_summary()