/linux-master/tools/perf/tests/ |
H A D | util.c | 9 static int test_strreplace(char needle, const char *haystack, argument 12 char *new = strreplace_chars(needle, haystack, replace);
|
/linux-master/tools/perf/util/ |
H A D | string2.h | 42 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
H A D | string.c | 306 * Replace all occurrences of character 'needle' in string 'haystack' with 312 char *strreplace_chars(char needle, const char *haystack, const char *replace) argument 316 const char *loc = strchr(haystack, needle); 317 const char *from = haystack; 327 new_s = malloc(strlen(haystack) + (num * (replace_len - 1) + 1)); 330 loc = strchr(haystack, needle);
|
H A D | expr.h | 43 bool expr__subset_of_ids(struct expr_parse_ctx *haystack,
|
H A D | expr.c | 228 bool expr__subset_of_ids(struct expr_parse_ctx *haystack, argument 236 if (expr__get_id(haystack, cur->pkey, &data))
|
/linux-master/tools/bpf/ |
H A D | bpf_jit_disasm.c | 173 static uint8_t *get_last_jit_image(char *haystack, size_t hlen, argument 192 ptr = haystack; 205 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); 224 tmp = ptr = haystack + off;
|
/linux-master/lib/ |
H A D | fortify_kunit.c | 816 char haystack[] = "Where oh where is my memory range?"; local 817 char *mem = haystack + strlen("Where oh where is "); 819 size_t len = sizeof(haystack) + unconst; 821 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len), 825 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len + 1), 828 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len * 2), 835 char haystack[] = "Where oh where is my memory range?"; local 836 char *mem = haystack + strlen("Where oh where is "); 838 size_t len = sizeof(haystack) + unconst; 840 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needl 854 char haystack[] = "Where oh where is my memory range?"; local [all...] |
/linux-master/arch/sh/drivers/dma/ |
H A D | dma-api.c | 104 static int search_cap(const char **haystack, const char *needle) argument 108 for (p = haystack; *p; p++)
|
/linux-master/tools/testing/selftests/alsa/ |
H A D | mixer-test.c | 420 static bool strend(const char *haystack, const char *needle) argument 422 size_t haystack_len = strlen(haystack); 427 return strcmp(haystack + haystack_len - needle_len, needle) == 0;
|
/linux-master/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 199 * findstr - Safely find needle in haystack. 201 * @haystack: Buffer to look in. 202 * @hlen: Number of bytes in haystack. 205 * return: Pointer into haystack needle was found at, or NULL if not found. 207 static char *findstr(char *haystack, int hlen, char *needle, int nlen) argument 215 if (!strncmp(haystack + i, needle, nlen)) 216 return haystack + i;
|
/linux-master/drivers/scsi/ |
H A D | NCR5380.c | 2182 * @haystack: list of commands 2186 static bool list_find_cmd(struct list_head *haystack, argument 2191 list_for_each_entry(ncmd, haystack, list) 2199 * @haystack: list of commands 2203 static bool list_del_cmd(struct list_head *haystack, argument 2206 if (list_find_cmd(haystack, needle)) {
|
H A D | hpsa.c | 1547 /* Find needle in haystack. If exact match found, return DEVICE_SAME, 1556 struct hpsa_scsi_dev_t *haystack[], int haystack_size, 1568 if (haystack[i] == NULL) /* previously removed. */ 1570 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { 1572 if (device_is_the_same(needle, haystack[i])) { 1573 if (device_updated(needle, haystack[i])) 1555 hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, struct hpsa_scsi_dev_t *haystack[], int haystack_size, int *index) argument
|
/linux-master/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 93 copy, backup = itertools.tee(haystack)
|