Home
last modified time | relevance | path

Searched refs:haystack (Results 1 – 15 of 15) sorted by relevance

/linux-6.15/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c133 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 …]
/linux-6.15/tools/perf/tests/
H A Dutil.c9 static int test_strreplace(char needle, const char *haystack, in test_strreplace() argument
12 char *new = strreplace_chars(needle, haystack, replace); in test_strreplace()
/linux-6.15/tools/perf/util/
H A Dstring.c421 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()
H A Dstring2.h44 char *strreplace_chars(char needle, const char *haystack, const char *replace);
H A Dexpr.h43 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
H A Dexpr.c223 bool expr__subset_of_ids(struct expr_parse_ctx *haystack, in expr__subset_of_ids() argument
231 if (expr__get_id(haystack, cur->pkey, &data)) in expr__subset_of_ids()
/linux-6.15/lib/tests/
H A Dfortify_kunit.c940 char haystack[] = "Where oh where is my memory range?"; in __fortify_test() local
941 char *mem = haystack + strlen("Where oh where is "); in __fortify_test()
943 size_t len = sizeof(haystack); in __fortify_test()
947 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len), in __fortify_test()
961 char haystack[] = "Where oh where is my memory range?"; in fortify_test_memchr() local
962 char *mem = haystack + strlen("Where oh where is "); in fortify_test_memchr()
964 size_t len = sizeof(haystack); in fortify_test_memchr()
968 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), in fortify_test_memchr()
982 char haystack[] = "Where oh where is my memory range?"; in fortify_test_memchr_inv() local
983 char *mem = haystack + 1; in fortify_test_memchr_inv()
[all …]
/linux-6.15/tools/bpf/
H A Dbpf_jit_disasm.c173 static uint8_t *get_last_jit_image(char *haystack, size_t hlen, in get_last_jit_image() argument
192 ptr = haystack; in get_last_jit_image()
205 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image()
224 tmp = ptr = haystack + off; in get_last_jit_image()
/linux-6.15/tools/testing/selftests/alsa/
H A Dmixer-test.c440 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()
/linux-6.15/drivers/scsi/
H A DNCR5380.c2185 static bool list_find_cmd(struct list_head *haystack, in list_find_cmd() argument
2190 list_for_each_entry(ncmd, haystack, list) in list_find_cmd()
2202 static bool list_del_cmd(struct list_head *haystack, in list_del_cmd() argument
2205 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
H A Dhpsa.c1549 struct hpsa_scsi_dev_t *haystack[], int haystack_size, in hpsa_scsi_find_entry() argument
1561 if (haystack[i] == NULL) /* previously removed. */ in hpsa_scsi_find_entry()
1563 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry()
1565 if (device_is_the_same(needle, haystack[i])) { in hpsa_scsi_find_entry()
1566 if (device_updated(needle, haystack[i])) in hpsa_scsi_find_entry()
/linux-6.15/tools/testing/selftests/net/
H A Dbpf_offload.py601 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))
/linux-6.15/tools/hv/
H A Dhv_kvp_daemon.c695 const char *match, *haystack = line; in kvp_extract_routes() local
697 while ((match = strstr(haystack, needle))) { in kvp_extract_routes()
724 haystack = next_char; in kvp_extract_routes()
/linux-6.15/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c207 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument
215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
216 return haystack + i; in findstr()
/linux-6.15/tools/testing/kunit/
H A Dkunit_tool_test.py92 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
94 copy, backup = itertools.tee(haystack)