Home
last modified time | relevance | path

Searched refs:start_time (Results 1 – 19 of 19) sorted by relevance

/tools/testing/selftests/vm/
Dksm_tests.c139 static int ksm_do_scan(int scan_count, struct timespec start_time, int timeout) in ksm_do_scan() argument
155 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan()
164 static int ksm_merge_pages(void *addr, size_t size, struct timespec start_time, int timeout) in ksm_merge_pages() argument
174 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages()
245 struct timespec start_time; in check_ksm_merge() local
247 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_merge()
257 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge()
276 struct timespec start_time; in check_ksm_unmerge() local
279 if (clock_gettime(CLOCK_MONOTONIC_RAW, &start_time)) { in check_ksm_unmerge()
289 if (ksm_merge_pages(map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_unmerge()
[all …]
/tools/testing/selftests/timers/
Dalarmtimer-suspend.c54 struct timespec start_time; variable
105 delta_ns = timespec_sub(start_time, ts); in sigalarm()
150 clock_gettime(alarm_clock_id, &start_time); in main()
152 start_time.tv_sec, start_time.tv_nsec); in main()
154 its1.it_value = start_time; in main()
Dset-timer-lat.c54 struct timespec start_time; variable
105 delta_ns = timespec_sub(start_time, ts); in sigalarm()
153 clock_gettime(clock_id, &start_time); in setup_timer()
155 its1.it_value = start_time; in setup_timer()
/tools/perf/
Dbuiltin-timechart.c95 u64 start_time; member
109 u64 start_time; member
142 u64 start_time; member
161 u64 start_time; member
177 u64 start_time; member
251 p->start_time = timestamp; in pid_fork()
252 if (p->current && !p->current->start_time) { in pid_fork()
253 p->current->start_time = timestamp; in pid_fork()
287 sample->start_time = start; in pid_put_sample()
300 if (c->start_time == 0 || c->start_time > start) in pid_put_sample()
[all …]
Dbuiltin-kvm.c144 u64 start_time; member
258 vcpu_record->start_time = timestamp; in handle_begin_event()
358 time_begin = vcpu_record->start_time; in handle_end_event()
380 vcpu_record->start_time = 0; in handle_end_event()
Dbuiltin-sched.c216 u64 start_time; member
700 sched->start_time = get_nsecs(); in wait_for_tasks()
/tools/laptop/dslm/
Ddslm.c68 time_t start_time; in measure() local
84 start_time = last_time = time(0); in measure()
109 total_time = time(0) - start_time; in measure()
110 printf("\nTotal running time: %lus\n", curr_time - start_time); in measure()
/tools/testing/selftests/bpf/prog_tests/
Dtest_overhead.c22 __u64 start_time; in test_task_rename() local
27 start_time = time_get_ns(); in test_task_rename()
37 MAX_CNT * 1000000ll / (time_get_ns() - start_time)); in test_task_rename()
/tools/testing/selftests/kvm/x86_64/
Dxapic_ipi_test.c265 time_t start_time, last_update, now; in do_migrations() local
304 start_time = time(NULL); in do_migrations()
305 last_update = start_time; in do_migrations()
311 while ((int)(time(NULL) - start_time) < run_secs) { in do_migrations()
341 if (((now - start_time) % interval_secs == 0) && in do_migrations()
347 now - start_time, data->migrations_attempted, in do_migrations()
/tools/power/cpupower/utils/idle_monitor/
Dcpuidle_sysfs.c22 static struct timespec start_time; variable
47 clock_gettime(CLOCK_REALTIME, &start_time); in cpuidle_start()
65 timediff = timespec_diff_us(start_time, end_time); in cpuidle_stop()
Damd_fam14h_idle.c85 static struct timespec start_time; variable
231 clock_gettime(CLOCK_REALTIME, &start_time); in amd_fam14h_start()
238 dbg_timediff = timespec_diff_us(start_time, dbg_time); in amd_fam14h_start()
261 timediff = timespec_diff_us(start_time, end_time); in amd_fam14h_stop()
/tools/testing/ktest/
Dktest.pl1704 my $start_time = time;
1750 if ($now - $start_time >= $max_monitor_wait) {
1845 my $start_time;
1865 $start_time = time;
1893 if ($timeout >= 0 && (($now - $start_time) >= $timeout)) {
1918 my $delta = $end_time - $start_time;
2053 my $start_time;
2074 $start_time = time;
2089 last if (defined($time) && (time - $start_time > $time));
2153 my $start_time = time;
[all …]
Dconfig-bisect.pl161 my $start_time;
166 $start_time = time;
190 my $delta = $end_time - $start_time;
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py66 global sample_num, last_sec_cpu, last_usec_cpu, start_time, testname
428 global sample_num, last_sec_cpu, last_usec_cpu, start_time
465 start_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000)
476 … elapsed_time = Decimal(time_pre_dec) + Decimal(time_post_dec) / Decimal(1000000) - start_time
/tools/testing/selftests/filesystems/incfs/
Dincfs_perf.c289 struct timespec start_time, end_time; in measure_read_throughput_internal() local
326 err = clock_gettime(CLOCK_MONOTONIC, &start_time); in measure_read_throughput_internal()
352 time += end_time.tv_sec - start_time.tv_sec; in measure_read_throughput_internal()
353 time += (end_time.tv_nsec - start_time.tv_nsec) / 1e9; in measure_read_throughput_internal()
/tools/testing/selftests/bpf/progs/
Dprofiler.h68 uint64_t start_time; member
Dprofiler.inc.h201 BPF_CORE_READ(parent, start_time); in populate_ancestors()
344 metadata->start_time = BPF_CORE_READ(task, start_time); in populate_var_metadata()
718 proc_exec_data->parent_start_time = BPF_CORE_READ(parent_task, start_time); in raw_tracepoint__sched_process_exec()
967 fork_data->parent_start_time = BPF_CORE_READ(parent, start_time); in raw_tracepoint__sched_process_fork()
/tools/testing/selftests/net/forwarding/
Dlib.sh310 local start_time="$(date -u +%s%3N)"
322 if ((current_time - start_time > timeout)); then
/tools/perf/scripts/python/
Dexported-sql-viewer.py1302 def SelectComms(self, db, thread_id, last_comm_id, start_time, end_time): argument
1308 " AND c_time >= " + str(start_time) +
1338 start_time = self.collection.glb.StartTime(self.collection.machine_id)
1339 hregion = self.HRegion(db, query.value(1), query.value(3), start_time)
1340 self.AddPoint(start_time, 1000, None, None, hregion)
2200 self.start_time = self.glb.StartTime(collection.machine_id)
2310 rel_time_from = time_from - self.start_time
2311 rel_time_to = time_to - self.start_time
2344 rel_time_from = time_from - self.start_time
2345 rel_time_to = time_to - self.start_time