/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); 322 loc = strchr(loc + 1, needle); 330 loc = strchr(haystack, needle); 343 /* needle next occurrence or end of string */ 344 loc = strchr(from, needle);
|
H A D | parse-events.h | 248 const char *needle);
|
H A D | parse-events.c | 331 * @str: The needle to look for. 2316 * given needle string? 2319 const char *needle) 2324 if (strstr(pos->str, needle) != NULL) 2318 parse_events_error__contains(const struct parse_events_error *err, const char *needle) argument
|
/linux-master/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.h | 35 const char *needle); 59 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
H A D | cgroup_util.c | 124 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) argument 131 return strstr(buf, needle) ? 0 : -1; 572 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) argument 579 return strstr(buf, needle) ? 0 : -1;
|
/linux-master/tools/testing/selftests/powerpc/papr_vpd/ |
H A D | papr_vpd.c | 62 static const char needle[] = "System VPD"; local 63 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); 294 static const char needle[] = "System VPD"; local 295 FAIL_IF(!memmem(buf, size, needle, strlen(needle)));
|
/linux-master/tools/testing/selftests/powerpc/signal/ |
H A D | sigreturn_vdso.c | 26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) argument 52 if (strstr(name, needle)) {
|
/linux-master/tools/testing/selftests/powerpc/mm/ |
H A D | stack_expansion_ldst.c | 75 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) argument 101 if (strstr(name, needle)) {
|
/linux-master/lib/ |
H A D | fortify_kunit.c | 818 char needle = 'm'; local 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), 837 char needle = 'm'; local 840 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), 844 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len + 1), 847 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len * 2), 856 char needle = 'W'; local 860 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, le [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 109 if (strcmp(*p, needle) == 0)
|
/linux-master/tools/testing/selftests/bpf/ |
H A D | test_offload.py | 660 def check_no_extack(res, needle): 661 fail((res[1] + res[2]).count(needle) or (res[1] + res[2]).count("Warning:"), 662 "Found '%s' in command output, leaky extack?" % (needle)) 680 def test_spurios_extack(sim, obj, skip_hw, needle): 683 check_no_extack(res, needle) 686 check_no_extack(res, needle) 689 check_no_extack(res, needle)
|
H A D | test_verifier.c | 1316 char needle[200]; local 1328 if (len >= sizeof(needle) || !len) { 1332 strncpy(needle, exp, len); 1333 needle[len] = 0; 1334 q = strstr(log, needle); 1337 "EXP: %s\nRES:\n", needle);
|
/linux-master/sound/soc/codecs/ |
H A D | tas5086.c | 340 static int index_in_array(const int *array, int len, int needle) argument 345 if (array[i] == needle)
|
/linux-master/tools/testing/selftests/alsa/ |
H A D | mixer-test.c | 420 static bool strend(const char *haystack, const char *needle) argument 423 size_t needle_len = strlen(needle); 427 return strcmp(haystack + haystack_len - needle_len, needle) == 0;
|
/linux-master/drivers/scsi/ |
H A D | NCR5380.c | 2183 * @needle: command to search for 2187 struct scsi_cmnd *needle) 2192 if (NCR5380_to_scmd(ncmd) == needle) 2200 * @needle: command to remove 2204 struct scsi_cmnd *needle) 2206 if (list_find_cmd(haystack, needle)) { 2207 struct NCR5380_cmd *ncmd = NCR5380_to_ncmd(needle); 2186 list_find_cmd(struct list_head *haystack, struct scsi_cmnd *needle) argument 2203 list_del_cmd(struct list_head *haystack, struct scsi_cmnd *needle) argument
|
H A D | hpsa.c | 1547 /* Find needle in haystack. If exact match found, return DEVICE_SAME, 1548 * and return needle location in *index. If scsi3addr matches, but not 1549 * vendor, model, serial num, etc. return DEVICE_CHANGED, and return needle 1553 * If needle not found, return DEVICE_NOT_FOUND. 1555 static int hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, argument 1564 if (needle == NULL) 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])) 1578 if (needle [all...] |
/linux-master/net/netfilter/ |
H A D | nf_conntrack_sip.c | 351 const char *needle, unsigned int len) 361 if (strncasecmp(dptr, needle, len) == 0) 712 const char *needle, unsigned int len) 717 if (strncmp(dptr, needle, len) == 0) 350 ct_sip_header_search(const char *dptr, const char *limit, const char *needle, unsigned int len) argument 711 ct_sdp_header_search(const char *dptr, const char *limit, const char *needle, unsigned int len) argument
|
/linux-master/sound/soc/intel/avs/ |
H A D | topology.c | 377 char *needle = strstr(fmt, "%d"); local 385 if (needle) { 386 retsize = scnprintf(buf, min_t(size_t, size, needle - fmt + 1), "%s", fmt); 390 retsize += scnprintf(buf + retsize, size - retsize, "%s", needle + 2);
|
/linux-master/drivers/media/dvb-core/ |
H A D | dvb_ca_en50221.c | 199 * findstr - Safely find needle in haystack. 203 * @needle: Buffer to find. 204 * @nlen: Number of bytes in needle. 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))
|
/linux-master/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 95 if needle in line: 97 raise AssertionError(f'"{needle}" not found in {list(backup)}!')
|
/linux-master/tools/testing/selftests/net/forwarding/ |
H A D | bridge_mdb_max.sh | 328 local needle=$1; shift
|