| /tools/testing/selftests/powerpc/papr_vpd/ |
| A D | papr_vpd.c | 62 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()
|
| /tools/perf/tests/ |
| A D | util.c | 10 static int test_strreplace(char needle, const char *haystack, in test_strreplace() argument 13 char *new = strreplace_chars(needle, haystack, replace); in test_strreplace()
|
| /tools/perf/util/ |
| A D | string.c | 421 char *strreplace_chars(char needle, const char *haystack, const char *replace) in strreplace_chars() argument 425 const char *loc = strchr(haystack, needle); in strreplace_chars() 431 loc = strchr(loc + 1, needle); in strreplace_chars() 439 loc = strchr(haystack, needle); in strreplace_chars() 453 loc = strchr(from, needle); in strreplace_chars()
|
| A D | string2.h | 44 char *strreplace_chars(char needle, const char *haystack, const char *replace);
|
| A D | parse-events.h | 277 const char *needle);
|
| A D | parse-events.c | 2469 const char *needle) in parse_events_error__contains() argument 2474 if (strstr(pos->str, needle) != NULL) in parse_events_error__contains()
|
| /tools/testing/selftests/cgroup/lib/include/ |
| A D | cgroup_util.h | 43 const char *needle); 64 extern int proc_read_strstr(int pid, bool thread, const char *item, const char *needle);
|
| /tools/testing/selftests/powerpc/signal/ |
| 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()
|
| /tools/testing/selftests/powerpc/mm/ |
| 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()
|
| /tools/include/nolibc/ |
| A D | string.h | 296 char *strstr(const char *haystack, const char *needle) in strstr() argument 300 len_needle = strlen(needle); in strstr() 306 if (!memcmp(haystack, needle, len_needle)) in strstr()
|
| /tools/testing/selftests/cgroup/lib/ |
| A D | cgroup_util.c | 126 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() 540 int proc_read_strstr(int pid, bool thread, const char *item, const char *needle) in proc_read_strstr() argument 547 return strstr(buf, needle) ? 0 : -1; in proc_read_strstr()
|
| /tools/hv/ |
| A D | hv_kvp_daemon.c | 740 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()
|
| /tools/testing/selftests/net/ |
| A D | bpf_offload.py | 600 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)
|
| /tools/testing/selftests/bpf/ |
| A D | test_verifier.c | 1307 char needle[200]; in cmp_str_seq() local 1319 if (len >= sizeof(needle) || !len) { in cmp_str_seq() 1323 strncpy(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()
|
| /tools/testing/selftests/alsa/ |
| A D | mixer-test.c | 440 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()
|
| /tools/testing/kunit/ |
| A D | kunit_tool_test.py | 92 def assertContains(self, needle: str, haystack: kunit_parser.LineStream): 96 if needle in line:
|
| /tools/testing/selftests/net/forwarding/ |
| A D | bridge_mdb_max.sh | 328 local needle=$1; shift
|