Home
last modified time | relevance | path

Searched refs:needle (Results 1 - 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A Dcgroup_util.h30 const char *needle);
52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
H A Dcgroup_util.c127 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
134 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr()
545 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
552 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dcgroup_util.h35 const char *needle);
59 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
H A Dcgroup_util.c124 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()
572 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
579 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/
H A Dstack_expansion_ldst.c75 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()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_vdso.c26 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()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/
H A Dstack_expansion_ldst.c75 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()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/signal/
H A Dsigreturn_vdso.c26 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()
/kernel/linux/linux-5.10/tools/testing/kunit/
H A Dkunit_tool_test.py93 def assertContains(self, needle, haystack):
95 if needle in line:
98 str(needle) + '" not found in "' + str(haystack) + '"!')
/kernel/linux/linux-5.10/arch/sh/drivers/dma/
H A Ddma-api.c104 static int search_cap(const char **haystack, const char *needle) in search_cap() argument
109 if (strcmp(*p, needle) == 0) in search_cap()
/kernel/linux/linux-6.6/arch/sh/drivers/dma/
H A Ddma-api.c104 static int search_cap(const char **haystack, const char *needle) in search_cap() argument
109 if (strcmp(*p, needle) == 0) in search_cap()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
H A Dtest_verifier.c911 char needle[80]; in cmp_str_seq() local
921 if (len >= sizeof(needle) || !len) { in cmp_str_seq()
925 strncpy(needle, exp, len); in cmp_str_seq()
926 needle[len] = 0; in cmp_str_seq()
927 q = strstr(log, needle); in cmp_str_seq()
930 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
H A Dtest_offload.py660 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)
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/
H A Dtest_offload.py660 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 Dtest_verifier.c1314 char needle[200]; in cmp_str_seq() local
1326 if (len >= sizeof(needle) || !len) { in cmp_str_seq()
1330 strncpy(needle, exp, len); in cmp_str_seq()
1331 needle[len] = 0; in cmp_str_seq()
1332 q = strstr(log, needle); in cmp_str_seq()
1335 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
/kernel/linux/linux-6.6/tools/testing/selftests/alsa/
H A Dmixer-test.c420 static bool strend(const char *haystack, const char *needle) in strend() argument
423 size_t needle_len = strlen(needle); in strend()
427 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
/kernel/linux/linux-5.10/sound/soc/codecs/
H A Dtas5086.c340 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument
345 if (array[i] == needle) in index_in_array()
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Dtas5086.c340 static int index_in_array(const int *array, int len, int needle) in index_in_array() argument
345 if (array[i] == needle) in index_in_array()
/kernel/linux/linux-5.10/drivers/scsi/
H A DNCR5380.c2177 * @needle: command to search for
2181 struct scsi_cmnd *needle) in list_find_cmd()
2186 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2194 * @needle: command to remove
2198 struct scsi_cmnd *needle) in list_del_cmd()
2200 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
2201 struct NCR5380_cmd *ncmd = scsi_cmd_priv(needle); in list_del_cmd()
2180 list_find_cmd(struct list_head *haystack, struct scsi_cmnd *needle) list_find_cmd() argument
2197 list_del_cmd(struct list_head *haystack, struct scsi_cmnd *needle) list_del_cmd() argument
/kernel/linux/linux-6.6/drivers/scsi/
H A DNCR5380.c2183 * @needle: command to search for
2187 struct scsi_cmnd *needle) in list_find_cmd()
2192 if (NCR5380_to_scmd(ncmd) == needle) in list_find_cmd()
2200 * @needle: command to remove
2204 struct scsi_cmnd *needle) in list_del_cmd()
2206 if (list_find_cmd(haystack, needle)) { in list_del_cmd()
2207 struct NCR5380_cmd *ncmd = NCR5380_to_ncmd(needle); in list_del_cmd()
2186 list_find_cmd(struct list_head *haystack, struct scsi_cmnd *needle) list_find_cmd() argument
2203 list_del_cmd(struct list_head *haystack, struct scsi_cmnd *needle) list_del_cmd() argument
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_conntrack_sip.c351 const char *needle, unsigned int len) in ct_sip_header_search()
361 if (strncasecmp(dptr, needle, len) == 0) in ct_sip_header_search()
712 const char *needle, unsigned int len) in ct_sdp_header_search()
717 if (strncmp(dptr, needle, len) == 0) in ct_sdp_header_search()
350 ct_sip_header_search(const char *dptr, const char *limit, const char *needle, unsigned int len) ct_sip_header_search() argument
711 ct_sdp_header_search(const char *dptr, const char *limit, const char *needle, unsigned int len) ct_sdp_header_search() argument
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_conntrack_sip.c351 const char *needle, unsigned int len) in ct_sip_header_search()
361 if (strncasecmp(dptr, needle, len) == 0) in ct_sip_header_search()
712 const char *needle, unsigned int len) in ct_sdp_header_search()
717 if (strncmp(dptr, needle, len) == 0) in ct_sdp_header_search()
350 ct_sip_header_search(const char *dptr, const char *limit, const char *needle, unsigned int len) ct_sip_header_search() argument
711 ct_sdp_header_search(const char *dptr, const char *limit, const char *needle, unsigned int len) ct_sdp_header_search() argument
/kernel/linux/linux-5.10/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c199 * 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) in findstr() argument
215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
/kernel/linux/linux-6.6/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c199 * 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) in findstr() argument
215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
/kernel/linux/linux-6.6/tools/testing/kunit/
H A Dkunit_tool_test.py91 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
95 if needle in line:
97 raise AssertionError(f'"{needle}" not found in {list(backup)}!')

Completed in 33 milliseconds

12