/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/ |
H A D | cgroup_util.h | 30 const char *needle); 52 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
H A D | cgroup_util.c | 127 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 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) 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 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()
|
/kernel/linux/linux-5.10/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) 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 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()
|
/kernel/linux/linux-6.6/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) in search_proc_maps() argument 52 if (strstr(name, needle)) { in search_proc_maps()
|
/kernel/linux/linux-5.10/tools/testing/kunit/ |
H A D | kunit_tool_test.py | 93 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 D | dma-api.c | 104 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 D | dma-api.c | 104 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 D | test_verifier.c | 911 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 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)
|
/kernel/linux/linux-6.6/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 | 1314 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 D | mixer-test.c | 420 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 D | tas5086.c | 340 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 D | tas5086.c | 340 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 D | NCR5380.c | 2177 * @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 D | NCR5380.c | 2183 * @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 D | nf_conntrack_sip.c | 351 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 D | nf_conntrack_sip.c | 351 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 D | dvb_ca_en50221.c | 199 * 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 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) in findstr() argument 215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
|
/kernel/linux/linux-6.6/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)}!')
|