Lines Matching refs:te
111 static void init_timing_event(struct timing_event *te) in init_timing_event() argument
113 te->min = INT64_MAX; in init_timing_event()
114 te->max = 0; in init_timing_event()
115 te->total = 0; in init_timing_event()
116 te->count = 0; in init_timing_event()
119 static void add_timing_event(struct timing_event *te, in add_timing_event() argument
124 te->count++; in add_timing_event()
125 if (ts_delta < te->min) in add_timing_event()
126 te->min = ts_delta; in add_timing_event()
127 if (ts_delta > te->max) in add_timing_event()
128 te->max = ts_delta; in add_timing_event()
129 te->total += ts_delta; in add_timing_event()
244 static void print_timing_event(char *name, struct timing_event *te) in print_timing_event() argument
246 if (!te->count) in print_timing_event()
249 fprintf(stderr, " %s: count=%d", name, te->count); in print_timing_event()
251 __print_ts_delta_formatted((int64_t)(te->total / te->count)); in print_timing_event()
253 __print_ts_delta_formatted(te->min); in print_timing_event()
255 __print_ts_delta_formatted(te->max); in print_timing_event()