Lines Matching full:observed
52 /* Report as observed from console. */
57 } observed = { variable
58 .lock = __SPIN_LOCK_UNLOCKED(observed.lock),
93 * Probe for console output: checks if a race was reported, and obtains observed
108 spin_lock_irqsave(&observed.lock, flags); in probe_console()
109 nlines = observed.nlines; in probe_console()
118 strscpy(observed.lines[0], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
121 strscpy(observed.lines[nlines++], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
128 strcpy(observed.lines[nlines++], "<none>"); in probe_console()
133 WRITE_ONCE(observed.nlines, nlines); /* Publish new nlines. */ in probe_console()
134 spin_unlock_irqrestore(&observed.lock, flags); in probe_console()
141 return READ_ONCE(observed.nlines) == ARRAY_SIZE(observed.lines); in report_available()
155 /* Check observed report matches information in @r. */
162 typeof(*observed.lines) *expect; in __report_matches()
171 expect = kmalloc(sizeof(observed.lines), GFP_KERNEL); in __report_matches()
247 spin_lock_irqsave(&observed.lock, flags); in __report_matches()
251 /* Finally match expected output to what we actually observed. */ in __report_matches()
252 ret = strstr(observed.lines[0], expect[0]) && in __report_matches()
254 ((strstr(observed.lines[1], expect[1]) && in __report_matches()
255 strstr(observed.lines[2], expect[2])) || in __report_matches()
256 (strstr(observed.lines[1], expect[2]) && in __report_matches()
257 strstr(observed.lines[2], expect[1]))); in __report_matches()
259 spin_unlock_irqrestore(&observed.lock, flags); in __report_matches()
1517 spin_lock_irqsave(&observed.lock, flags); in test_init()
1518 for (i = 0; i < ARRAY_SIZE(observed.lines); ++i) in test_init()
1519 observed.lines[i][0] = '\0'; in test_init()
1520 observed.nlines = 0; in test_init()
1521 spin_unlock_irqrestore(&observed.lock, flags); in test_init()