Lines Matching refs:re
5 import logging, os, re, shutil, time
116 if not re.search('Using.*/dev interface to.*clock', hwclock_output):
171 finished_regex = re.compile(r'powerd_suspend\[\d+\]: Resume finished')
214 match = re.search(r'([0-9]+) seconds since .+ (-?[0-9.]+) sec',
215 utils.read_file(self.HWCLOCK_FILE), re.DOTALL)
227 wake_elog = (['unknown'] + re.findall(r'Wake Source.*', elog))[-1]
229 match = re.search(r'PM1_STS: WAK.*', line)
236 if (re.search(b, utils.get_board()) and
237 re.search(e, wake_elog) and re.search(s, wake_syslog)):
256 regex = re.compile(r'TSC at resume: (\d+)$')
269 regex = re.compile(r'PM: resume of devices complete after ([0-9.]+)')
281 regex = re.compile(r'call ([^ ]+)\+ returned 0 after ([0-9]+) usecs')
313 warning_regex = re.compile(r' kernel: \[.*WARNING:')
314 abort_regex = re.compile(r' kernel: \[.*Freezing of tasks abort'
318 fail_regex = re.compile(r'powerd_suspend\[\d+\]: Error')
331 if re.search(p1, src) and re.search(p2, text):
338 match = re.search(r'last active wakeup source: (.*)$',
339 '\n'.join(self._logs[i-5:i+3]), re.MULTILINE)
344 if (re.search(b, utils.get_board()) and
345 re.search(w, wake_source)):
388 for msg in re.findall(r'^.*ERROR.*$',
389 utils.read_file('/sys/firmware/log'), re.M):
391 if (re.search(board, utils.get_board()) and
392 re.search(pattern, msg)):