| /tools/testing/selftests/bpf/ |
| A D | test_bpftool_synctypes.py | 7 import re 65 end_marker = re.compile('^};') 111 if re.search(end_marker, line): 182 end_marker = re.compile('^};') 231 end_marker = re.compile('}\n') 249 pattern = re.compile(r'([\w/]+) [|}]') 250 end_marker = re.compile('}') 269 end_marker = re.compile('}\\\\n') 288 end_marker = re.compile('\'$') 320 end_marker = re.compile('#define') [all …]
|
| /tools/testing/selftests/tc-testing/plugin-lib/ |
| A D | valgrindPlugin.py | 8 import re 114 self.definitely_lost_re = re.compile( 115 … r'definitely lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\sblocks', re.MULTILINE | re.DOTALL) 116 self.indirectly_lost_re = re.compile( 117 … r'indirectly lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL) 118 self.possibly_lost_re = re.compile( 119 r'possibly lost:\s+([,0-9]+)bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL) 120 self.non_leak_error_re = re.compile( 121 … r'ERROR SUMMARY:\s+([,0-9]+) errors from\s+([,0-9]+)\s+contexts', re.MULTILINE | re.DOTALL)
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | spin_lock.c | 61 regex_t re; in match_regex() local 63 err = regcomp(&re, pattern, REG_NOSUB); in match_regex() 67 regerror(err, &re, errbuf, sizeof(errbuf)); in match_regex() 71 rc = regexec(&re, string, 0, NULL, 0); in match_regex() 72 regfree(&re); in match_regex()
|
| A D | stream.c | 49 regex_t re; in match_regex() local 51 err = regcomp(&re, pattern, REG_EXTENDED | REG_NEWLINE); in match_regex() 54 rc = regexec(&re, string, 0, NULL, 0); in match_regex() 55 regfree(&re); in match_regex()
|
| A D | ctx_rewrite.c | 330 regex_t *re; in compile_regex() local 333 re = malloc(sizeof(regex_t)); in compile_regex() 334 if (!re) { in compile_regex() 339 err = regcomp(re, pat, REG_EXTENDED); in compile_regex() 343 regerror(err, re, errbuf, sizeof(errbuf)); in compile_regex() 345 free(re); in compile_regex() 349 return re; in compile_regex() 352 static void free_regex(regex_t *re) in free_regex() argument 354 if (!re) in free_regex() 357 regfree(re); in free_regex() [all …]
|
| /tools/perf/arch/x86/util/ |
| A D | header.c | 96 regex_t re; in strcmp_cpuid_str() local 112 if (regcomp(&re, mapcpuid, REG_EXTENDED) != 0) { in strcmp_cpuid_str() 118 match = !regexec(&re, id, 1, pmatch, 0); in strcmp_cpuid_str() 119 regfree(&re); in strcmp_cpuid_str()
|
| /tools/testing/selftests/devices/error_logs/ |
| A D | test_device_error_logs.py | 16 import re 27 RE_log = re.compile( 30 RE_tag = re.compile(r" (?P<key>[^=]+)=(?P<value>.*)")
|
| /tools/testing/selftests/drivers/net/hw/ |
| A D | iou-zcrx.py | 4 import re 18 values = re.findall(r'Combined:\s+(\d+)', output) 24 values = re.search(r'New RSS context is (\d+)', output).group(1) 31 values = re.search(r'ID (\d+)', output).group(1) 37 values = re.search(r'ID (\d+)', output).group(1)
|
| /tools/testing/selftests/devices/probe/ |
| A D | test_discoverable_devices.py | 20 import re 40 dir_regex = re.compile(pci_controller_sysfs_dir) 50 dir_regex = re.compile(usb_controller_sysfs_dir) 57 re_dt_mmio = re.compile("OF_FULLNAME=.*@([0-9a-f]+)") 73 re_of_fullname = re.compile("OF_FULLNAME=(.*)") 94 re_usb_version = re.compile(r"PRODUCT=.*/(\d)/.*") 100 re_busnum = re.compile("BUSNUM=(.*)") 122 re_of_fullname = re.compile(str(controller["of-fullname-regex"]))
|
| /tools/testing/selftests/x86/bugs/ |
| A D | its_permutations.py | 9 import os, sys, subprocess, itertools, re, shutil 68 …output = re.sub(pattern, lambda match: f"{color}{match.group(0)}{ENDC}", output, flags=re.MULTILIN…
|
| /tools/crypto/tcrypt/ |
| A D | tcrypt_speed_compare.py | 54 import re 59 match = re.search(pattern, line) 71 match = re.search(pattern_operations, line) 80 match = re.search(pattern_cycles, line)
|
| /tools/testing/kunit/ |
| A D | kunit_config.py | 10 import re 88 is_not_set_matcher = re.compile(CONFIG_IS_NOT_SET_PATTERN) 89 config_matcher = re.compile(CONFIG_PATTERN)
|
| A D | kunit_parser.py | 14 import re 211 KTAP_START = re.compile(r'\s*KTAP version ([0-9]+)$') 212 TAP_START = re.compile(r'\s*TAP version ([0-9]+)$') 213 KTAP_END = re.compile(r'\s*(List of all partitions:|' 215 EXECUTOR_ERROR = re.compile(r'\s*kunit executor: (.*)$') 303 TEST_HEADER = re.compile(r'^\s*# Subtest: (.*)$') 327 TEST_PLAN = re.compile(r'^\s*1\.\.([0-9]+)') 355 TEST_RESULT = re.compile(r'^\s*(ok|not ok) ([0-9]+) (- )?([^#]*)( # .*)?$') 357 TEST_RESULT_SKIP = re.compile(r'^\s*(ok|not ok) ([0-9]+) (- )?(.*) # SKIP(.*)$') 457 while lines and not any(re.match(lines.peek()) [all …]
|
| /tools/testing/selftests/hid/tests/ |
| A D | conftest.py | 10 import re 61 modalias_re = re.compile(r"alias:\s+hid:b0003g.*v([0-9a-fA-F]+)p([0-9a-fA-F]+)")
|
| /tools/perf/scripts/python/ |
| A D | compaction-times.py | 9 import re 29 def __init__(self, re): argument 30 self.re = re 33 m = self.re.search(comm) 272 pid_re = re.compile(pid_regex) 305 comm_re=re.compile(opt)
|
| A D | mem-phys-addr.py | 8 import re 49 m = re.split('-|:', line, 2)
|
| /tools/power/pm-graph/ |
| A D | sleepgraph.py | 57 import re 1275 if re.match(entry['match'], msg): 1571 m = re.match(tp.tstatfmt, line) 2825 re = ritem.time + ritem.length 2827 ((s >= re) and (e >= re)))): 2887 re = ritem.dev['end'] 2889 ((s >= re) and (e >= re)))): 4068 if(re.match(s, msg)): 6299 m = re.search(start, html) 6303 list = re.finditer(start, html) [all …]
|
| A D | bootgraph.py | 31 import re 80 m = re.match(r'^[Ll]inux *[Vv]ersion *(?P<v>\S*) .*', msg) 312 if re.match(tp.stampfmt, line): 315 elif re.match(tp.sysinfofmt, line): 318 elif re.match(tp.cmdlinefmt, line): 321 elif re.match(tp.kparamsfmt, line): 327 m = re.match(r'[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line) 335 if(ktime == 0.0 and re.match(r'^Linux version .*', msg)): 346 m = re.match(r'^calling *(?P<f>.*)\+.* @ (?P<p>[0-9]*)', msg) 362 if(re.match(r'^Freeing unused kernel .*', msg)): [all …]
|
| /tools/perf/pmu-events/ |
| A D | models.py | 7 import re 53 if re.match(regex, cpuid):
|
| A D | metric.py | 6 import re 307 s = re.sub(r'([^\\]),', r'\1\\,', s) 308 return re.sub(r'([^\\])=', r'\1\\=', s) 319 result = re.sub('/', '@', self.name) 550 py = re.sub(r'([a-zA-Z][^-+/\* \\\(\),]*(?:\\.[^-+/\* \\\(\),]*)*)', 553 py = re.sub(r'#Event\(r"([^"]*)"\)', r'Literal("#\1")', py) 557 py = re.sub(r'0Event\(r"[xX]([0-9a-fA-F]*)"\)', r'Event("0x\1")', py) 559 py = re.sub(r'([0-9]+)Event\(r"(e[0-9]+)"\)', r'\1\2', py) 563 py = re.sub(rf'Event\(r"{kw}"\)', kw, py)
|
| /tools/testing/selftests/drivers/net/lib/py/ |
| A D | load.py | 3 import re 64 live_port_pattern = re.compile(fr":{self.port:04X} 0[^6] ")
|
| /tools/testing/selftests/net/lib/py/ |
| A D | nsim.py | 7 import re 20 nsimnamere = re.compile(r"eni\d+np(\d+)")
|
| /tools/tracing/rtla/ |
| A D | Makefile | 37 FEATURE_TESTS += clang-bpf-co-re 43 FEATURE_DISPLAY += clang-bpf-co-re
|
| A D | Makefile.config | 75 $(call feature_check,clang-bpf-co-re) 76 ifeq ($(feature-clang-bpf-co-re), 1)
|
| /tools/workqueue/ |
| A D | wq_monitor.py | 36 import re 142 filter_re = re.compile(re_str) if re_str else None
|