Lines Matching refs:ttrace

401 	struct thread_trace *ttrace;  in thread__trace()  local
412 ttrace = thread->priv; in thread__trace()
413 ++ttrace->nr_events; in thread__trace()
415 return ttrace; in thread__trace()
699 struct thread_trace *ttrace; in trace__sys_enter() local
709 ttrace = thread__trace(thread, trace->output); in trace__sys_enter()
710 if (ttrace == NULL) in trace__sys_enter()
719 ttrace = thread->priv; in trace__sys_enter()
721 if (ttrace->entry_str == NULL) { in trace__sys_enter()
722 ttrace->entry_str = malloc(1024); in trace__sys_enter()
723 if (!ttrace->entry_str) in trace__sys_enter()
727 ttrace->entry_time = sample->time; in trace__sys_enter()
728 msg = ttrace->entry_str; in trace__sys_enter()
736 fprintf(trace->output, "%-70s\n", ttrace->entry_str); in trace__sys_enter()
739 ttrace->entry_pending = true; in trace__sys_enter()
751 struct thread_trace *ttrace; in trace__sys_exit() local
761 ttrace = thread__trace(thread, trace->output); in trace__sys_exit()
762 if (ttrace == NULL) in trace__sys_exit()
767 ttrace = thread->priv; in trace__sys_exit()
769 ttrace->exit_time = sample->time; in trace__sys_exit()
771 if (ttrace->entry_time) { in trace__sys_exit()
772 duration = sample->time - ttrace->entry_time; in trace__sys_exit()
780 if (ttrace->entry_pending) { in trace__sys_exit()
781 fprintf(trace->output, "%-70s", ttrace->entry_str); in trace__sys_exit()
806 ttrace->entry_pending = false; in trace__sys_exit()
819 struct thread_trace *ttrace = thread__trace(thread, trace->output); in trace__sched_stat_runtime() local
821 if (ttrace == NULL) in trace__sched_stat_runtime()
824 ttrace->runtime_ms += runtime_ms; in trace__sched_stat_runtime()
1131 struct thread_trace *ttrace = thread->priv; in trace__fprintf_thread_summary() local
1135 if (ttrace == NULL) in trace__fprintf_thread_summary()
1138 ratio = (double)ttrace->nr_events / trace->nr_events * 100.0; in trace__fprintf_thread_summary()
1149 printed += fprintf(fp, " - %-5d :%11lu [", thread->tid, ttrace->nr_events); in trace__fprintf_thread_summary()
1151 printed += fprintf(fp, " ] %10.3f ms\n", ttrace->runtime_ms); in trace__fprintf_thread_summary()