/bionic/benchmarks/ |
D | sincosf_input.cpp | 29 static const std::vector<float> sincosf_input0 = { 543 static const std::vector<float> sincosf_input1 = { 1057 static const std::vector<float> sincosf_input2 = { 1571 static const std::vector<float> sincosf_input3 = { 2085 static const std::vector<float> sincosf_input4 = { 2599 static const std::vector<float> sincosf_input5 = { 3113 static const std::vector<float> sincosf_input6 = { 3627 static const std::vector<float> sincosf_input7 = { 4144 std::vector<float> values; 4147 static const std::vector<sincosf_range> sincosf_input = {
|
D | string_benchmark.cpp | 29 std::vector<char> src; in BM_string_memcmp() 30 std::vector<char> dst; in BM_string_memcmp() 47 std::vector<char> src; in BM_string_memcpy() 48 std::vector<char> dst; in BM_string_memcpy() 65 std::vector<char> src; in BM_string_memmove_non_overlapping() 66 std::vector<char> dst; in BM_string_memmove_non_overlapping() 82 std::vector<char> buf(3 * alignment + nbytes + 1, 'x'); in BM_string_memmove_overlap_dst_before_src() 97 std::vector<char> buf; in BM_string_memmove_overlap_src_before_dst() 112 std::vector<char> buf; in BM_string_memset() 127 std::vector<char> buf; in BM_string_strlen() [all …]
|
D | bionic_benchmarks.cpp | 40 static const std::vector<int> kCommonSizes{ 54 static const std::vector<int> kSmallSizes{ 63 static const std::vector<int> kMediumSizes{ 73 static const std::vector<int> kLargeSizes{ 80 static std::map<std::string, const std::vector<int> &> kSizes{ 100 typedef std::vector<std::vector<int64_t>> args_vector_t; 121 void SanitizeOpts(int argc, char** argv, std::vector<char*>* new_argv) { in SanitizeOpts() 339 to_populate->push_back(std::vector<int64_t>()); in ResolveArgs() 369 for (const std::vector<int64_t>& args : (*run_args)) { in RegisterGoogleBenchmarks() 462 static void SetArgs(const std::vector<int>& sizes, args_vector_t* args) { in SetArgs() [all …]
|
D | util.h | 60 std::vector<std::string> extra_benchmarks; 66 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes); 68 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nbytes); 70 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte);
|
D | util.cpp | 48 char* GetAlignedPtr(std::vector<char>* buf, size_t alignment, size_t nbytes) { in GetAlignedPtr() 53 wchar_t* GetAlignedPtr(std::vector<wchar_t>* buf, size_t alignment, size_t nchars) { in GetAlignedPtr() 59 char* GetAlignedPtrFilled(std::vector<char>* buf, size_t alignment, size_t nbytes, char fill_byte) { in GetAlignedPtrFilled()
|
/bionic/linker/ |
D | linker_namespaces.h | 37 std::vector<std::string> fix_lib_paths(std::vector<std::string> paths); 91 const std::vector<std::string>& get_ld_library_paths() const { in get_ld_library_paths() 94 void set_ld_library_paths(std::vector<std::string>&& library_paths) { in set_ld_library_paths() 98 const std::vector<std::string>& get_default_library_paths() const { in get_default_library_paths() 101 void set_default_library_paths(std::vector<std::string>&& library_paths) { in set_default_library_paths() 104 void set_default_library_paths(const std::vector<std::string>& library_paths) { in set_default_library_paths() 108 const std::vector<std::string>& get_permitted_paths() const { in get_permitted_paths() 111 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths() 114 void set_permitted_paths(const std::vector<std::string>& permitted_paths) { in set_permitted_paths() 118 const std::vector<std::string>& get_allowed_libs() const { return allowed_libs_; } in get_allowed_libs() [all …]
|
D | linker_config.h | 93 const std::vector<std::string>& search_paths() const { in search_paths() 97 const std::vector<std::string>& permitted_paths() const { in permitted_paths() 101 const std::vector<std::string>& allowed_libs() const { return allowed_libs_; } in allowed_libs() 103 const std::vector<NamespaceLinkConfig>& links() const { in links() 120 void set_search_paths(std::vector<std::string>&& search_paths) { in set_search_paths() 124 void set_permitted_paths(std::vector<std::string>&& permitted_paths) { in set_permitted_paths() 128 void set_allowed_libs(std::vector<std::string>&& allowed_libs) { in set_allowed_libs() 136 std::vector<std::string> search_paths_; 137 std::vector<std::string> permitted_paths_; 138 std::vector<std::string> allowed_libs_; [all …]
|
D | linker_config_test.cpp | 104 static std::vector<std::string> resolve_paths(std::vector<std::string> paths) { in resolve_paths() 105 std::vector<std::string> resolved_paths; in resolve_paths() 111 const std::vector<std::string> kExpectedDefaultSearchPath = in run_linker_config_smoke_test() 112 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test() 113 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test() 115 const std::vector<std::string> kExpectedDefaultPermittedPath = in run_linker_config_smoke_test() 116 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/vendor" }) : in run_linker_config_smoke_test() 117 std::vector<std::string>({ "/vendor/lib" ARCH_SUFFIX })); in run_linker_config_smoke_test() 119 const std::vector<std::string> kExpectedSystemSearchPath = in run_linker_config_smoke_test() 120 resolve_paths(is_asan ? std::vector<std::string>({ "/data", "/system/lib" ARCH_SUFFIX }) : in run_linker_config_smoke_test() [all …]
|
D | linker_utils.h | 36 void format_string(std::string* str, const std::vector<std::pair<std::string, std::string>>& params… 48 void resolve_paths(std::vector<std::string>& paths, 49 std::vector<std::string>* resolved_paths); 54 void split_path(const char* path, const char* delimiters, std::vector<std::string>* paths);
|
D | linker_main.h | 51 std::vector<android_namespace_t*> init_default_namespaces(const char* executable_path); 61 std::vector<soinfo*>* ld_preloads, 66 std::vector<android_namespace_t*>* namespaces = nullptr);
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 40 void Exec(std::vector<const char*> args); 41 void RunTest(int expected_exitcode, std::vector<const char*> extra_args = {}); 43 std::vector<const char*> extra_args = {}, bool sanitize = true); 78 void SystemTests::Exec(std::vector<const char*> args) { in Exec() 105 … int expected_exitcode, std::vector<const char*> extra_args, bool sanitize) { in Verify() 116 void SystemTests::RunTest(int expected_exitcode, std::vector<const char*> extra_args) { in RunTest() 117 std::vector<const char*> args; in RunTest() 176 Verify(expected, 0, std::vector<const char*>{"--help"}, false); in TEST_F() 180 RunTest(0, std::vector<const char*>{"--bionic_iterations=1"}); in TEST_F() 201 Verify(expected, 0, std::vector<const char*>{GetBionicXmlArg("test_small.xml").c_str(), in TEST_F() [all …]
|
D | benchmark_test.cpp | 21 std::vector<char> buf(100); in TEST() 33 std::vector<char> buf; in TEST()
|
/bionic/libc/malloc_debug/tests/ |
D | backtrace_fake.cpp | 29 static std::deque<std::vector<uintptr_t>> g_fake_backtrace; 35 void backtrace_fake_add(const std::vector<uintptr_t>& ips) { in backtrace_fake_add() 63 static std::deque<std::vector<unwindstack::LocalFrameData>> g_fake_local_frame_data; 69 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames) { in BacktraceUnwindFake() 73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t)… in Unwind() 88 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& /*frame_info*/) { in UnwindLog()
|
D | backtrace_fake.h | 27 void backtrace_fake_add(const std::vector<uintptr_t>& ips); 30 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames);
|
D | malloc_debug_system_tests.cpp | 84 std::vector<const char*> args; in Exec() 102 std::vector<char> buffer(4096); in Exec() 197 static void FindStrings(pid_t pid, std::vector<const char*> match_strings, in FindStrings() 198 std::vector<const char*> no_match_strings = std::vector<const char*>{}, in FindStrings() 234 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"})); in TEST() 440 pid, std::vector<const char*>{"malloc debug enabled", expected_leak.c_str()})); in VerifyLeak() 487 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"})); in TEST() 501 std::vector<std::vector<void*>> allocs(kMaxThreads); in TEST() 540 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"})); in TEST() 578 ASSERT_NO_FATAL_FAILURE(FindStrings(pid, std::vector<const char*>{"malloc debug enabled"}, in TEST() [all …]
|
/bionic/libc/malloc_debug/ |
D | UnwindBacktrace.h | 39 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t … 41 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& frame_info);
|
D | UnwindBacktrace.cpp | 59 …std::vector<std::string> skip_libraries{"/system/lib64/libunwindstack.so", "/system/lib64/libc_mal… in Setup() 61 …std::vector<std::string> skip_libraries{"/system/lib/libunwindstack.so", "/system/lib/libc_malloc_… in Setup() 68 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* frame_info, s… in Unwind() 87 void UnwindLog(const std::vector<unwindstack::LocalFrameData>& frame_info) { in UnwindLog()
|
D | PointerData.h | 84 std::vector<uintptr_t> frames; 112 std::vector<unwindstack::LocalFrameData>* backtrace_info; 153 static void GetAllocList(std::vector<ListInfoType>* list); 168 static void GetList(std::vector<ListInfoType>* list, bool only_with_backtrace); 169 static void GetUniqueList(std::vector<ListInfoType>* list, bool only_with_backtrace); 172 std::vector<uint8_t> cmp_mem_; 184 static std::unordered_map<size_t, std::vector<unwindstack::LocalFrameData>> backtraces_info_;
|
/bionic/tests/ |
D | fdtrack_test.cpp | 48 void DumpEvent(std::vector<android_fdtrack_event>* events, size_t index) { in DumpEvent() 60 std::vector<android_fdtrack_event> FdtrackRun(void (*func)(), bool reenable = true) { in FdtrackRun() 67 static std::vector<android_fdtrack_event> events; in FdtrackRun() 188 void SetFdResult(std::vector<int>* output, int fd) { in SetFdResult() 192 void SetFdResult(std::vector<int>* output, std::vector<int> fds) { in SetFdResult() 198 static std::vector<int> expected_fds; \ 272 std::vector<int> fds = { -1, -1}; 280 std::vector<int> fds = { -1, -1}; 288 std::vector<int> fds = { -1, -1};
|
D | malloc_iterate_test.cpp | 48 std::vector<AllocDataType> allocs; 106 std::vector<char> buffer(64 * 1024); in VerifyPtrs() 125 static void AllocateSizes(TestDataType* test_data, const std::vector<size_t>& sizes) { in AllocateSizes() 154 std::vector<size_t> sizes{8, 16, 32, 48, 64, 80, 96, 112, 128, 160, in TEST() 176 std::vector<size_t> sizes{131072, 262144, 524288, 1048576, 2097152}; in TEST() 221 std::vector<char> buffer(64 * 1024); in TEST()
|
D | dirent_test.cpp | 42 std::set<std::string>& name_set, std::vector<std::string>& name_list) { in ScanEntries() 63 std::vector<std::string> unsorted_name_list; in TEST() 70 std::vector<std::string> sorted_name_list(unsorted_name_list); in TEST() 76 std::vector<std::string> unsorted_name_list64; in TEST() 105 std::vector<std::string> unsorted_name_list, unsorted_name_list_at, unsorted_name_list_at64; in TEST() 289 std::vector<std::string> pass1; in TEST() 299 std::vector<std::string> pass2; in TEST() 316 std::vector<long> offset_list; in TEST() 317 std::vector<std::string> name_list; in TEST()
|
D | utils.h | 110 static bool parse_maps(std::vector<map_record>* maps) { in parse_maps() 224 void SetArgs(const std::vector<const char*>& args) { in SetArgs() 227 void SetEnv(const std::vector<const char*>& env) { in SetEnv() 267 std::vector<const char*> args_; 268 std::vector<const char*> env_;
|
/bionic/tools/versioner/src/ |
D | Driver.h | 30 std::vector<std::string> headers; 31 std::vector<std::string> dependencies;
|
D | Driver.cpp | 96 static std::unordered_map<CompilationType, std::vector<std::string>> cc1_flags; 100 const std::vector<std::string>& include_dirs) { in generateTargetCC1Flags() 101 std::vector<std::string> cmd = { "versioner" }; in generateTargetCC1Flags() 173 std::vector<std::string> result(cc_args.begin(), cc_args.end()); in generateTargetCC1Flags() 187 static std::vector<const char*> getCC1Command(CompilationType type, const std::string& filename) { in getCC1Command() 193 std::vector<const char*> result; in getCC1Command() 214 std::vector<std::thread> threads; in initializeTargetCC1FlagCache() 245 std::vector<const char*> cc1_flags = getCC1Command(type, filename); in compileHeader()
|
/bionic/libc/system_properties/ |
D | context_lookup_benchmark.cpp | 71 static std::vector<std::string> PropertiesToLookup() { in PropertiesToLookup() 72 std::vector<std::string> properties; in PropertiesToLookup() 110 std::vector<std::string> errors; in CreateSerializedTrie() 111 std::vector<PropertyInfoEntry> property_infos; in CreateSerializedTrie()
|