Home
last modified time | relevance | path

Searched refs:regex (Results 1 - 25 of 112) sorted by relevance

12345

/test/testfwk/arkxtest/jsunit/src/module/mock/
H A DArgumentMatchers.js44 let regex = arguments[0];
45 if (ArgumentMatchers.isRegExp(regex)) {
46 return regex;
48 throw Error('not a regex');
57 let regex = arguments[1];
64 if (typeof arg === 'string' && !regex) {
68 if (typeof arg === 'boolean' && !regex) {
72 if (typeof arg === 'number' && !regex) {
76 if (typeof arg === 'object' && !regex) {
80 if (typeof arg === 'function' && !regex) {
[all...]
/test/testfwk/arkxtest/hamock/src/main/mock/
H A DArgumentMatchers.js37 static matchRegexs(regex) {
38 if (ArgumentMatchers.isRegExp(regex)) {
39 return regex;
41 throw Error('not a regex');
48 let regex = args[1];
54 if (typeof arg === 'string' && !regex) {
58 if (typeof arg === 'boolean' && !regex) {
62 if (typeof arg === 'number' && !regex) {
66 if (typeof arg === 'object' && !regex) {
70 if (typeof arg === 'function' && !regex) {
[all...]
/kernel/linux/linux-5.10/tools/perf/trace/beauty/
H A Dx86_arch_prctl.sh16 regex=`printf '^[[:space:]]*#[[:space:]]*define[[:space:]]+ARCH_([[:alnum:]_]+)[[:space:]]+(%s[[:xdigit:]]+).*' ${prefix}`
18 egrep -q $regex ${prctl_arch_header} && \
19 (egrep $regex ${prctl_arch_header} | \
20 sed -r "s/$regex/\2 \1/g" | \
/kernel/linux/linux-6.6/tools/perf/trace/beauty/
H A Dx86_arch_prctl.sh16 regex=`printf '^[[:space:]]*#[[:space:]]*define[[:space:]]+ARCH_([[:alnum:]_]+)[[:space:]]+(%s[[:xdigit:]]+).*' ${prefix}`
18 grep -E -q $regex ${prctl_arch_header} && \
19 (grep -E $regex ${prctl_arch_header} | \
20 sed -r "s/$regex/\2 \1/g" | \
/kernel/linux/linux-5.10/Documentation/trace/postprocess/
H A Dtrace-pagealloc-postprocess.pl79 # Defaults for dynamically discovered regex's
82 # Dyanically discovered regex
85 # Static regex used. Specified like this for readability and for use with /o
94 my $regex;
98 $regex = $default;
104 $regex = $1;
105 $regex =~ s/%p/\([0-9a-f]*\)/g;
106 $regex =~ s/%d/\([-0-9]*\)/g;
107 $regex =~ s/%lu/\([0-9]*\)/g;
114 foreach $tuple (split /\s/, $regex) {
[all...]
H A Dtrace-vmscan-postprocess.pl109 # Defaults for dynamically discovered regex's
120 # Dyanically discovered regex
131 # Static regex used. Specified like this for readability and for use with /o
140 my $regex;
152 $regex = $1;
153 $regex =~ s/%s/\([0-9a-zA-Z|_]*\)/g;
154 $regex =~ s/%p/\([0-9a-f]*\)/g;
155 $regex =~ s/%d/\([-0-9]*\)/g;
156 $regex =~ s/%ld/\([-0-9]*\)/g;
157 $regex
[all...]
/kernel/linux/linux-6.6/Documentation/trace/postprocess/
H A Dtrace-pagealloc-postprocess.pl79 # Defaults for dynamically discovered regex's
82 # Dyanically discovered regex
85 # Static regex used. Specified like this for readability and for use with /o
94 my $regex;
98 $regex = $default;
104 $regex = $1;
105 $regex =~ s/%p/\([0-9a-f]*\)/g;
106 $regex =~ s/%d/\([-0-9]*\)/g;
107 $regex =~ s/%lu/\([0-9]*\)/g;
114 foreach $tuple (split /\s/, $regex) {
[all...]
H A Dtrace-vmscan-postprocess.pl109 # Defaults for dynamically discovered regex's
120 # Dyanically discovered regex
131 # Static regex used. Specified like this for readability and for use with /o
140 my $regex;
152 $regex = $1;
153 $regex =~ s/%s/\([0-9a-zA-Z|_]*\)/g;
154 $regex =~ s/%p/\([0-9a-f]*\)/g;
155 $regex =~ s/%d/\([-0-9]*\)/g;
156 $regex =~ s/%ld/\([-0-9]*\)/g;
157 $regex
[all...]
/kernel/linux/linux-5.10/kernel/trace/
H A Dtrace_events_filter.c710 cmp = pred->regex.match(addr, &pred->regex, pred->regex.field_len); in filter_pred_string()
723 cmp = pred->regex.match(str, &pred->regex, len); in filter_pchar()
773 cmp = pred->regex.match(addr, &pred->regex, str_len); in filter_pred_strloc()
811 cmp = pred->regex.match(current->comm, &pred->regex, in filter_pred_comm()
822 * regex_match_foo - Basic regex callback
[all...]
/kernel/linux/linux-6.6/kernel/trace/
H A Dtrace_events_filter.c80 struct regex *regex; member
203 kfree(pred->regex); in free_predicate()
842 cmp = pred->regex->match(addr, pred->regex, pred->regex->field_len); in filter_pred_string()
855 cmp = pred->regex->match(str, pred->regex, len); in filter_pchar()
905 cmp = pred->regex->match(addr, pred->regex, str_le in filter_pred_strloc()
[all...]
/kernel/linux/linux-5.10/tools/bpf/
H A Dbpf_jit_disasm.c25 #include <regex.h>
179 regex_t regex; in get_last_jit_image() local
185 ret = regcomp(&regex, "flen=[[:alnum:]]+ proglen=[[:digit:]]+ " in get_last_jit_image()
193 ret = regexec(&regex, ptr, 1, pmatch, 0); in get_last_jit_image()
206 regfree(&regex); in get_last_jit_image()
247 regfree(&regex); in get_last_jit_image()
/kernel/linux/linux-6.6/tools/bpf/
H A Dbpf_jit_disasm.c25 #include <regex.h>
182 regex_t regex; in get_last_jit_image() local
188 ret = regcomp(&regex, "flen=[[:alnum:]]+ proglen=[[:digit:]]+ " in get_last_jit_image()
196 ret = regexec(&regex, ptr, 1, pmatch, 0); in get_last_jit_image()
209 regfree(&regex); in get_last_jit_image()
250 regfree(&regex); in get_last_jit_image()
/kernel/liteos_a/testsuites/unittest/process/fs/smoke/
H A DIt_process_fs_009.cpp36 #include <regex>
46 std::regex reg("'user:\\[[0-9]+\\]'"); in ItProcessFs009()
H A DIt_process_fs_007.cpp36 #include <regex>
46 std::regex reg("'uts:\\[[0-9]+\\]'"); in ItProcessFs007()
H A DIt_process_fs_008.cpp36 #include <regex>
46 std::regex reg("'mnt:\\[[0-9]+\\]'"); in ItProcessFs008()
H A DIt_process_fs_010.cpp36 #include <regex>
46 std::regex reg("'pid:\\[[0-9]+\\]'"); in ItProcessFs010()
H A DIt_process_fs_011.cpp36 #include <regex>
46 std::regex reg("'net:\\[[0-9]+\\]'"); in ItProcessFs011()
H A DIt_process_fs_022.cpp36 #include <regex>
46 std::regex reg("'time:\\[[0-9]+\\]'"); in ItProcessFs022()
H A DIt_process_fs_021.cpp36 #include <regex>
46 std::regex reg("'ipc:\\[[0-9]+\\]'"); in ItProcessFs021()
/kernel/liteos_a/testsuites/unittest/container/smoke/
H A DIt_net_container_003.cpp32 #include <regex>
75 std::regex reg("'net:\\[[0-9]+\\]'"); in ItNetContainer003()
/kernel/linux/build/
H A Dkernel_build.py55 def report_build_warning(self, filename, regex, details):
66 warning = re.search(regex, line).group(0)
81 def parse_build_warning(self, blocks, regex, title_regex):
96 if not regex in line:
151 for regex, title_regex in patterns:
152 items = self.parse_build_warning(blocks, regex, title_regex)
/kernel/liteos_a/testsuites/unittest/process/plimits/
H A DIt_process_plimits.h37 #include <regex>
42 #include <regex>
/kernel/linux/linux-5.10/scripts/
H A Dtags.sh146 # - No regex modifiers
230 regex=()
239 regex[${#regex[@]}]="--regex-$lang=${r}b"
252 regex[${#regex[@]}]="--regex=$r"
275 "${regex[@]}"
279 --langdef=kconfig --language-force=kconfig "${regex[
[all...]
/kernel/linux/linux-6.6/scripts/
H A Dtags.sh146 # - No regex modifiers
230 regex=()
239 regex[${#regex[@]}]="--regex-$lang=${r}b"
252 regex[${#regex[@]}]="--regex=$r"
279 "${regex[@]}"
284 KCONFIG_ARGS=(--langdef=kconfig --language-force=kconfig "${regex[
[all...]
/kernel/linux/linux-6.6/tools/perf/arch/x86/util/
H A Diostat.c24 #include <regex.h>
229 regex_t regex; in iio_root_port_parse_str() local
236 regcomp(&regex, "^([a-f0-9A-F]{1,}):([a-f0-9A-F]{1,2})", REG_EXTENDED); in iio_root_port_parse_str()
237 ret = regexec(&regex, str, 0, NULL, 0); in iio_root_port_parse_str()
244 regfree(&regex); in iio_root_port_parse_str()

Completed in 15 milliseconds

12345