Lines Matching refs:clocks
39 static struct test_clock clocks[] = { variable
96 if (check_skip(clocks[clock_index].id)) in test_gettime()
99 switch (clocks[clock_index].id) { in test_gettime()
109 if (_gettime(clocks[clock_index].id, &parent_ts_old, raw_syscall)) in test_gettime()
118 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
124 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
132 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
138 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
141 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
146 clocks[clock_index].name, entry); in test_gettime()
160 ksft_set_plan(ARRAY_SIZE(clocks) * 2); in main()
166 for (i = 0; i < ARRAY_SIZE(clocks); i++) { in main()
167 if (clocks[i].off_id != -1) in main()
170 clocks[i].offset = offset; in main()
171 if (_settime(clocks[i].id, offset)) in main()
175 for (i = 0; i < ARRAY_SIZE(clocks); i++) { in main()
176 if (clocks[i].off_id != -1) in main()
177 offset = clocks[clocks[i].off_id].offset; in main()
179 offset = clocks[i].offset; in main()