Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 21 of 21) 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.h72 const char *needle);
97 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.c168 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_long_fd()
175 return strstr(buf, needle) ? 0 : -1; in cg_read_key_long()
625 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in __prepare_for_wait()
632 return strstr(buf, needle) ? 0 : -1; in __prepare_for_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.py632 def check_no_extack(res, needle):
634 fail(haystack.count(needle) or haystack.count("Warning:"),
635 "Unexpected command output, leaky extack? ('%s', '%s')" % (needle, haystack))
653 def test_spurios_extack(sim, obj, skip_hw, needle):
656 check_no_extack(res, needle)
659 check_no_extack(res, needle)
662 check_no_extack(res, needle)
600 check_no_extack(res, needle) global() argument
621 test_spurios_extack(sim, obj, skip_hw, needle) global() argument
/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.c322 * @str: The needle to look for.
2503 * given needle string? in parse_events_option()
2506 const char *needle)
2511 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.c483 static bool strend(const char *haystack, const char *needle) in show_values()
486 size_t needle_len = strlen(needle); in show_values()
490 return strcmp(haystack + haystack_len - needle_len, needle) == 0; in show_values()
441 strend(const char * haystack,const char * needle) strend() argument
/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/sound/soc/intel/avs/
H A Dtopology.c379 char *needle = strstr(fmt, "%d"); in avs_ssp_sprint() local
387 if (needle) { in avs_ssp_sprint()
388 retsize = scnprintf(buf, min_t(size_t, size, needle - fmt + 1), "%s", fmt); in avs_ssp_sprint()
392 retsize += scnprintf(buf + retsize, size - retsize, "%s", needle + 2); in avs_ssp_sprint()
/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.c1541 /* Find needle in haystack. If exact match found, return DEVICE_SAME,
1542 * and return needle location in *index. If scsi3addr matches, but not
1543 * vendor, model, serial num, etc. return DEVICE_CHANGED, and return needle
1547 * If needle not found, return DEVICE_NOT_FOUND.
1549 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 in hpsa_scsi_find_entry()
[all...]