/tools/testing/selftests/timers/ |
D | valid-adjtimex.c | 48 #define NSEC_PER_SEC 1000000000LL macro 215 tmx.time.tv_sec = offset / NSEC_PER_SEC; in set_offset() 216 tmx.time.tv_usec = offset % NSEC_PER_SEC; in set_offset() 220 tmx.time.tv_usec += NSEC_PER_SEC; in set_offset() 266 if (set_offset(NSEC_PER_SEC - 1, 1)) in validate_set_offset() 269 if (set_offset(-NSEC_PER_SEC + 1, 1)) in validate_set_offset() 272 if (set_offset(-NSEC_PER_SEC - 1, 1)) in validate_set_offset() 275 if (set_offset(5 * NSEC_PER_SEC, 1)) in validate_set_offset() 278 if (set_offset(-5 * NSEC_PER_SEC, 1)) in validate_set_offset() 281 if (set_offset(5 * NSEC_PER_SEC + NSEC_PER_SEC / 2, 1)) in validate_set_offset() [all …]
|
D | nsleep-lat.c | 40 #define NSEC_PER_SEC 1000000000ULL macro 93 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 94 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 103 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 105 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 115 target.tv_sec = ns/NSEC_PER_SEC; in nanosleep_lat_test() 116 target.tv_nsec = ns%NSEC_PER_SEC; in nanosleep_lat_test() 171 while (length <= (NSEC_PER_SEC * 10)) { in main()
|
D | mqueue-lat.c | 45 #define NSEC_PER_SEC 1000000000ULL macro 53 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 55 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 62 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 63 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add()
|
D | alarmtimer-suspend.c | 59 #define NSEC_PER_SEC 1000000000ULL macro 60 #define UNREASONABLE_LAT (NSEC_PER_SEC * 5) /* hopefully we resume in 5 secs */ 100 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 102 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 117 delta_ns -= NSEC_PER_SEC * SUSPEND_SECS * alarmcount; in sigalarm()
|
D | raw_skew.c | 43 #define NSEC_PER_SEC 1000000000LL macro 60 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 67 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 68 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts() 138 eppm = ((delta2-delta1)*NSEC_PER_SEC)/interval; in main()
|
D | nanosleep.c | 43 #define NSEC_PER_SEC 1000000000ULL macro 105 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 106 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 158 while (length <= (NSEC_PER_SEC * 10)) { in main()
|
D | set-timer-lat.c | 58 #define NSEC_PER_SEC 1000000000ULL macro 99 long long ret = NSEC_PER_SEC * b.tv_sec + b.tv_nsec; in timespec_sub() 101 ret -= NSEC_PER_SEC * a.tv_sec + a.tv_nsec; in timespec_sub() 115 delta_ns -= NSEC_PER_SEC * TIMER_SECS * alarmcount; in sigalarm()
|
D | adjtick.c | 41 #define NSEC_PER_SEC 1000000000LL macro 57 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in ts_to_nsec() 64 ts.tv_sec = ns/NSEC_PER_SEC; in nsec_to_ts() 65 ts.tv_nsec = ns%NSEC_PER_SEC; in nsec_to_ts()
|
D | inconsistency-check.c | 45 #define NSEC_PER_SEC 1000000000ULL macro 145 delta = list[inconsistent].tv_sec * NSEC_PER_SEC; in consistency_test() 147 delta -= list[inconsistent+1].tv_sec * NSEC_PER_SEC; in consistency_test()
|
D | set-2038.c | 43 #define NSEC_PER_SEC 1000000000LL macro 46 #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
|
D | leap-a-day.c | 64 #define NSEC_PER_SEC 1000000000ULL macro 85 while (ts.tv_nsec >= NSEC_PER_SEC) { in timespec_add() 86 ts.tv_nsec -= NSEC_PER_SEC; in timespec_add() 176 target = timespec_add(now, NSEC_PER_SEC/2); in test_hrtimer_failure() 366 ts.tv_nsec = NSEC_PER_SEC / 2; in main()
|
D | skew_consistency.c | 51 #define NSEC_PER_SEC 1000000000LL macro
|
D | change_skew.c | 44 #define NSEC_PER_SEC 1000000000LL macro
|
/tools/include/linux/ |
D | time64.h | 9 #define NSEC_PER_SEC 1000000000L macro
|
/tools/perf/bench/ |
D | numa.c | 1054 tprintf(" (%6.1fs converged)\n", *convergence / NSEC_PER_SEC); in calc_convergence() 1062 tprintf(" (%6.1fs de-converged)", runtime_ns_max / NSEC_PER_SEC); in calc_convergence() 1072 (double)(l+1)/g->p.nr_loops*100.0, runtime_ns_max / NSEC_PER_SEC / 60.0); in show_summary() 1229 runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1242 runtime_ns_max = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1250 td->runtime_ns = diff.tv_sec * NSEC_PER_SEC; in worker_thread() 1252 td->speed_gbs = bytes_done / (td->runtime_ns / NSEC_PER_SEC) / 1e9; in worker_thread() 1255 td->system_time_ns = rusage.ru_stime.tv_sec * NSEC_PER_SEC; in worker_thread() 1257 td->user_time_ns = rusage.ru_utime.tv_sec * NSEC_PER_SEC; in worker_thread() 1538 startup_sec = diff.tv_sec * NSEC_PER_SEC; in __bench_numa() [all …]
|
/tools/perf/util/ |
D | debug.c | 55 secs = nsecs / NSEC_PER_SEC; in veprintf_time() 56 nsecs -= secs * NSEC_PER_SEC; in veprintf_time()
|
D | util.c | 432 *ptime = time_sec * NSEC_PER_SEC + time_nsec; in parse_nsec_time()
|
/tools/perf/jvmti/ |
D | jvmti_agent.c | 106 #define NSEC_PER_SEC 1000000000 macro 112 return ((uint64_t) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec; in timespec_to_ns()
|
/tools/perf/ |
D | builtin-sched.c | 203 return ts.tv_sec * NSEC_PER_SEC + ts.tv_nsec; in get_nsecs() 227 u64 T0, T1, delta, min_delta = NSEC_PER_SEC; in calibrate_run_measurement_overhead() 244 u64 T0, T1, delta, min_delta = NSEC_PER_SEC; in calibrate_sleep_measurement_overhead() 456 sum = ru.ru_utime.tv_sec * NSEC_PER_SEC + ru.ru_utime.tv_usec * NSEC_PER_USEC; in get_cpu_usage_nsec_parent() 457 sum += ru.ru_stime.tv_sec * NSEC_PER_SEC + ru.ru_stime.tv_usec * NSEC_PER_USEC; in get_cpu_usage_nsec_parent() 1220 (double)work_list->max_lat_at / NSEC_PER_SEC); in output_lat_thread() 1495 color_fprintf(stdout, color, " %12.6f secs ", (double)timestamp / NSEC_PER_SEC); in map_switch_event()
|
D | builtin-stat.c | 178 r->tv_nsec = a->tv_nsec + NSEC_PER_SEC - b->tv_nsec; in diff_timespec() 366 if (WRITE_STAT_ROUND_EVENT(rs.tv_sec * NSEC_PER_SEC + rs.tv_nsec, INTERVAL)) in process_interval() 1483 avg_stats(&walltime_nsecs_stats) / NSEC_PER_SEC); in print_footer() 2205 tsh.tv_sec = stat_round->time / NSEC_PER_SEC; in process_stat_round_event() 2206 tsh.tv_nsec = stat_round->time % NSEC_PER_SEC; in process_stat_round_event()
|
D | builtin-timechart.c | 1292 sprintf(comm, "%s:%i (%2.2fs)", c->comm, p->pid, c->total_time / (double)NSEC_PER_SEC); in draw_process_bars() 1641 (tchart->last_time - tchart->first_time) / (double)NSEC_PER_SEC, output_name); in __cmd_timechart()
|
D | builtin-script.c | 468 secs = nsecs / NSEC_PER_SEC; in print_sample_start() 469 nsecs -= secs * NSEC_PER_SEC; in print_sample_start()
|
/tools/perf/util/scripting-engines/ |
D | trace-event-perl.c | 363 s = nsecs / NSEC_PER_SEC; in perl_process_tracepoint() 364 ns = nsecs - s * NSEC_PER_SEC; in perl_process_tracepoint()
|
D | trace-event-python.c | 430 s = nsecs / NSEC_PER_SEC; in python_process_tracepoint() 431 ns = nsecs - s * NSEC_PER_SEC; in python_process_tracepoint()
|