/linux-6.12.1/tools/perf/util/ |
D | string.c | 312 char *strreplace_chars(char needle, const char *haystack, const char *replace) in strreplace_chars() argument 316 const char *loc = strchr(haystack, needle); in strreplace_chars() 317 const char *from = haystack; in strreplace_chars() 327 new_s = malloc(strlen(haystack) + (num * (replace_len - 1) + 1)); in strreplace_chars() 330 loc = strchr(haystack, needle); in strreplace_chars()
|
D | string2.h | 42 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
D | expr.h | 43 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
|
D | expr.c | 224 bool expr__subset_of_ids(struct expr_parse_ctx *haystack, in expr__subset_of_ids() argument 232 if (expr__get_id(haystack, cur->pkey, &data)) in expr__subset_of_ids()
|
/linux-6.12.1/tools/perf/tests/ |
D | util.c | 9 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.12.1/lib/ |
D | fortify_kunit.c | 919 char haystack[] = "Where oh where is my memory range?"; in __fortify_test() local 920 char *mem = haystack + strlen("Where oh where is "); in __fortify_test() 922 size_t len = sizeof(haystack) + unconst; in __fortify_test() 924 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len), in __fortify_test() 928 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len + 1), in __fortify_test() 931 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len * 2), in __fortify_test() 938 char haystack[] = "Where oh where is my memory range?"; in fortify_test_memchr() local 939 char *mem = haystack + strlen("Where oh where is "); in fortify_test_memchr() 941 size_t len = sizeof(haystack) + unconst; in fortify_test_memchr() 943 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), in fortify_test_memchr() [all …]
|
/linux-6.12.1/tools/bpf/ |
D | bpf_jit_disasm.c | 173 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.12.1/tools/testing/selftests/alsa/ |
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()
|
/linux-6.12.1/drivers/scsi/ |
D | NCR5380.c | 2185 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()
|
D | hpsa.c | 1556 struct hpsa_scsi_dev_t *haystack[], int haystack_size, in hpsa_scsi_find_entry() argument 1568 if (haystack[i] == NULL) /* previously removed. */ in hpsa_scsi_find_entry() 1570 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry() 1572 if (device_is_the_same(needle, haystack[i])) { in hpsa_scsi_find_entry() 1573 if (device_updated(needle, haystack[i])) in hpsa_scsi_find_entry()
|
/linux-6.12.1/drivers/media/dvb-core/ |
D | dvb_ca_en50221.c | 207 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.12.1/tools/testing/kunit/ |
D | kunit_tool_test.py | 91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 93 copy, backup = itertools.tee(haystack)
|