/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() 322 loc = strchr(loc + 1, needle); in strreplace_chars() 330 loc = strchr(haystack, needle); in strreplace_chars() 344 loc = strchr(from, needle); in strreplace_chars()
|
D | string2.h | 42 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
D | parse-events.h | 269 const char *needle);
|
D | parse-events.c | 2347 const char *needle) in parse_events_error__contains() argument 2352 if (strstr(pos->str, needle) != NULL) in parse_events_error__contains()
|
/linux-6.12.1/tools/testing/selftests/powerpc/papr_vpd/ |
D | papr_vpd.c | 62 static const char needle[] = "System VPD"; in dev_papr_vpd_get_handle_all() local 63 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); in dev_papr_vpd_get_handle_all() 294 static const char needle[] = "System VPD"; in papr_vpd_system_loc_code() local 295 FAIL_IF(!memmem(buf, size, needle, strlen(needle))); in papr_vpd_system_loc_code()
|
/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/tools/testing/selftests/cgroup/ |
D | cgroup_util.h | 35 const char *needle); 61 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
D | cgroup_util.c | 124 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument 131 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr() 596 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument 603 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
|
/linux-6.12.1/tools/testing/selftests/powerpc/signal/ |
D | sigreturn_vdso.c | 26 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 52 if (strstr(name, needle)) { in search_proc_maps()
|
/linux-6.12.1/tools/testing/selftests/powerpc/mm/ |
D | stack_expansion_ldst.c | 75 static int search_proc_maps(char *needle, unsigned long *low, unsigned long *high) in search_proc_maps() argument 101 if (strstr(name, needle)) { in search_proc_maps()
|
/linux-6.12.1/lib/ |
D | fortify_kunit.c | 921 char needle = 'm'; in __fortify_test() local 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() 940 char needle = 'm'; in fortify_test_memchr() local 943 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), in fortify_test_memchr() 947 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len + 1), in fortify_test_memchr() 950 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len * 2), in fortify_test_memchr() 959 char needle = 'W'; in fortify_test_memchr_inv() local 963 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, len), in fortify_test_memchr_inv() [all …]
|
/linux-6.12.1/tools/testing/selftests/net/ |
D | bpf_offload.py | 596 def check_no_extack(res, needle): argument 597 fail((res[1] + res[2]).count(needle) or (res[1] + res[2]).count("Warning:"), 598 "Found '%s' in command output, leaky extack?" % (needle)) 616 def test_spurios_extack(sim, obj, skip_hw, needle): argument 619 check_no_extack(res, needle) 622 check_no_extack(res, needle) 625 check_no_extack(res, needle)
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_verifier.c | 1311 char needle[200]; in cmp_str_seq() local 1323 if (len >= sizeof(needle) || !len) { in cmp_str_seq() 1327 strncpy(needle, exp, len); in cmp_str_seq() 1328 needle[len] = 0; in cmp_str_seq() 1329 q = strstr(log, needle); in cmp_str_seq() 1332 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
|
/linux-6.12.1/drivers/scsi/ |
D | NCR5380.c | 2186 struct scsi_cmnd *needle) in list_find_cmd() argument 2191 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd() 2203 struct scsi_cmnd *needle) in list_del_cmd() argument 2205 if (list_find_cmd(haystack, needle)) { in list_del_cmd() 2206 struct NCR5380_cmd *ncmd = NCR5380_to_ncmd(needle); in list_del_cmd()
|
D | hpsa.c | 1555 static int hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, in hpsa_scsi_find_entry() argument 1564 if (needle == NULL) 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() 1578 if (needle->volume_offline) in hpsa_scsi_find_entry()
|
/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 443 size_t needle_len = strlen(needle); in strend() 447 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
|
/linux-6.12.1/sound/soc/codecs/ |
D | tas5086.c | 339 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument 344 if (array[i] == needle) in index_in_array()
|
/linux-6.12.1/net/netfilter/ |
D | nf_conntrack_sip.c | 351 const char *needle, unsigned int len) in ct_sip_header_search() argument 361 if (strncasecmp(dptr, needle, len) == 0) in ct_sip_header_search() 712 const char *needle, unsigned int len) in ct_sdp_header_search() argument 717 if (strncmp(dptr, needle, len) == 0) in ct_sdp_header_search()
|
/linux-6.12.1/sound/soc/intel/avs/ |
D | topology.c | 377 char *needle = strstr(fmt, "%d"); in avs_ssp_sprint() local 385 if (needle) { in avs_ssp_sprint() 386 retsize = scnprintf(buf, min_t(size_t, size, needle - fmt + 1), "%s", fmt); in avs_ssp_sprint() 390 retsize += scnprintf(buf + retsize, size - retsize, "%s", needle + 2); in avs_ssp_sprint()
|
/linux-6.12.1/tools/testing/kunit/ |
D | kunit_tool_test.py | 91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 95 if needle in line:
|
/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()
|
/linux-6.12.1/tools/testing/selftests/net/forwarding/ |
D | bridge_mdb_max.sh | 328 local needle=$1; shift
|