Searched refs:haystack (Results 1 – 12 of 12) sorted by relevance
| /tools/testing/selftests/filesystems/overlayfs/ |
| A D | set_layers_via_fds.c | 133 char *haystack = line; in TEST_F() local 135 if (strstr(haystack, "workdir=/tmp/w")) in TEST_F() 137 if (strstr(haystack, "upperdir=/tmp/u")) in TEST_F() 139 if (strstr(haystack, "lowerdir+=/tmp/l1")) in TEST_F() 141 if (strstr(haystack, "lowerdir+=/tmp/l2")) in TEST_F() 143 if (strstr(haystack, "lowerdir+=/tmp/l3")) in TEST_F() 147 if (strstr(haystack, "datadir+=/tmp/d1")) in TEST_F() 149 if (strstr(haystack, "datadir+=/tmp/d2")) in TEST_F() 151 if (strstr(haystack, "datadir+=/tmp/d3")) in TEST_F() 687 char *haystack = line; in TEST_F() local [all …]
|
| /tools/include/nolibc/ |
| A D | string.h | 296 char *strstr(const char *haystack, const char *needle) in strstr() argument 304 len_haystack = strlen(haystack); in strstr() 306 if (!memcmp(haystack, needle, len_needle)) in strstr() 307 return (char *)haystack; in strstr() 308 haystack++; in strstr()
|
| /tools/perf/tests/ |
| A D | util.c | 10 static int test_strreplace(char needle, const char *haystack, in test_strreplace() argument 13 char *new = strreplace_chars(needle, haystack, replace); in test_strreplace()
|
| /tools/perf/util/ |
| A D | string.c | 421 char *strreplace_chars(char needle, const char *haystack, const char *replace) in strreplace_chars() argument 425 const char *loc = strchr(haystack, needle); in strreplace_chars() 426 const char *from = haystack; in strreplace_chars() 436 new_s = malloc(strlen(haystack) + (num * (replace_len - 1) + 1)); in strreplace_chars() 439 loc = strchr(haystack, needle); in strreplace_chars()
|
| A D | string2.h | 44 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
| A D | expr.h | 43 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
|
| A D | expr.c | 227 bool expr__subset_of_ids(struct expr_parse_ctx *haystack, in expr__subset_of_ids() argument 235 if (expr__get_id(haystack, cur->pkey, &data)) in expr__subset_of_ids()
|
| /tools/bpf/ |
| A D | bpf_jit_disasm.c | 175 static uint8_t *get_last_jit_image(char *haystack, size_t hlen, in get_last_jit_image() argument 194 ptr = haystack; in get_last_jit_image() 207 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image() 226 tmp = ptr = haystack + off; in get_last_jit_image()
|
| /tools/testing/selftests/alsa/ |
| A D | mixer-test.c | 440 static bool strend(const char *haystack, const char *needle) in strend() argument 442 size_t haystack_len = strlen(haystack); in strend() 447 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
|
| /tools/testing/selftests/net/ |
| A D | bpf_offload.py | 601 haystack = (res[1] + res[2]).strip() 602 fail(haystack.count(needle) or haystack.count("Warning:"), 603 "Unexpected command output, leaky extack? ('%s', '%s')" % (needle, haystack))
|
| /tools/hv/ |
| A D | hv_kvp_daemon.c | 741 const char *match, *haystack = line; in kvp_extract_routes() local 743 while ((match = strstr(haystack, needle))) { in kvp_extract_routes() 770 haystack = next_char; in kvp_extract_routes()
|
| /tools/testing/kunit/ |
| A D | kunit_tool_test.py | 92 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 94 copy, backup = itertools.tee(haystack)
|
Completed in 28 milliseconds