Home
last modified time | relevance | path

Searched refs:time_diff (Results 1 – 5 of 5) sorted by relevance

/tools/laptop/dslm/
Ddslm.c73 time_t time_diff; in measure() local
94 time_diff = curr_time - last_time; in measure()
96 if (last_state == 1) active_time += time_diff; in measure()
97 else if (last_state == 0) sleep_time += time_diff; in measure()
98 else unknown_time += time_diff; in measure()
/tools/power/cpupower/utils/idle_monitor/
Dmperf_monitor.c196 unsigned long long aperf_diff, mperf_diff, time_diff, tsc_diff; in mperf_get_count_freq() local
210 time_diff = timespec_diff_us(time_start, time_end); in mperf_get_count_freq()
211 max_frequency = tsc_diff / time_diff; in mperf_get_count_freq()
/tools/perf/
Dbuiltin-kvm.c263 kvm_update_event_stats(struct kvm_event_stats *kvm_stats, u64 time_diff) in kvm_update_event_stats() argument
265 kvm_stats->time += time_diff; in kvm_update_event_stats()
266 update_stats(&kvm_stats->stats, time_diff); in kvm_update_event_stats()
281 u64 time_diff) in update_kvm_event() argument
284 kvm_update_event_stats(&event->total, time_diff); in update_kvm_event()
291 kvm_update_event_stats(&event->vcpu[vcpu_id], time_diff); in update_kvm_event()
349 u64 time_begin, time_diff; in handle_end_event() local
388 time_diff = sample->time - time_begin; in handle_end_event()
390 if (kvm->duration && time_diff > kvm->duration) { in handle_end_event()
397 decode, time_diff / NSEC_PER_USEC); in handle_end_event()
[all …]
Dbuiltin-stat.c652 struct timespec time_diff; in compute_tts() local
654 diff_timespec(&time_diff, time_stop, time_start); in compute_tts()
656 tts -= time_diff.tv_sec * MSEC_PER_SEC + in compute_tts()
657 time_diff.tv_nsec / NSEC_PER_MSEC; in compute_tts()
/tools/testing/selftests/bpf/
Dtest_offload.py1158 time_diff = end - start variable
1159 log("Time", "start:\t%s\nend:\t%s\ndiff:\t%s" % (start, end, time_diff))
1163 fail(time_diff < delay_sec, "Removal process took %s, expected %s" %
1164 (time_diff, delay_sec))