Lines Matching defs:critical
9 * outcome to a data race when the critical sections are not aligned.
12 * - Each thread contains a single contiguous critical section.
17 * If a single data race has N critical sections then we may remove
31 * outside of the critical section.
37 * | # | | # | The '#' is the critical section.
42 * So we can either have the critical section of the shorter race
43 * before that of the longer one. Or the critical section of the
48 * the shorter. We also vary the distance of the critical section from
52 * When entering their critical sections, both threads increment the
54 * leaving their critical sections. We record the value of 'c' when A
56 * critical sections overlap and their ordering.
63 * Any other combination of 'cs' and 'ct' means the critical sections
77 /* The time signature of a code path containing a critical section. */
79 /* The delay until the start of the critical section */
81 /* The length of the critical section */
97 /* Degnerate cases where the critical sections are already
99 * inside the critical section is required for the other
117 /* Same as above, but with critical section at entry or exit */
185 int cs, ct, r, too_early = 0, critical = 0, too_late = 0;
207 critical++;
213 if (critical > 100) {
219 tst_res(critical > 50 ? TPASS : TFAIL,
222 critical, too_early, too_late);