/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 37 #define NSEC_PER_SEC 1000000000LL macro 205 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 206 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 210 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 257 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset() 260 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset() 263 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset() 266 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset() 269 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset() 272 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset() [all …]
|
D | nsleep-lat.c | 29 #define NSEC_PER_SEC 1000000000ULL macro 82 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 83 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 92 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 94 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 104 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test() 105 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test() 161 while (length <= (NSEC_PER_SEC * 10)) { in main()
|
D | mqueue-lat.c | 34 #define NSEC_PER_SEC 1000000000ULL macro 42 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 44 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 51 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 52 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
|
D | alarmtimer-suspend.c | 48 #define NSEC_PER_SEC 1000000000ULL macro 49 #define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */ 89 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 91 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 106 delta_ns -= NSEC_PER_SEC * SUSPEND_SECS * alarmcount; in sigalarm()
|
D | raw_skew.c | 31 #define NSEC_PER_SEC 1000000000LL macro 48 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 55 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 56 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts() 127 eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; in main()
|
D | nanosleep.c | 32 #define NSEC_PER_SEC 1000000000ULL macro 94 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 95 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 148 while (length <= (NSEC_PER_SEC * 10)) { in main()
|
D | adjtick.c | 30 #define NSEC_PER_SEC 1000000000LL macro 46 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 53 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 54 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
D | inconsistency-check.c | 34 #define NSEC_PER_SEC 1000000000ULL macro 134 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test() 136 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test()
|
D | set-2038.c | 32 #define NSEC_PER_SEC 1000000000LL macro 35 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
|
D | leap-a-day.c | 53 #define NSEC_PER_SEC 1000000000ULL macro 74 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 75 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 165 target = timespec_add(now, NSEC_PER_SEC/2); in test_hrtimer_failure() 356 ts.tv_nsec = NSEC_PER_SEC / 2; in main()
|
D | set-timer-lat.c | 48 #define NSEC_PER_SEC 1000000000ULL macro 90 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 92 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 106 delta_ns -= NSEC_PER_SEC * TIMER_SECS * alarmcount; in sigalarm()
|
D | skew_consistency.c | 39 #define NSEC_PER_SEC 1000000000LL macro
|
D | change_skew.c | 33 #define NSEC_PER_SEC 1000000000LL macro
|
/tools/testing/radix-tree/ |
D | benchmark.c | 12 #define NSEC_PER_SEC 1000000000L macro 38 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_iter() 42 if (loops == 1 && nsec * 5 < NSEC_PER_SEC) { in benchmark_iter() 43 loops = NSEC_PER_SEC / nsec / 4 + 1; in benchmark_iter() 66 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_insert() 87 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_tagging() 108 nsec = (finish.tv_sec - start.tv_sec) * NSEC_PER_SEC + in benchmark_delete()
|
/tools/testing/selftests/timens/ |
D | futex.c | 18 #define NSEC_PER_SEC 1000000000ULL macro 30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test() 31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test() 33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test()
|
/tools/perf/examples/bpf/ |
D | 5sec.c | 44 #define NSEC_PER_SEC 1000000000L macro 48 return sec / NSEC_PER_SEC == 5ULL; in probe()
|
/tools/testing/selftests/vm/ |
D | ksm_tests.c | 442 scan_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_merge_time() 446 printf("Total time: %ld.%09ld s\n", scan_time_ns / NSEC_PER_SEC, in ksm_merge_time() 447 scan_time_ns % NSEC_PER_SEC); in ksm_merge_time() 449 ((double)scan_time_ns / NSEC_PER_SEC)); in ksm_merge_time() 484 cow_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_cow_time() 489 printf("Total time: %ld.%09ld s\n", cow_time_ns / NSEC_PER_SEC, in ksm_cow_time() 490 cow_time_ns % NSEC_PER_SEC); in ksm_cow_time() 492 ((double)cow_time_ns / NSEC_PER_SEC)); in ksm_cow_time() 513 cow_time_ns = (end_time.tv_sec - start_time.tv_sec) * NSEC_PER_SEC + in ksm_cow_time() 517 printf("Total time: %ld.%09ld s\n", cow_time_ns / NSEC_PER_SEC, in ksm_cow_time() [all …]
|
/tools/testing/selftests/ptp/ |
D | testptp.c | 38 #define NSEC_PER_SEC 1000000000LL macro 423 perout_request.period.sec = perout / NSEC_PER_SEC; in main() 424 perout_request.period.nsec = perout % NSEC_PER_SEC; in main() 428 perout_request.on.sec = pulsewidth / NSEC_PER_SEC; in main() 429 perout_request.on.nsec = pulsewidth % NSEC_PER_SEC; in main() 433 perout_request.phase.sec = perout_phase / NSEC_PER_SEC; in main() 434 perout_request.phase.nsec = perout_phase % NSEC_PER_SEC; in main()
|
/tools/include/linux/ |
D | time64.h | 10 #define NSEC_PER_SEC 1000000000L macro
|
/tools/perf/tests/ |
D | time-utils-test.c | 189 u64 b = 7654321ULL * NSEC_PER_SEC; in test__time_utils() 204 u64 b = 7654321ULL * NSEC_PER_SEC; in test__time_utils() 219 u64 b = 11223344ULL * NSEC_PER_SEC; in test__time_utils() 234 u64 b = 11223344ULL * NSEC_PER_SEC; in test__time_utils()
|
/tools/perf/bench/ |
D | numa.c | 1092 tprintf(" (%6.1fs converged)\n", *convergence / NSEC_PER_SEC); in calc_convergence() 1100 tprintf(" (%6.1fs de-converged)", runtime_ns_max / NSEC_PER_SEC); in calc_convergence() 1112 (double)(l+1)/g->p.nr_loops*100.0, runtime_ns_max / NSEC_PER_SEC / 60.0); in show_summary() 1272 runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1285 runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1293 td->runtime_ns = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1295 secs = td->runtime_ns / NSEC_PER_SEC; in worker_thread() 1299 td->system_time_ns = rusage.ru_stime.tv_sec * NSEC_PER_SEC; in worker_thread() 1301 td->user_time_ns = rusage.ru_utime.tv_sec * NSEC_PER_SEC; in worker_thread() 1587 startup_sec = diff.tv_sec * NSEC_PER_SEC; in __bench_numa() [all …]
|
/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_tcp4.c | 23 #define NSEC_PER_SEC 1000000000ULL macro 29 u64 tick_nsec = (NSEC_PER_SEC + CONFIG_HZ/2) / CONFIG_HZ; in jiffies_to_clock_t() 30 u64 user_hz_nsec = NSEC_PER_SEC / USER_HZ; in jiffies_to_clock_t()
|
D | bpf_iter_tcp6.c | 23 #define NSEC_PER_SEC 1000000000ULL macro 29 u64 tick_nsec = (NSEC_PER_SEC + CONFIG_HZ/2) / CONFIG_HZ; in jiffies_to_clock_t() 30 u64 user_hz_nsec = NSEC_PER_SEC / USER_HZ; in jiffies_to_clock_t()
|
/tools/perf/util/ |
D | time-utils.c | 47 *ptime = time_sec * NSEC_PER_SEC + time_nsec; in parse_nsec_time() 530 u64 sec = timestamp / NSEC_PER_SEC; in timestamp__scnprintf_usec() 531 u64 usec = (timestamp % NSEC_PER_SEC) / NSEC_PER_USEC; in timestamp__scnprintf_usec() 538 u64 sec = timestamp / NSEC_PER_SEC, in timestamp__scnprintf_nsec() 539 nsec = timestamp % NSEC_PER_SEC; in timestamp__scnprintf_nsec()
|
D | clockid.c | 61 *res_ns = res.tv_nsec + res.tv_sec * NSEC_PER_SEC; in get_clockid_res()
|