Lines Matching full:observed
29 /* Report as observed from console. */
35 } observed = { variable
36 .lock = __SPIN_LOCK_UNLOCKED(observed.lock),
39 /* Probe for console output: obtains observed lines of interest. */
44 if (observed.ignore) in probe_console()
46 spin_lock_irqsave(&observed.lock, flags); in probe_console()
55 strscpy(observed.header, buf, in probe_console()
56 min(len + 1, sizeof(observed.header))); in probe_console()
57 WRITE_ONCE(observed.available, true); in probe_console()
58 observed.ignore = true; in probe_console()
60 spin_unlock_irqrestore(&observed.lock, flags); in probe_console()
66 return READ_ONCE(observed.available); in report_available()
79 /* Check observed report matches information in @r. */
82 typeof(observed.header) expected_header; in report_matches()
106 spin_lock_irqsave(&observed.lock, flags); in report_matches()
110 /* Finally match expected output to what we actually observed. */ in report_matches()
111 ret = strstr(observed.header, expected_header); in report_matches()
113 spin_unlock_irqrestore(&observed.lock, flags); in report_matches()
527 spin_lock_irqsave(&observed.lock, flags); in test_init()
528 observed.header[0] = '\0'; in test_init()
529 observed.ignore = false; in test_init()
530 observed.available = false; in test_init()
531 spin_unlock_irqrestore(&observed.lock, flags); in test_init()