Home
last modified time | relevance | path

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

12

/tools/power/cpupower/bench/
Dbenchmark.c35 long long now, then; in calculate_timespace() local
44 now = get_time(); in calculate_timespace()
48 timed = (unsigned int)(then - now); in calculate_timespace()
55 now = get_time(); in calculate_timespace()
59 timed = (unsigned int)(then - now); in calculate_timespace()
81 long long now, then; in start_benchmark() local
126 now = get_time(); in start_benchmark()
130 performance_time += then - now - sleep_time; in start_benchmark()
135 (long)(then - now), sleep_time, in start_benchmark()
152 now = get_time(); in start_benchmark()
[all …]
Dsystem.c29 struct timeval now; in get_time() local
31 gettimeofday(&now, NULL); in get_time()
33 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.c56 u32 now, then, diff; in cpufreq_test_tsc() local
88 now = read_pmtmr(); in cpufreq_test_tsc()
90 diff = (now - then) & 0xFFFFFF; in cpufreq_test_tsc()
92 …printk(KERN_DEBUG "t1: %08u t2: %08u diff_pmtmr: %08u diff_tsc: %016llu\n", then, now, diff, diff_… in cpufreq_test_tsc()
93 then = now; in cpufreq_test_tsc()
/tools/testing/selftests/networking/timestamping/
Dtimestamping.c120 struct timeval now; in sendpacket() local
125 gettimeofday(&now, 0); in sendpacket()
130 (long)now.tv_sec, (long)now.tv_usec, in sendpacket()
143 struct timeval now; in printpacket() local
145 gettimeofday(&now, 0); in printpacket()
148 (long)now.tv_sec, (long)now.tv_usec, in printpacket()
465 struct timeval now; in main() local
471 gettimeofday(&now, 0); in main()
472 delta_us = (long)(next.tv_sec - now.tv_sec) * 1000000 + in main()
473 (long)(next.tv_usec - now.tv_usec); in main()
[all …]
/tools/testing/selftests/bpf/progs/
Dtest_tc_edt.c33 uint64_t now = bpf_ktime_get_ns(); in throttle_flow() local
40 if (tstamp < now) in throttle_flow()
41 tstamp = now; in throttle_flow()
51 if (next_tstamp - now >= TIME_HORIZON_NS) in throttle_flow()
55 if (next_tstamp - now >= ECN_HORIZON_NS) in throttle_flow()
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py110 … cpu perf busy vs. sample : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
131 …set title "{} : perf busy : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
150 …set title "{} : durations : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
166 …ot('set title "{} : loads : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now()))
183 … g_plot('set title "{} : cpu pstate vs. sample : {:%F %H:%M}"'.format(testname, datetime.now()))
196 g_plot('set title "{} : cpu pstates : {:%F %H:%M}"'.format(testname, datetime.now()))
213 g_plot('set title "{} : cpu loads : {:%F %H:%M}"'.format(testname, datetime.now()))
227 g_plot('set title "{} : cpu frequencies : {:%F %H:%M}"'.format(testname, datetime.now()))
242 g_plot('set title "{} : cpu durations : {:%F %H:%M}"'.format(testname, datetime.now()))
256 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/cgroup/
Diocost_monitor.py113 def dict(self, now): argument
115 'timestamp' : now,
180 def dict(self, now, path): argument
182 'timestamp' : now,
253 now = time.time() variable
261 output += json.dumps(iocstat.dict(now))
278 output += '\n' + json.dumps(iocg_stat.dict(now, path))
/tools/perf/arch/x86/tests/
Drdpmc.c133 u64 stamp, now, delta; in __test__rdpmc() local
140 now = mmap_read_self(addr); in __test__rdpmc()
143 delta = now - stamp; in __test__rdpmc()
/tools/testing/selftests/bpf/prog_tests/
Dbpf_obj_id.c29 time_t now, load_time; in test_bpf_obj_id() local
45 now = time(NULL); in test_bpf_obj_id()
117 load_time < now - 60 || load_time > now + 60 || in test_bpf_obj_id()
132 load_time, now, in test_bpf_obj_id()
/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).
/tools/perf/tests/
Dswitch-tracking.c23 struct timeval start, now, diff, maxtime; in spin_sleep() local
39 err = gettimeofday(&now, NULL); in spin_sleep()
43 timersub(&now, &start, &diff); in spin_sleep()
/tools/firewire/
Dnosy-dump.c832 struct timeval now; in print_stats() local
846 gettimeofday(&now, NULL); in print_stats()
847 if (now.tv_sec <= last_update.tv_sec && in print_stats()
848 now.tv_usec < last_update.tv_usec + 500000) in print_stats()
851 last_update = now; in print_stats()
/tools/testing/ktest/
Dktest.pl1624 my $now;
1665 $now = time;
1666 if ($now - $start_time >= $max_monitor_wait) {
1810 my $now = time;
1811 if ($timeout >= 0 && (($now - $start_time) >= $timeout)) {
2131 my $now = time;
2132 if ($now - $success_start >= $stop_after_success) {
2155 my $now = time;
2156 if ($now - $failure_start >= $stop_after_failure) {
2756 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/lib/traceevent/Documentation/
Dlibtraceevent-reg_event_handler.txt85 trace_seq_printf(s, " now=");
87 tep_print_num_field(s, "%llu", event, "now", record, 1);
/tools/vm/
Dpage-types.c937 long now = time(NULL); in show_file() local
947 mtime, now - st->st_mtime, in show_file()
948 atime, now - st->st_atime); in show_file()

12