Lines Matching refs:delay
125 * Internal; Number of spins to use in the delay.
129 int delay;
142 * random delay can be calculated. Defaults to 1024.
272 pair->delay = 0;
371 * Calculate various statistics and the delay
399 * scenario (and others) a randomised delay is introduced before the syscalls
411 * | delay | Syscall B | Thread B
417 * The delay is not introduced immediately and the delay range is only
421 * The delay range is chosen so that any point in Syscall A could be
423 * range. Because the delay range may be too large for a linear search, we use
426 * The delay range goes from positive to negative. A negative delay will delay
427 * thread A and a positive one will delay thread B. The range is bounded by
432 * In order to calculate the lower bound (the max delay of A) we can simply
434 * the upper bound (the max delay of B), we just take the execution time of A
438 * spin takes and divide the delay time with it. We find this by first
449 * period is ended. On all further iterations a random delay is calculated and
453 * may fail to introduce a delay (when one is needed) in situations where
465 pair->delay = pair->delay_bias;
491 pair->delay += (int)(1.1 * time_delay / per_spin_time);
504 tst_res(TWARN, "Can't calculate random delay");
701 volatile int delay;
707 delay = pair->delay;
709 while (delay < 0) {
711 delay++;
714 while (delay < 0)
715 delay++;
742 volatile int delay;
746 delay = pair->delay;
748 while (delay > 0) {
750 delay--;
753 while (delay > 0)
754 delay--;
774 * Add some amount to the delay bias
784 * that the delay range will not include the correct values if too many of the
795 * tst_fzsync_pair_add_bias() to further delay syscall B.