Home
last modified time | relevance | path

Searched refs:memmem (Results 1 – 25 of 57) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/proc/
Dproc-pid-vm.c354 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main()
355 memmem(buf, rv, RSS2, strlen(RSS2))); in main()
356 assert(memmem(buf, rv, PSS1, strlen(PSS1)) || in main()
357 memmem(buf, rv, PSS2, strlen(PSS2))); in main()
372 assert(memmem(buf, rv, S[i], strlen(S[i]))); in main()
376 assert(memmem(buf, rv, str_vsyscall, strlen(str_vsyscall))); in main()
406 assert(memmem(buf, rv, RSS1, strlen(RSS1)) || in main()
407 memmem(buf, rv, RSS2, strlen(RSS2))); in main()
408 assert(memmem(buf, rv, PSS1, strlen(PSS1)) || in main()
409 memmem(buf, rv, PSS2, strlen(PSS2))); in main()
[all …]
/external/libtextclassifier/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST()
131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
Dmemutil.h129 inline const char* memmem(const char* phaystack, size_t haylen, in memmem() function
/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST()
131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
/external/openscreen/third_party/abseil/src/absl/strings/internal/
Dmemutil_test.cc130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST()
131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
Dmemutil.h129 inline const char* memmem(const char* phaystack, size_t haylen, in memmem() function
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST()
131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
Dmemutil.h129 inline const char* memmem(const char* phaystack, size_t haylen, in memmem() function
/external/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST()
131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dmemutil_test.cc130 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 0, "", 0), kHaystack); in TEST()
131 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "012", 3), in TEST()
133 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "0xx", 1), in TEST()
135 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "789", 3), in TEST()
137 EXPECT_EQ(absl::strings_internal::memmem(kHaystack, 10, "9xx", 1), in TEST()
139 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "9xx", 3) == in TEST()
141 EXPECT_TRUE(absl::strings_internal::memmem(kHaystack, 10, "xxx", 1) == in TEST()
Dmemutil_benchmark.cc100 absl::strings_internal::memmem(kHaystack, kHaystackSize, "b", 1)); in BM_Memmem()
109 absl::strings_internal::memmem(kHaystack, kHaystackSize, "ab", 2)); in BM_MemmemMedium()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
300 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemStartup()
Dmemutil.h129 inline const char* memmem(const char* phaystack, size_t haylen, in memmem() function
/external/llvm-project/compiler-rt/test/asan/TestCases/Linux/
Dmemmem_test.cpp12 res = memmem(a1, sizeof(a1) + 1, a2, sizeof(a2)); // BOOM in main()
14 res = memmem(a1, sizeof(a1), a2, sizeof(a2) + 1); // BOOM in main()
/external/llvm-project/compiler-rt/test/fuzzer/
DStrstrTest.cpp15 #define memmem(a, b, c, d) true macro
23 memmem(s.data(), s.size(), "kuku", 4) in LLVMFuzzerTestOneInput()
Dmagic-separator.test1 # Temporary disable this test on non-linux: looks like there is no memmem on windows.
DMagicSeparatorTest.cpp27 while (const uint8_t *Pos = (const uint8_t *)memmem(Beg, End - Beg, in SplitInput()
/external/openssh/openbsd-compat/
Dmemmem.c41 memmem(const void *l, size_t l_len, const void *s, size_t s_len) in memmem() function
68 DEF_WEAK(memmem);
/external/llvm-project/compiler-rt/lib/fuzzer/
DFuzzerInterceptors.cpp148 DEFINE_REAL(void *, memmem, const void *, size_t, const void *, size_t) in DEFINE_REAL()
212 void *memmem(const void *s1, size_t len1, const void *s2, size_t len2) { in memmem() function
214 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
246 REAL(memmem) = reinterpret_cast<memmem_type>( in fuzzerInit()
247 getFuncAddr("memmem", reinterpret_cast<uintptr_t>(&memmem))); in fuzzerInit()
/external/rust/crates/libfuzzer-sys/libfuzzer/
DFuzzerInterceptors.cpp148 DEFINE_REAL(void *, memmem, const void *, size_t, const void *, size_t) in DEFINE_REAL()
212 void *memmem(const void *s1, size_t len1, const void *s2, size_t len2) { in memmem() function
214 void *result = REAL(memmem)(s1, len1, s2, len2); in memmem()
246 REAL(memmem) = reinterpret_cast<memmem_type>( in fuzzerInit()
247 getFuncAddr("memmem", reinterpret_cast<uintptr_t>(&memmem))); in fuzzerInit()
/external/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Posix/
Dweak_hook_test.cpp89 ptr_sink = memmem(s1, sizeof(s1), s2, sizeof(s2)); in main()

123