/system/core/libunwindstack/benchmarks/ |
D | unwind_benchmarks.cpp | 31 size_t Call6(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call6() argument 34 unwindstack::Unwinder unwinder(32, maps, regs.get(), process_memory); in Call6() 39 size_t Call5(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call5() argument 40 return Call6(process_memory, maps); in Call5() 43 size_t Call4(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call4() argument 44 return Call5(process_memory, maps); in Call4() 47 size_t Call3(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call3() argument 48 return Call4(process_memory, maps); in Call3() 51 size_t Call2(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call2() argument 52 return Call3(process_memory, maps); in Call2() [all …]
|
D | MapsBenchmark.cpp | 46 std::string maps; in CreateMap() local 48 maps += android::base::StringPrintf("%zu-%zu r-xp 0000 00:00 0 name%zu\n", i * 1000, in CreateMap() 51 if (!android::base::WriteStringToFile(maps, filename)) { in CreateMap() 59 BenchmarkLocalUpdatableMaps maps; in ReparseBenchmark() local 60 maps.BenchmarkSetMapsFile(maps1); in ReparseBenchmark() 61 if (!maps.Reparse()) { in ReparseBenchmark() 64 if (maps.Total() != maps1_total) { in ReparseBenchmark() 65 errx(1, "Internal Error: Incorrect total number of maps %zu, expected %zu.", maps.Total(), in ReparseBenchmark() 68 maps.BenchmarkSetMapsFile(maps2); in ReparseBenchmark() 69 if (!maps.Reparse()) { in ReparseBenchmark() [all …]
|
D | ElfBenchmark.cpp | 81 static void InitializeBuildId(benchmark::State& state, unwindstack::Maps& maps, in InitializeBuildId() argument 83 if (!maps.Parse()) { in InitializeBuildId() 90 for (auto& map_info : maps) { in InitializeBuildId() 103 unwindstack::LocalMaps maps; in BM_elf_get_build_id_from_object() local 105 InitializeBuildId(state, maps, &build_id_map_info); in BM_elf_get_build_id_from_object() 127 unwindstack::LocalMaps maps; in BM_elf_get_build_id_from_file() local 129 InitializeBuildId(state, maps, &build_id_map_info); in BM_elf_get_build_id_from_file()
|
D | Utils.cpp | 50 const std::vector<android::meminfo::Vma>& maps = proc_mem.MapsWithoutUsageStats(); in GatherRss() local 51 for (auto& vma : maps) { in GatherRss()
|
/system/core/libunwindstack/tests/ |
D | MapsTest.cpp | 29 BufferMaps maps(line.c_str()); in VerifyLine() local 32 ASSERT_FALSE(maps.Parse()) << "Failed on: " + line; in VerifyLine() 34 ASSERT_TRUE(maps.Parse()) << "Failed on: " + line; in VerifyLine() 35 MapInfo* element = maps.Get(0); in VerifyLine() 47 Maps maps; in TEST() local 49 maps.Add(0x1000, 0x2000, 0, PROT_READ, "fake_map", 0); in TEST() 50 maps.Add(0x3000, 0x4000, 0x10, 0, "", 0x1234); in TEST() 51 maps.Add(0x5000, 0x6000, 1, 2, "fake_map2", static_cast<uint64_t>(-1)); in TEST() 53 ASSERT_EQ(3U, maps.Total()); in TEST() 54 MapInfo* info = maps.Get(0); in TEST() [all …]
|
D | UnwindTest.cpp | 129 static void VerifyUnwind(pid_t pid, Maps* maps, Regs* regs, in VerifyUnwind() argument 133 Unwinder unwinder(512, maps, regs, process_memory); in VerifyUnwind() 164 std::unique_ptr<Maps> maps; in InnerFunction() local 167 maps.reset(new LocalMaps()); in InnerFunction() 168 ASSERT_TRUE(maps->Parse()); in InnerFunction() 170 unwinder.reset(new Unwinder(512, maps.get(), regs.get(), process_memory)); in InnerFunction() 258 RemoteMaps maps(pid); in TEST_F() local 259 ASSERT_TRUE(maps.Parse()); in TEST_F() 263 VerifyUnwind(pid, &maps, regs.get(), kFunctionOrder); in TEST_F() 319 RemoteMaps maps(*pid); in RemoteUnwind() local [all …]
|
D | MapInfoCreateMemoryTest.cpp | 284 Maps maps; in TEST_F() local 285 maps.Add(0x500, 0x600, 0, PROT_READ, "something_else", 0); in TEST_F() 286 maps.Add(0x1000, 0x2600, 0, PROT_READ, "/only/in/memory.so", 0); in TEST_F() 287 maps.Add(0x3000, 0x5000, 0x4000, PROT_READ | PROT_EXEC, "/only/in/memory.so", 0); in TEST_F() 297 MapInfo* map_info = maps.Find(0x3000); in TEST_F() 324 Maps maps; in TEST_F() local 325 maps.Add(0x500, 0x600, 0, PROT_READ, "something_else", 0); in TEST_F() 326 maps.Add(0x1000, 0x2000, 0, PROT_READ, "/only/in/memory.apk", 0); in TEST_F() 327 maps.Add(0x2000, 0x3000, 0x1000, PROT_READ | PROT_EXEC, "/only/in/memory.apk", 0); in TEST_F() 328 maps.Add(0x3000, 0x4000, 0xa000, PROT_READ, "/only/in/memory.apk", 0); in TEST_F() [all …]
|
/system/extras/simpleperf/ |
D | OfflineUnwinder_test.cpp | 27 bool CheckUnwindMaps(UnwindMaps& maps, const MapSet& map_set) { in CheckUnwindMaps() argument 28 if (maps.Total() != map_set.maps.size()) { in CheckUnwindMaps() 32 for (size_t i = 0; i < maps.Total(); i++) { in CheckUnwindMaps() 33 unwindstack::MapInfo* info = maps.Get(i); in CheckUnwindMaps() 34 if (info == nullptr || map_set.maps.find(info->start) == map_set.maps.end()) { in CheckUnwindMaps() 57 UnwindMaps maps; in TEST() local 58 maps.UpdateMaps(map_set); in TEST() 59 ASSERT_TRUE(CheckUnwindMaps(maps, map_set)); in TEST() 64 map_set.maps.insert(std::make_pair(map_entries[i].start_addr, &map_entries[i])); in TEST() 67 maps.UpdateMaps(map_set); in TEST() [all …]
|
D | thread_tree.cpp | 46 if (child->maps->maps.empty()) { in ForkThread() 47 *child->maps = *parent->maps; in ForkThread() 49 CHECK_NE(child->maps, parent->maps); in ForkThread() 50 for (auto& pair : parent->maps->maps) { in ForkThread() 51 InsertMap(*child->maps, *pair.second); in ForkThread() 77 std::shared_ptr<MapSet> maps; in CreateThread() local 80 maps.reset(new MapSet); in CreateThread() 85 maps = process->maps; in CreateThread() 90 maps, in CreateThread() 131 InsertMap(*thread->maps, MapEntry(start_addr, len, pgoff, dso, false, flags)); in AddThreadMap() [all …]
|
D | thread_tree_test.cpp | 39 ASSERT_TRUE(thread->maps != nullptr); in CheckMaps() 41 for (auto& pair : thread->maps->maps) { in CheckMaps()
|
/system/core/libprocinfo/ |
D | process_map_test.cpp | 32 std::vector<android::procinfo::MapInfo> maps; in TEST() local 36 const char* name) { maps.emplace_back(start, end, flags, pgoff, inode, name); })); in TEST() 37 ASSERT_EQ(2043u, maps.size()); in TEST() 38 ASSERT_EQ(maps[0].start, 0x12c00000ULL); in TEST() 39 ASSERT_EQ(maps[0].end, 0x2ac00000ULL); in TEST() 40 ASSERT_EQ(maps[0].flags, PROT_READ | PROT_WRITE); in TEST() 41 ASSERT_EQ(maps[0].pgoff, 0ULL); in TEST() 42 ASSERT_EQ(maps[0].inode, 10267643UL); in TEST() 43 ASSERT_EQ(maps[0].name, "[anon:dalvik-main space (region space)]"); in TEST() 44 ASSERT_EQ(maps[876].start, 0x70e6c4f000ULL); in TEST() [all …]
|
D | process_map_benchmark.cpp | 34 std::vector<android::procinfo::MapInfo> maps; in BM_ReadMapFile() local 37 maps.emplace_back(start, end, flags, pgoff, inode, name); in BM_ReadMapFile() 39 CHECK_EQ(maps.size(), 2043u); in BM_ReadMapFile() 47 unwindstack::FileMaps maps(map_file); in BM_unwindstack_FileMaps() local 48 maps.Parse(); in BM_unwindstack_FileMaps() 49 CHECK_EQ(maps.Total(), 2043u); in BM_unwindstack_FileMaps() 59 unwindstack::BufferMaps maps(content.c_str()); in BM_unwindstack_BufferMaps() local 60 maps.Parse(); in BM_unwindstack_BufferMaps() 61 CHECK_EQ(maps.Total(), 2043u); in BM_unwindstack_BufferMaps()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 85 unwindstack::Maps* maps) { in get_stack_overflow_cause() argument 103 unwindstack::MapInfo* map_info = maps->Find(sp); in get_stack_overflow_cause() 115 static void dump_probable_cause(log_t* log, const siginfo_t* si, unwindstack::Maps* maps, in dump_probable_cause() argument 132 cause = get_stack_overflow_cause(reinterpret_cast<uint64_t>(si->si_addr), regs->sp(), maps); in dump_probable_cause() 136 unwindstack::MapInfo* map_info = maps->Find(fault_addr); in dump_probable_cause() 140 cause = get_stack_overflow_cause(fault_addr, regs->sp(), maps); in dump_probable_cause() 233 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_all_maps() local 237 maps->Total(), maps->Total() == 1 ? "y" : "ies"); in dump_all_maps() 239 if (maps->Total() != 0 && addr < maps->Get(0)->start) { in dump_all_maps() 253 for (auto const& map_info : *maps) { in dump_all_maps() [all …]
|
/system/memory/libmeminfo/tools/ |
D | procmem.cpp | 98 static int show(const MemUsage& proc_stats, const std::vector<Vma>& maps) { in show() argument 101 for (auto& vma : maps) { in show() 195 std::vector<Vma> maps(proc.Maps()); in main() local 197 std::sort(maps.begin(), maps.end(), sort_func); in main() 200 return show(proc_stats, maps); in main()
|
/system/core/libunwindstack/include/unwindstack/ |
D | Unwinder.h | 66 Unwinder(size_t max_frames, Maps* maps, Regs* regs, std::shared_ptr<Memory> process_memory) in Unwinder() argument 67 : max_frames_(max_frames), maps_(maps), regs_(regs), process_memory_(process_memory) { in Unwinder() 70 Unwinder(size_t max_frames, Maps* maps, std::shared_ptr<Memory> process_memory) in Unwinder() argument 71 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory) { in Unwinder()
|
D | JitDebug.h | 43 Elf* GetElf(Maps* maps, uint64_t pc); 46 void Init(Maps* maps);
|
D | DexFiles.h | 47 void GetMethodInformation(Maps* maps, MapInfo* info, uint64_t dex_pc, std::string* method_name, 51 void Init(Maps* maps);
|
/system/core/libunwindstack/ |
D | DexFiles.cpp | 132 void DexFiles::Init(Maps* maps) { in Init() argument 139 FindAndReadVariable(maps, "__dex_debug_descriptor"); in Init() 175 void DexFiles::GetMethodInformation(Maps* maps, MapInfo* info, uint64_t dex_pc, in GetMethodInformation() argument 179 Init(maps); in GetMethodInformation()
|
D | JitDebug.cpp | 174 void JitDebug::Init(Maps* maps) { in Init() argument 181 FindAndReadVariable(maps, "__jit_debug_descriptor"); in Init() 184 Elf* JitDebug::GetElf(Maps* maps, uint64_t pc) { in GetElf() argument 189 Init(maps); in GetElf()
|
D | Global.cpp | 60 void Global::FindAndReadVariable(Maps* maps, const char* var_str) { in FindAndReadVariable() argument 79 for (const auto& info : *maps) { in FindAndReadVariable()
|
/system/core/libunwindstack/tests/fuzz/ |
D | UnwinderComponentCreator.cpp | 58 void ElfAddMapInfo(Maps* maps, uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, in ElfAddMapInfo() argument 61 maps->Add(start, end, offset, flags, name, static_cast<uint64_t>(-1)); in ElfAddMapInfo() 63 const auto& map_info = *--maps->end(); in ElfAddMapInfo() 113 std::unique_ptr<Maps> maps = std::make_unique<Maps>(); in GetMaps() local 129 ElfAddMapInfo(maps.get(), start, end, offset, flags, map_info_name.c_str(), in GetMaps() 132 ElfAddMapInfo(maps.get(), start, end, offset, flags, map_info_name.c_str()); in GetMaps() 135 maps->Sort(); in GetMaps() 136 return maps; in GetMaps()
|
/system/memory/libmeminfo/ |
D | libmeminfo_test.cpp | 61 const std::vector<Vma>& maps = proc_mem.Maps(); in TEST() local 62 EXPECT_FALSE(maps.empty()); in TEST() 67 const std::vector<Vma>& maps = proc_mem.Maps(); in TEST() local 68 EXPECT_FALSE(maps.empty()); in TEST() 72 for (auto& map : maps) { in TEST() 87 const std::vector<Vma>& maps = proc_mem.MapsWithoutUsageStats(); in TEST() local 88 EXPECT_FALSE(maps.empty()); in TEST() 90 for (auto& map : maps) { in TEST() 106 const std::vector<Vma>& maps = proc_mem.MapsWithoutUsageStats(); in TEST() local 107 EXPECT_FALSE(maps.empty()); in TEST() [all …]
|
/system/sepolicy/prebuilts/api/26.0/public/ |
D | untrusted_app_25.te | 4 ### Apps are labeled based on mac_permissions.xml (maps signer and 5 ### optionally package name to seinfo value) and seapp_contexts (maps UID
|
/system/sepolicy/prebuilts/api/27.0/public/ |
D | untrusted_app_25.te | 4 ### Apps are labeled based on mac_permissions.xml (maps signer and 5 ### optionally package name to seinfo value) and seapp_contexts (maps UID
|
D | untrusted_app.te | 4 ### Apps are labeled based on mac_permissions.xml (maps signer and 5 ### optionally package name to seinfo value) and seapp_contexts (maps UID
|