Lines Matching refs:times
100 * This offset is subtracted from times above by acquire_boot_times(),
215 static struct boot_times times;
227 ×.firmware_time) < 0 ||
232 ×.loader_time) < 0 ||
237 ×.kernel_time) < 0 ||
242 ×.initrd_time) < 0 ||
247 ×.userspace_time) < 0 ||
252 ×.finish_time) < 0 ||
257 ×.security_start_time) < 0 ||
262 ×.security_finish_time) < 0 ||
267 ×.generators_start_time) < 0 ||
272 ×.generators_finish_time) < 0 ||
277 ×.unitsload_start_time) < 0 ||
282 ×.unitsload_finish_time) < 0)
285 if (times.finish_time <= 0) {
295 times.reverse_offset = times.userspace_time;
297 times.firmware_time = times.loader_time = times.kernel_time = times.initrd_time = times.userspace_time = 0;
298 subtract_timestamp(×.finish_time, times.reverse_offset);
300 subtract_timestamp(×.security_start_time, times.reverse_offset);
301 subtract_timestamp(×.security_finish_time, times.reverse_offset);
303 subtract_timestamp(×.generators_start_time, times.reverse_offset);
304 subtract_timestamp(×.generators_finish_time, times.reverse_offset);
306 subtract_timestamp(×.unitsload_start_time, times.reverse_offset);
307 subtract_timestamp(×.unitsload_finish_time, times.reverse_offset);
309 if (times.initrd_time)
310 times.kernel_done_time = times.initrd_time;
312 times.kernel_done_time = times.userspace_time;
318 *bt = ×
547 struct unit_times *times;
566 n = acquire_time_data(bus, ×);
570 qsort(times, n, sizeof(struct unit_times), compare_unit_start);
588 for (u = times; u < times + n; u++) {
701 for (u = times; u < times + n; u++) {
750 free_unit_times(times, (unsigned) n);
757 bool last, struct unit_times *times, struct boot_times *boot) {
766 if (times) {
767 if (times->time)
769 format_timespan(ts, sizeof(ts), times->activating - boot->userspace_time, USEC_PER_MSEC),
770 format_timespan(ts2, sizeof(ts2), times->time, USEC_PER_MSEC), ANSI_NORMAL);
771 else if (times->activated > boot->userspace_time)
772 printf("%s @%s", name, format_timespan(ts, sizeof(ts), times->activated - boot->userspace_time, USEC_PER_MSEC));
801 struct unit_times *times;
803 times = hashmap_get(unit_times_hashmap, *a);
804 if (times)
805 usa = times->activated;
806 times = hashmap_get(unit_times_hashmap, *b);
807 if (times)
808 usb = times->activated;
820 struct unit_times *times;
837 times = hashmap_get(unit_times_hashmap, *c);
838 if (times
839 && times->activated
840 && times->activated <= boot->finish_time
841 && (times->activated >= service_longest
843 service_longest = times->activated;
852 times = hashmap_get(unit_times_hashmap, *c);
853 if (times && times->activated && times->activated <= boot->finish_time && (service_longest - times->activated) <= arg_fuzz)
861 times = hashmap_get(unit_times_hashmap, *c);
862 if (!times
863 || !times->activated
864 || times->activated > boot->finish_time
865 || service_longest - times->activated > arg_fuzz)
870 r = list_dependencies_print(*c, level, branches, to_print == 0, times, boot);
896 struct unit_times *times;
928 times = hashmap_get(unit_times_hashmap, id);
934 if (times) {
935 if (times->time)
937 format_timespan(ts, sizeof(ts), times->time, USEC_PER_MSEC), ANSI_NORMAL);
938 else if (times->activated > boot->userspace_time)
939 printf("%s @%s\n", id, format_timespan(ts, sizeof(ts), times->activated - boot->userspace_time, USEC_PER_MSEC));
948 struct unit_times *times;
953 n = acquire_time_data(bus, ×);
962 r = hashmap_put(h, times[i].name, ×[i]);
981 free_unit_times(times, (unsigned) n);
986 struct unit_times *times;
990 n = acquire_time_data(bus, ×);
994 qsort(times, n, sizeof(struct unit_times), compare_unit_time);
1001 if (times[i].time > 0)
1002 printf("%16s %s\n", format_timespan(ts, sizeof(ts), times[i].time, USEC_PER_MSEC), times[i].name);
1005 free_unit_times(times, (unsigned) n);