Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 30) sorted by relevance

12

/tools/testing/selftests/tc-testing/plugin-lib/
DvalgrindPlugin.py8 import re
113 self.definitely_lost_re = re.compile(
114 … r'definitely lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\sblocks', re.MULTILINE | re.DOTALL)
115 self.indirectly_lost_re = re.compile(
116 … r'indirectly lost:\s+([,0-9]+)\s+bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL)
117 self.possibly_lost_re = re.compile(
118 r'possibly lost:\s+([,0-9]+)bytes in\s+([,0-9]+)\s+blocks', re.MULTILINE | re.DOTALL)
119 self.non_leak_error_re = re.compile(
120 … r'ERROR SUMMARY:\s+([,0-9]+) errors from\s+([,0-9]+)\s+contexts', re.MULTILINE | re.DOTALL)
/tools/perf/arch/x86/util/
Dheader.c102 regex_t re; in strcmp_cpuid_str() local
118 if (regcomp(&re, mapcpuid, REG_EXTENDED) != 0) { in strcmp_cpuid_str()
124 match = !regexec(&re, id, 1, pmatch, 0); in strcmp_cpuid_str()
125 regfree(&re); in strcmp_cpuid_str()
/tools/testing/kunit/
Dkunit_parser.py9 import re
50 kunit_start_re = re.compile(r'TAP version [0-9]+$')
51 kunit_end_re = re.compile('(List of all partitions:|'
98 TAP_ENTRIES = re.compile(r'^(TAP|[\s]*ok|[\s]*not ok|[\s]*[0-9]+\.\.[0-9]+|[\s]*#).*$')
111 OK_NOT_OK_SUBTEST = re.compile(r'^[\s]+(ok|not ok) [0-9]+ - (.*)$')
113 OK_NOT_OK_MODULE = re.compile(r'^(ok|not ok) ([0-9]+) - (.*)$')
138 SUBTEST_DIAGNOSTIC = re.compile(r'^[\s]+# .*?: (.*)$')
165 SUBTEST_HEADER = re.compile(r'^[\s]+# Subtest: (.*)$')
178 SUBTEST_PLAN = re.compile(r'[\s]+[0-9]+\.\.([0-9]+)')
263 TAP_HEADER = re.compile(r'^TAP version 14$')
[all …]
Dkunit_config.py10 import re
63 is_not_set_matcher = re.compile(CONFIG_IS_NOT_SET_PATTERN)
64 config_matcher = re.compile(CONFIG_PATTERN)
/tools/perf/scripts/python/
Dmem-phys-addr.py12 import re
34 m = re.split('-|:',j,2)
87 m = re.split('-|:',j,2)
Dcompaction-times.py9 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)
/tools/power/pm-graph/
Dsleepgraph.py57 import re
390 m = re.match('(?P<name>.*)_dmesg\.txt.*', self.dmesgfile)
394 m = re.match('(?P<name>.*)_ftrace\.txt.*', self.ftracefile)
429 if re.match('^processor[ \t]*:[ \t]*[0-9]*', line):
434 m = re.match('^MemTotal:[ \t]*(?P<sz>[0-9]*) *kB', line)
437 m = re.match('^MemFree:[ \t]*(?P<sz>[0-9]*) *kB', line)
500 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
514 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
597 m = re.match('.* '+arg+'=(?P<arg>.*) ', data);
601 m = re.match('.* '+arg+'=(?P<arg>.*)', data);
[all …]
Dbootgraph.py31 import re
310 if re.match(tp.stampfmt, line):
313 elif re.match(tp.sysinfofmt, line):
316 elif re.match(tp.cmdlinefmt, line):
319 elif re.match(tp.kparamsfmt, line):
325 m = re.match('[ \t]*(\[ *)(?P<ktime>[0-9\.]*)(\]) (?P<msg>.*)', line)
333 if(ktime == 0.0 and re.match('^Linux version .*', msg)):
337 m = re.match('.* setting system clock to (?P<d>[0-9\-]*)[ A-Z](?P<t>[0-9:]*) UTC.*', msg)
344 m = re.match('^calling *(?P<f>.*)\+.* @ (?P<p>[0-9]*)', msg)
350 m = re.match('^initcall *(?P<f>.*)\+.* returned (?P<r>.*) after (?P<t>.*) usecs', msg)
[all …]
/tools/bpf/bpftool/
DMakefile65 clang-bpf-co-re
67 clang-bpf-co-re
133 ifeq ($(feature-clang-bpf-co-re),1)
/tools/cgroup/
Diocost_coef_gen.py22 import re
143 elevator = re.sub(r'.*\[(.*)\].*', r'\1', f.read().strip())
Diocost_monitor.py13 import re
214 filter_re = re.compile(re_str) if re_str else None
/tools/power/x86/intel_pstate_tracer/
Dintel_pstate_tracer.py31 import re
438re.search(r'(^(.*?)\[)((\d+)[^\]])(.*?)(\d+)([.])(\d+)(.*?core_busy=)(\d+)(.*?scaled=)(\d+)(.*?fro…
460 search_obj = re.search(r'.*?io_boost=(\d+)', line)
544 for p in re.split("[,]", cpu_list):
/tools/testing/selftests/tc-testing/
Dtdc.py10 import re
295 match_pattern = re.compile(
296 str(tidx["matchPattern"]), re.DOTALL | re.MULTILINE)
299 match_index = re.findall(match_pattern, procout)
/tools/perf/util/
Dsetup.py3 from re import sub
Dheader.c825 regex_t re; in strcmp_cpuid_str() local
829 if (regcomp(&re, mapcpuid, REG_EXTENDED) != 0) { in strcmp_cpuid_str()
835 match = !regexec(&re, cpuid, 1, pmatch, 0); in strcmp_cpuid_str()
836 regfree(&re); in strcmp_cpuid_str()
/tools/testing/selftests/kmod/
Dkmod.sh567 re='^[0-9]+$'
568 if ! [[ $1 =~ $re ]]; then
/tools/kvm/kvm_stat/
Dkvm_stat33 import re
235 TRACE_FILTER = re.compile(r'^[^\(]*$')
516 return re.match(fields_filter, field) is not None
649 match = re.match(r'(.*)\((.*)\)', name)
1338 re.compile(regex)
1342 except re.error:
1726 re.compile(options.fields)
1727 except re.error:
/tools/testing/selftests/sysctl/
Dsysctl.sh842 re='^[0-9]+$'
843 if ! [[ $1 =~ $re ]]; then
/tools/build/feature/
DMakefile71 test-clang-bpf-co-re.bin \
333 $(OUTPUT)test-clang-bpf-co-re.bin:
/tools/lib/traceevent/Documentation/
Dlibtraceevent-tseq.txt40 The _trace_seq_reset()_ function re-initializes the trace sequence _s_. All
/tools/objtool/Documentation/
Dstack-validation.txt170 For asm files, if you're getting an error which doesn't make sense,
216 If you're 100% sure the code won't affect stack traces, or if you're
/tools/lib/bpf/
DREADME.rst30 such as BPF program or BPF map. They're represented by corresponding
/tools/perf/Documentation/
Dperf-script-python.txt206 Of course, for this script, we're not interested in printing every
320 you're interested in - basically find the tracepoint(s) you're
/tools/bpf/bpftool/Documentation/
Dbpftool-gen.rst260 /* detach and re-attach sys_exit program */
/tools/perf/tests/
Dmake168 # FIXME 'install-*' commented out till they're fixed

12