Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 31) sorted by relevance

12

/tools/power/cpupower/bench/
Dbenchmark.c48 long long now, then; in calculate_timespace() local
57 now = get_time(); in calculate_timespace()
61 timed = (unsigned int)(then - now); in calculate_timespace()
68 now = get_time(); in calculate_timespace()
72 timed = (unsigned int)(then - now); in calculate_timespace()
94 long long now, then; in start_benchmark() local
139 now = get_time(); in start_benchmark()
143 performance_time += then - now - sleep_time; in start_benchmark()
148 (long)(then - now), sleep_time, in start_benchmark()
165 now = get_time(); in start_benchmark()
[all …]
Dsystem.c42 struct timeval now; in get_time() local
44 gettimeofday(&now, NULL); in get_time()
46 return (long long int)(now.tv_sec * 1000000LL + now.tv_usec); in get_time()
/tools/testing/selftests/timers/
Dnanosleep.c103 struct timespec now, target, rel; in nanosleep_test() local
106 if (clock_gettime(clockid, &now)) in nanosleep_test()
108 target = timespec_add(now, ns); in nanosleep_test()
112 clock_gettime(clockid, &now); in nanosleep_test()
114 if (!in_order(target, now)) in nanosleep_test()
118 clock_gettime(clockid, &now); in nanosleep_test()
122 target = timespec_add(now, ns); in nanosleep_test()
124 clock_gettime(clockid, &now); in nanosleep_test()
126 if (!in_order(target, now)) in nanosleep_test()
Dset-2038.c50 struct timeval now; in settime() local
53 now.tv_sec = (time_t)time; in settime()
54 now.tv_usec = 0; in settime()
56 ret = settimeofday(&now, NULL); in settime()
Dmqueue-lat.c63 struct timespec start, end, now, target; in mqueue_lat_test() local
80 clock_gettime(CLOCK_REALTIME, &now); in mqueue_lat_test()
81 target = now; in mqueue_lat_test()
82 target = timespec_add(now, TARGET_TIMEOUT); /* 100ms */ in mqueue_lat_test()
Dleap-a-day.c162 struct timespec now, target; in test_hrtimer_failure() local
164 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure()
165 target = timespec_add(now, NSEC_PER_SEC/2); in test_hrtimer_failure()
167 clock_gettime(CLOCK_REALTIME, &now); in test_hrtimer_failure()
169 if (!in_order(target, now)) { in test_hrtimer_failure()
240 time_t now; in main() local
328 now = tx.time.tv_sec; in main()
329 while (now < next_leap + 2) { in main()
353 now = tx.time.tv_sec; in main()
Dinconsistency-check.c98 long now, then; in consistency_test() local
103 now = then = list[0].tv_sec; in consistency_test()
109 while (seconds == -1 || now - then < seconds) { in consistency_test()
146 now = list[0].tv_sec; in consistency_test()
Dthreadtest.c123 time_t start, now, runtime; in main() local
172 while (time(&now) < start + runtime) { in main()
176 strftime(buf, 255, "%a, %d %b %Y %T %z", localtime(&now)); in main()
/tools/testing/selftests/powerpc/tm/
Dtm-syscall.c67 struct timeval end, now; in tm_syscall() local
76 now.tv_sec = TEST_DURATION; in tm_syscall()
77 now.tv_usec = 0; in tm_syscall()
78 timeradd(&end, &now, &end); in tm_syscall()
80 for (count = 0; timercmp(&now, &end, <); count++) { in tm_syscall()
94 gettimeofday(&now, 0); in tm_syscall()
/tools/power/cpupower/debug/kernel/
Dcpufreq-test_tsc.c55 u32 now, then, diff; in cpufreq_test_tsc() local
87 now = read_pmtmr(); in cpufreq_test_tsc()
89 diff = (now - then) & 0xFFFFFF; in cpufreq_test_tsc()
91 …printk(KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_… in cpufreq_test_tsc()
92 then = now; in cpufreq_test_tsc()
/tools/testing/selftests/networking/timestamping/
Dtimestamping.c139 struct timeval now; in sendpacket() local
144 gettimeofday(&now, 0); in sendpacket()
149 (long)now.tv_sec, (long)now.tv_usec, in sendpacket()
162 struct timeval now; in printpacket() local
164 gettimeofday(&now, 0); in printpacket()
167 (long)now.tv_sec, (long)now.tv_usec, in printpacket()
478 struct timeval now; in main() local
484 gettimeofday(&now, 0); in main()
485 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
486 (long)(next.tv_usec - now.tv_usec); in main()
[all …]
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py107 … cpu perf busy vs. sample : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
128 …set title "{} : perf busy : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
147 …set title "{} : durations : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
163 …ot('set title "{} : loads : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
180 … g_plot('set title "{} : cpu pstate vs. sample : {:%F %H:%M}"'.format(testname, datetime.now()))
193 g_plot('set title "{} : cpu pstates : {:%F %H:%M}"'.format(testname, datetime.now()))
210 g_plot('set title "{} : cpu loads : {:%F %H:%M}"'.format(testname, datetime.now()))
224 g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(testname, datetime.now()))
239 g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now()))
253 g_plot('set title "{} : cpu scaled busy : {:%F %H:%M}"'.format(testname, datetime.now()))
[all …]
/tools/testing/selftests/powerpc/mm/
Dtlbie_test.c49 time_t now; in err_msg() local
50 time(&now); in err_msg()
53 printf(" %s", ctime(&now)); in err_msg()
617 time_t now; in main() local
681 time(&now); in main()
684 printf(" %s", ctime(&now)); in main()
725 time(&now); in main()
728 printf(" %s", ctime(&now)); in main()
/tools/perf/arch/x86/tests/
Drdpmc.c131 u64 stamp, now, delta; in __test__rdpmc() local
138 now = mmap_read_self(addr); in __test__rdpmc()
141 delta = now - stamp; in __test__rdpmc()
/tools/perf/tests/attr/
Dtest-record-graph-dwarf10 # TODO different for each arch, no support for that now
/tools/perf/Documentation/
Dperf-data.txt20 Converts perf data file into another format (only CTF [1] format is support by now).
Dperf-sched.txt24 was recorded (aliased to 'perf script' for now).
Dperf-script-python.txt256 that's what works for now).
273 only deal with id's for now):
406 You can now perform the record step via 'perf script record':
/tools/perf/tests/
Dswitch-tracking.c17 struct timeval start, now, diff, maxtime; in spin_sleep() local
33 err = gettimeofday(&now, NULL); in spin_sleep()
37 timersub(&now, &start, &diff); in spin_sleep()
/tools/firewire/
Dnosy-dump.c845 struct timeval now; in print_stats() local
859 gettimeofday(&now, NULL); in print_stats()
860 if (now.tv_sec <= last_update.tv_sec && in print_stats()
861 now.tv_usec < last_update.tv_usec + 500000) in print_stats()
864 last_update = now; in print_stats()
/tools/testing/ktest/
Dktest.pl1554 my $now;
1595 $now = time;
1596 if ($now - $start_time >= $max_monitor_wait) {
1727 my $now = time;
1728 if (defined($timeout) && (($now - $start_time) >= $timeout)) {
2036 my $now = time;
2037 if ($now - $success_start >= $stop_after_success) {
2060 my $now = time;
2061 if ($now - $failure_start >= $stop_after_failure) {
2661 my $now;
[all …]
/tools/usb/usbip/
DREADME79 - The USB device 1-2 is now exportable to other hosts!
164 A USB storage device of busid 3-3.2 is now bound to the usb-storage
251 - usbip now uses TCP port 3240.
/tools/testing/selftests/x86/
Dmpx-mini-test.c1391 time_t now; in run_timed_test() local
1396 time(&now); in run_timed_test()
1397 if ((now - start) > TEST_DURATION_SECS) in run_timed_test()
1403 if ((now - last_print > 1) || done) { in run_timed_test()
1405 last_print = now; in run_timed_test()
/tools/vm/
Dpage-types.c883 long now = time(NULL); in show_file() local
893 mtime, now - st->st_mtime, in show_file()
894 atime, now - st->st_atime); in show_file()
/tools/power/pm-graph/
Danalyze_boot.py78 self.testtime = datetime.now().strftime('%Y-%m-%d_%H:%M:%S')
86 self.testdir = datetime.now().strftime('boot-%y%m%d-%H%M%S')
282 'time': datetime.now().strftime('%B %d %Y, %I:%M:%S %p'),

12