Lines Matching full:observed

44 /* Report as observed from console. */
49 } observed = { variable
50 .lock = __SPIN_LOCK_UNLOCKED(observed.lock),
85 * Probe for console output: checks if a race was reported, and obtains observed
100 spin_lock_irqsave(&observed.lock, flags); in probe_console()
101 nlines = observed.nlines; in probe_console()
110 strscpy(observed.lines[0], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
113 strscpy(observed.lines[nlines++], buf, min(len + 1, sizeof(observed.lines[0]))); in probe_console()
120 strcpy(observed.lines[nlines++], "<none>"); in probe_console()
125 WRITE_ONCE(observed.nlines, nlines); /* Publish new nlines. */ in probe_console()
126 spin_unlock_irqrestore(&observed.lock, flags); in probe_console()
133 return READ_ONCE(observed.nlines) == ARRAY_SIZE(observed.lines); in report_available()
147 /* Check observed report matches information in @r. */
154 typeof(observed.lines) expect; in report_matches()
233 spin_lock_irqsave(&observed.lock, flags); in report_matches()
237 /* Finally match expected output to what we actually observed. */ in report_matches()
238 ret = strstr(observed.lines[0], expect[0]) && in report_matches()
240 ((strstr(observed.lines[1], expect[1]) && in report_matches()
241 strstr(observed.lines[2], expect[2])) || in report_matches()
242 (strstr(observed.lines[1], expect[2]) && in report_matches()
243 strstr(observed.lines[2], expect[1]))); in report_matches()
245 spin_unlock_irqrestore(&observed.lock, flags); in report_matches()
1117 spin_lock_irqsave(&observed.lock, flags); in test_init()
1118 for (i = 0; i < ARRAY_SIZE(observed.lines); ++i) in test_init()
1119 observed.lines[i][0] = '\0'; in test_init()
1120 observed.nlines = 0; in test_init()
1121 spin_unlock_irqrestore(&observed.lock, flags); in test_init()