Lines Matching refs:clocks
37 static struct test_clock clocks[] = { variable
94 if (check_skip(clocks[clock_index].id)) in test_gettime()
97 switch (clocks[clock_index].id) { in test_gettime()
107 if (_gettime(clocks[clock_index].id, &parent_ts_old, raw_syscall)) in test_gettime()
116 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
122 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
130 if (_gettime(clocks[clock_index].id, &cur_ts, raw_syscall)) in test_gettime()
136 clocks[clock_index].name, entry, parent_ts_old.tv_sec, in test_gettime()
139 clock_settime(clocks[clock_index].id, &cur_ts); in test_gettime()
144 clocks[clock_index].name, entry); in test_gettime()
158 ksft_set_plan(ARRAY_SIZE(clocks) * 2); in main()
164 for (i = 0; i < ARRAY_SIZE(clocks); i++) { in main()
165 if (clocks[i].off_id != -1) in main()
168 clocks[i].offset = offset; in main()
169 if (_settime(clocks[i].id, offset)) in main()
173 for (i = 0; i < ARRAY_SIZE(clocks); i++) { in main()
174 if (clocks[i].off_id != -1) in main()
175 offset = clocks[clocks[i].off_id].offset; in main()
177 offset = clocks[i].offset; in main()