| /tools/testing/selftests/bpf/prog_tests/ |
| D | ctx_rewrite.c | 291 static int find_field_offset(struct btf *btf, char *pattern, regmatch_t *matches) in find_field_offset() argument 295 char *type = pattern + matches[1].rm_so; in find_field_offset() 296 char *field = pattern + matches[2].rm_so; in find_field_offset() 394 char *pattern = pattern_origin; in print_match_error() local 399 while (*pattern || *text) { in print_match_error() 424 while (*pattern && *pattern != ';') { in print_match_error() 425 if (pattern == pattern_pos) in print_match_error() 427 fputc(*pattern, out); in print_match_error() 428 ++pattern; in print_match_error() 431 if (pattern == pattern_pos) in print_match_error() [all …]
|
| D | spin_lock.c | 55 static int match_regex(const char *pattern, const char *string) in match_regex() argument 60 err = regcomp(&re, pattern, REG_NOSUB); in match_regex()
|
| D | uprobe_multi_test.c | 256 __test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts, in __test_attach_api() argument 268 binary, pattern, opts); in __test_attach_api() 274 binary, pattern, opts); in __test_attach_api() 280 binary, pattern, opts); in __test_attach_api() 286 pid, binary, pattern, opts); in __test_attach_api() 292 binary, pattern, opts); in __test_attach_api() 319 test_attach_api(const char *binary, const char *pattern, struct bpf_uprobe_multi_opts *opts) in test_attach_api() argument 324 __test_attach_api(binary, pattern, opts, NULL); in test_attach_api() 330 __test_attach_api(binary, pattern, opts, &child); in test_attach_api() 336 __test_attach_api(binary, pattern, opts, &child); in test_attach_api()
|
| /tools/testing/selftests/net/ |
| D | net_helper.sh | 11 local pattern 14 pattern=":$(printf "%04X" "${port}") " 17 [ ${protocol} = "tcp" ] && pattern="${pattern}0A" 20 /proc/net/"${protocol}"* | grep -q "${pattern}"; then
|
| D | toeplitz.sh | 107 local -r pattern="receive-hashing:\ on" 109 ethtool -k "${DEV}" | grep -q "${pattern}" || die "rxhash must be enabled"
|
| /tools/testing/selftests/bpf/ |
| D | test_bpftool_synctypes.py | 42 def parse(self, pattern, end_marker): argument 54 capture = pattern.search(line) 55 if capture and pattern.groups >= 1: 83 pattern = re.compile('\[(BPF_\w*)\]\s*= (true|false),?$') 89 capture = pattern.search(line) 98 def parse(self, pattern, end_marker): argument 110 entries.update(pattern.findall(line)) 181 pattern = re.compile('^\s*(BPF_\w+),?(\s+/\*.*\*/)?$') 185 return parser.parse(pattern, end_marker) 208 def __get_description_list(self, start_marker, pattern, end_marker): argument [all …]
|
| D | test_loader.c | 151 static int compile_regex(const char *pattern, regex_t *regex) in compile_regex() argument 154 const char *original_pattern = pattern; in compile_regex() 160 while (*pattern && ptr < buf_end - 2) { in compile_regex() 161 if (!in_regex && str_has_pfx(pattern, "{{")) { in compile_regex() 163 pattern += 2; in compile_regex() 166 if (in_regex && str_has_pfx(pattern, "}}")) { in compile_regex() 168 pattern += 2; in compile_regex() 172 *ptr++ = *pattern++; in compile_regex() 176 if (strchr(".[]\\()*+?{}|^$", *pattern)) { in compile_regex() 178 *ptr++ = *pattern++; in compile_regex() [all …]
|
| D | testing_helpers.c | 134 char *pattern, *subtest_str, *ext_test_str, *ext_subtest_str = NULL; in insert_test() local 138 pattern = "%s"; in insert_test() 140 pattern = "*%s*"; in insert_test() 154 sprintf(ext_test_str, pattern, test_spec); in insert_test() 161 sprintf(ext_subtest_str, pattern, subtest_str); in insert_test()
|
| D | test_bpftool.py | 173 for pattern in expected_patterns: 174 self.assertRegex(res, pattern)
|
| /tools/perf/tests/shell/ |
| D | record+probe_libc_inet_pton.sh | 81 while read line <&3 && read -r pattern <&4; do 82 [ -z "$pattern" ] && break 84 echo "$line" | grep -E -q "$pattern" 86 printf "FAIL: expected backtrace entry \"%s\" got \"%s\"\n" "$pattern" "$line"
|
| /tools/testing/selftests/net/netfilter/ |
| D | xt_string.sh | 29 pattern="foo bar baz" 40 --string "$pattern" --algo "$1" --from "$2" --to "$3" 55 echo -n "$pattern"
|
| /tools/testing/selftests/net/lib/py/ |
| D | utils.py | 143 pattern = f":{port:04X} .* " 145 pattern += "0A" 146 pattern = re.compile(pattern) 151 if pattern.search(row):
|
| /tools/testing/selftests/powerpc/mm/ |
| D | tlbie_test.c | 216 static inline unsigned int extract_tid(unsigned int pattern) in extract_tid() argument 220 ret = (pattern >> THREAD_ID_SHIFT) & THREAD_ID_MASK; in extract_tid() 225 static inline unsigned int extract_word_offset(unsigned int pattern) in extract_word_offset() argument 229 ret = (pattern >> WORD_OFFSET_SHIFT) & WORD_OFFSET_MASK; in extract_word_offset() 235 static inline unsigned int extract_sweep_id(unsigned int pattern) in extract_sweep_id() argument 240 ret = (pattern >> SWEEP_ID_SHIFT) & SWEEP_ID_MASK; in extract_sweep_id() 469 unsigned int pattern = cur_sweep_id; in rim_fn() local 470 unsigned int *pattern_ptr = &pattern; in rim_fn()
|
| /tools/testing/selftests/kvm/x86_64/ |
| D | private_mem_conversions_test.c | 30 #define memcmp_g(gpa, pattern, size) \ argument 36 __GUEST_ASSERT(mem[i] == pattern, \ 38 pattern, i, gpa + i, mem[i]); \ 41 static void memcmp_h(uint8_t *mem, uint64_t gpa, uint8_t pattern, size_t size) in memcmp_h() argument 46 TEST_ASSERT(mem[i] == pattern, in memcmp_h() 48 pattern, gpa + i, mem[i]); in memcmp_h() 79 static void guest_sync_private(uint64_t gpa, uint64_t size, uint8_t pattern) in guest_sync_private() argument 81 GUEST_SYNC4(SYNC_PRIVATE, gpa, size, pattern); in guest_sync_private()
|
| /tools/perf/Documentation/ |
| D | perf-ftrace.txt | 70 List available functions to trace. It accepts a pattern to 88 function (or a glob pattern). Multiple functions can be given 90 can be a glob pattern. It will be passed to 'set_ftrace_filter' 109 function (or a glob pattern). This is useful to trace for 117 given function (or a glob pattern). Like -G option, this is useful 157 Set function filter on the given function (or a glob pattern). 159 The function argument also can be a glob pattern. It will be passed 170 Set graph filter on the given function (or a glob pattern). This is 177 Set graph notrace filter on the given function (or a glob pattern).
|
| /tools/testing/selftests/mm/ |
| D | vm_util.c | 145 bool check_for_pattern(FILE *fp, const char *pattern, char *buf, size_t len) in check_for_pattern() argument 148 if (!strncmp(buf, pattern, strlen(pattern))) in check_for_pattern() 196 bool __check_huge(void *addr, char *pattern, int nr_hpages, in __check_huge() argument 221 if (!check_for_pattern(fp, pattern, buffer, sizeof(buffer))) in __check_huge() 224 snprintf(addr_pattern, MAX_LINE_LENGTH, "%s%%9ld kB", pattern); in __check_huge()
|
| /tools/bootconfig/samples/ |
| D | good-mixed-kv1.bconf | 1 # value -> subkey pattern
|
| D | good-mixed-kv2.bconf | 1 # subkey -> value pattern
|
| /tools/testing/selftests/powerpc/switch_endian/ |
| D | switch_endian_test.S | 15 pattern: label 21 ld r15, pattern@TOC(%r2)
|
| /tools/testing/selftests/x86/bugs/ |
| D | its_permutations.py | 67 for pattern, color in patterns.items(): 68 …output = re.sub(pattern, lambda match: f"{color}{match.group(0)}{ENDC}", output, flags=re.MULTILIN…
|
| /tools/memory-model/litmus-tests/ |
| D | LB+poonceonces.litmus | 6 * Can the counter-intuitive outcome for the load-buffering pattern
|
| D | MP+pooncerelease+poacquireonce.litmus | 8 * pattern.
|
| D | SB+poonceonces.litmus | 7 * to order the store-buffering pattern, where each process writes to the
|
| D | MP+fencewmbonceonce+fencermbonceonce.litmus | 7 * sufficient ordering for the message-passing pattern. However, it
|
| D | SB+fencembonceonces.litmus | 7 * order the store-buffering pattern, where each process writes to the
|