Lines Matching +full:detect +full:- +full:us

1 // SPDX-License-Identifier: GPL-2.0-only
33 * Any bug related to task migration is likely to be timing-dependent; perform
86 * Bump the sequence count twice to allow the reader to detect in migration_worker()
89 * is in-progress, while a completely different count indicates in migration_worker()
96 * stable, i.e. while changing affinity is in-progress. in migration_worker()
108 * Wait 1-10us before proceeding to the next iteration and more in migration_worker()
135 * 3. To ensure the read-side makes efficient forward progress, in migration_worker()
136 * e.g. if getcpu() involves a syscall. Stalling the read-side in migration_worker()
138 * to stabilize and less time trying to hit the timing-dependent in migration_worker()
141 * Because any bug in this area is likely to be timing-dependent, in migration_worker()
142 * run with a range of delays at 1us intervals from 1us to 10us in migration_worker()
144 * it can hit _only_ the original bug and not detect future in migration_worker()
147 * The original bug can reproduce with a delay up to ~500us on in migration_worker()
148 * x86-64, but starts to require more iterations to reproduce in migration_worker()
149 * as the delay creeps above ~10us, and the average runtime of in migration_worker()
151 * at 10us to keep test runtime reasonable while minimizing in migration_worker()
154 * The lower bound for reproducing the bug is likely below 1us, in migration_worker()
155 * e.g. failures occur on x86-64 with nanosleep(0), but at that in migration_worker()
179 min_cpu = -1; in calc_min_max_cpu()
180 max_cpu = -1; in calc_min_max_cpu()
186 if (min_cpu == -1) in calc_min_max_cpu()
199 printf("usage: %s [-h] [-u]\n", name); in help()
200 printf(" -u: Don't sanity check the number of successful KVM_RUNs\n"); in help()
214 while ((opt = getopt(argc, argv, "hu")) != -1) { in main()
255 * count is odd (migration in-progress). in main()
260 * i.e. if a migration is in-progress. in main()
285 * conservative ratio on x86-64, which can do _more_ KVM_RUNs than in main()
286 * migrations given the 1us+ delay in the migration task. in main()
297 " or run with -u to disable this sanity check.", i); in main()