Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 20 of 20) sorted by relevance

/linux/tools/testing/selftests/powerpc/papr_vpd/
H A Dpapr_vpd.c62 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/tools/perf/tests/
H A Dutil.c10 static int test_strreplace(char needle, const char *haystack, in test_strreplace() argument
13 char *new = strreplace_chars(needle, haystack, replace); in test_strreplace()
/linux/tools/testing/selftests/cgroup/
H A Dcgroup_util.h
H A Dcgroup_util.c
/linux/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()
/linux/tools/include/nolibc/
H A Dstring.h311 char *strstr(const char *haystack, const char *needle) in strstr() argument
315 len_needle = strlen(needle); in strstr()
321 if (!memcmp(haystack, needle, len_needle)) in strstr()
/linux/tools/testing/selftests/cgroup/lib/include/
H A Dcgroup_util.h68 const char *needle);
93 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
/linux/tools/testing/selftests/cgroup/lib/
H A Dcgroup_util.c145 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr()
152 return strstr(buf, needle) ? 0 : -1; in cg_read_long()
592 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr()
599 return strstr(buf, needle) ? 0 : -1; in clone_into_cgroup_run_wait()
142 cg_read_strstr(const char * cgroup,const char * control,const char * needle) cg_read_strstr() argument
589 proc_read_strstr(int pid,bool thread,const char * item,const char * needle) proc_read_strstr() argument
/linux/tools/hv/
H A Dhv_kvp_daemon.c740 static const char needle[] = "via "; in kvp_extract_routes() local
743 while ((match = strstr(haystack, needle))) { in kvp_extract_routes()
747 address = match + strlen(needle); in kvp_extract_routes()
776 static const char needle[] = "default "; in kvp_get_gateway() local
792 if (num_chars <= strlen(needle)) in kvp_get_gateway()
795 if (memcmp(line, needle, strlen(needle))) in kvp_get_gateway()
801 kvp_extract_routes(line + strlen(needle), &output, &remaining); in kvp_get_gateway()
/linux/tools/testing/selftests/net/
H A Dbpf_offload.py600 def check_no_extack(res, needle): argument
602 fail(haystack.count(needle) or haystack.count("Warning:"),
603 "Unexpected command output, leaky extack? ('%s', '%s')" % (needle, haystack))
621 def test_spurios_extack(sim, obj, skip_hw, needle): argument
624 check_no_extack(res, needle)
627 check_no_extack(res, needle)
630 check_no_extack(res, needle)
/linux/tools/testing/selftests/bpf/
H A Dtest_verifier.c1307 char needle[200]; in cmp_str_seq() local
1319 if (len >= sizeof(needle) || !len) { in cmp_str_seq()
1323 memcpy(needle, exp, len); in cmp_str_seq()
1324 needle[len] = 0; in cmp_str_seq()
1325 q = strstr(log, needle); in cmp_str_seq()
1328 "EXP: %s\nRES:\n", needle); in cmp_str_seq()
/linux/tools/perf/util/
H A Dparse-events.h273 const char *needle);
H A Dparse-events.c321 * @str: The needle to look for.
2502 * given needle string? in parse_events_option()
2505 const char *needle) in parse_events_option()
2510 if (strstr(pos->str, needle) != NULL) in parse_events_option_new_evlist()
2473 parse_events_error__contains(const struct parse_events_error * err,const char * needle) parse_events_error__contains() argument
/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c441 static bool strend(const char *haystack, const char *needle) in strend() argument
444 size_t needle_len = strlen(needle); in strend()
448 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in strend()
/linux/sound/soc/codecs/
H A Dtas5086.c339 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/net/netfilter/
H A Dnf_conntrack_sip.c431 const char *needle, unsigned int len) in ct_sip_header_search() argument
441 if (strncasecmp(dptr, needle, len) == 0) in ct_sip_header_search()
785 const char *needle, unsigned int len) in ct_sdp_header_search() argument
790 if (strncmp(dptr, needle, len) == 0) in ct_sdp_header_search()
/linux/drivers/media/dvb-core/
H A Ddvb_ca_en50221.c207 static char *findstr(char *haystack, int hlen, char *needle, int nlen) in findstr() argument
215 if (!strncmp(haystack + i, needle, nlen)) in findstr()
/linux/tools/testing/kunit/
H A Dkunit_tool_test.py95 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
99 if needle in line:
101 raise AssertionError(f'"{needle}" not found in {list(backup)}!')
/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_mdb_max.sh328 local needle=$1; shift
/linux/drivers/scsi/
H A Dhpsa.c1549 static int hpsa_scsi_find_entry(struct hpsa_scsi_dev_t *needle, in hpsa_scsi_find_entry() argument
1558 if (needle == NULL) in hpsa_scsi_find_entry()
1564 if (SCSI3ADDR_EQ(needle->scsi3addr, haystack[i]->scsi3addr)) { in hpsa_scsi_find_entry()
1566 if (device_is_the_same(needle, haystack[i])) { in hpsa_scsi_find_entry()
1567 if (device_updated(needle, haystack[i])) in hpsa_scsi_find_entry()
1572 if (needle->volume_offline) in hpsa_scsi_find_entry()