/tools/testing/selftests/timens/ |
D | exec.c | 23 struct timespec now, tst; in main() local 28 if (sscanf(argv[1], "%ld", &now.tv_sec) != 1) in main() 33 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 34 return pr_fail("%ld %ld\n", now.tv_sec, tst.tv_sec); in main() 43 clock_gettime(CLOCK_MONOTONIC, &now); in main() 53 if (abs(tst.tv_sec - now.tv_sec) > 5) in main() 55 now.tv_sec, tst.tv_sec); in main() 73 if (abs(tst.tv_sec - now.tv_sec - OFFSET) > 5) in main() 75 now.tv_sec + OFFSET, tst.tv_sec); in main() 79 snprintf(now_str, sizeof(now_str), "%ld", now.tv_sec + OFFSET); in main()
|
D | clock_nanosleep.c | 26 struct timespec *now, *rem; member 36 clock_nanosleep(args->clockid, args->abs ? TIMER_ABSTIME : 0, args->now, args->rem); in call_nanosleep() 43 struct timespec now = {}, rem; in run_test() local 44 struct thread_args args = { .now = &now, .rem = &rem, .clockid = clockid}; in run_test() 64 now.tv_sec = start.tv_sec; in run_test() 65 now.tv_nsec = start.tv_nsec; in run_test() 68 now.tv_sec += 3600; in run_test()
|
D | timerfd.c | 18 static int tclock_gettime(clock_t clockid, struct timespec *now) in tclock_gettime() argument 22 return clock_gettime(clockid, now); in tclock_gettime() 25 int run_test(int clockid, struct timespec now) in run_test() argument 34 if (tclock_gettime(clockid, &now)) in run_test() 46 new_value.it_value.tv_sec += now.tv_sec; in run_test() 47 new_value.it_value.tv_nsec += now.tv_nsec; in run_test()
|
D | timer.c | 18 int run_test(int clockid, struct timespec now) in run_test() argument 38 new_value.it_value.tv_sec += now.tv_sec; in run_test() 39 new_value.it_value.tv_nsec += now.tv_nsec; in run_test()
|
/tools/power/cpupower/bench/ |
D | benchmark.c | 35 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 …]
|
D | system.c | 29 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/ |
D | nanosleep.c | 103 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()
|
D | set-2038.c | 50 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()
|
D | mqueue-lat.c | 63 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()
|
D | leap-a-day.c | 162 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()
|
D | inconsistency-check.c | 98 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()
|
D | threadtest.c | 123 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/ |
D | tm-syscall.c | 67 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/ |
D | cpufreq-test_tsc.c | 56 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/net/ |
D | timestamping.c | 120 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/ |
D | test_tc_edt.c | 33 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()
|
D | bpf_cubic.c | 199 __u32 now = tcp_jiffies32; in BPF_PROG() local 202 delta = now - tcp_sk(sk)->lsndtime; in BPF_PROG() 209 if (after(ca->epoch_start, now)) in BPF_PROG() 210 ca->epoch_start = now; in BPF_PROG() 460 __u32 now = bictcp_clock_us(sk); in hystart_update() local 463 if ((__s32)(now - ca->last_ack) <= hystart_ack_delta_us) { in hystart_update() 464 ca->last_ack = now; in hystart_update() 476 if ((__s32)(now - ca->round_start) > threshold) { in hystart_update()
|
/tools/power/x86/intel_pstate_tracer/ |
D | intel_pstate_tracer.py | 110 … 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())) 148 …set title "{} : durations : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) 164 …ot('set title "{} : loads : CPU {:0>3} : {:%F %H:%M}"'.format(testname, cpu_index, datetime.now())) 181 … g_plot('set title "{} : cpu pstate vs. sample : {:%F %H:%M}"'.format(testname, datetime.now())) 194 g_plot('set title "{} : cpu pstates : {:%F %H:%M}"'.format(testname, datetime.now())) 211 g_plot('set title "{} : cpu loads : {:%F %H:%M}"'.format(testname, datetime.now())) 225 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/cgroup/ |
D | iocost_monitor.py | 113 def dict(self, now): argument 115 'timestamp' : now, 170 def dict(self, now, path): argument 172 'timestamp' : now, 241 now = time.time() variable 249 output += json.dumps(iocstat.dict(now)) 266 output += '\n' + json.dumps(iocg_stat.dict(now, path))
|
/tools/testing/selftests/powerpc/mm/ |
D | tlbie_test.c | 49 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/ |
D | rdpmc.c | 133 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/net/forwarding/ |
D | sch_red.sh | 365 local now 385 now=$(get_nmirrored) 386 ((now >= base + 100)) 394 now=$(get_nmirrored) 395 ((now == base))
|
/tools/perf/tests/attr/ |
D | test-record-graph-dwarf | 10 # TODO different for each arch, no support for that now
|
/tools/testing/selftests/bpf/prog_tests/ |
D | bpf_obj_id.c | 33 time_t now, load_time; in test_bpf_obj_id() local 50 now = time(NULL); in test_bpf_obj_id() 133 load_time < now - 60 || load_time > now + 60 || in test_bpf_obj_id() 152 load_time, now, in test_bpf_obj_id()
|
/tools/perf/Documentation/ |
D | perf-data.txt | 20 Converts perf data file into another format (only CTF [1] format is support by now).
|