Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 18 of 18) 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/testing/selftests/cgroup/lib/include/
H A Dcgroup_util.h63 const char *needle);
85 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
/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/lib/tests/
H A Dfortify_kunit.c942 char needle = 'm'; in __fortify_test() local
947 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len), in __fortify_test()
951 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len + 1), in __fortify_test()
954 KUNIT_ASSERT_PTR_EQ(test, memscan(haystack, needle, len * 2), in __fortify_test()
963 char needle = 'm'; in fortify_test_memchr() local
968 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len), in fortify_test_memchr()
972 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len + 1), in fortify_test_memchr()
975 KUNIT_ASSERT_PTR_EQ(test, memchr(haystack, needle, len * 2), in fortify_test_memchr()
984 char needle = 'W'; in fortify_test_memchr_inv() local
990 KUNIT_ASSERT_PTR_EQ(test, memchr_inv(haystack, needle, len), in fortify_test_memchr_inv()
[all …]
/linux/tools/testing/selftests/cgroup/lib/
H A Dcgroup_util.c126 int cg_read_strstr(const char *cgroup, const char *control, const char *needle) in cg_read_strstr() argument
133 return strstr(buf, needle) ? 0 : -1; in cg_read_strstr()
552 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument
559 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
/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/drivers/scsi/
H A DNCR5380.c2186 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()
/linux/tools/perf/util/
H A Dparse-events.h268 const char *needle);
H A Dparse-events.c2399 const char *needle) in parse_events_error__contains() argument
2404 if (strstr(pos->str, needle) != NULL) in parse_events_error__contains()
/linux/tools/testing/selftests/alsa/
H A Dmixer-test.c440 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/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/tools/testing/kunit/
H A Dkunit_tool_test.py92 def assertContains(self, needle: str, haystack: kunit_parser.LineStream):
96 if needle in line:
/linux/tools/testing/selftests/net/forwarding/
H A Dbridge_mdb_max.sh328 local needle=$1; shift