/system/unwinding/libunwindstack/benchmarks/ |
D | local_unwind_benchmarks.cpp | 36 unwindstack::Maps* maps; member 72 unwindstack::Unwinder unwinder(kMaxFrames, data->maps, regs.get(), data->process_memory); in Unwind() 87 unwindstack::LocalMaps maps; in BM_local_unwind_uncached_process_memory() local 88 if (!maps.Parse()) { in BM_local_unwind_uncached_process_memory() 92 UnwindData data = {.process_memory = process_memory, .maps = &maps, .resolve_names = true}; in BM_local_unwind_uncached_process_memory() 99 unwindstack::LocalMaps maps; in BM_local_unwind_cached_process_memory() local 100 if (!maps.Parse()) { in BM_local_unwind_cached_process_memory() 104 UnwindData data = {.process_memory = process_memory, .maps = &maps, .resolve_names = true}; in BM_local_unwind_cached_process_memory() 111 unwindstack::LocalUpdatableMaps maps; in BM_local_unwind_local_updatable_maps_uncached() local 112 if (!maps.Parse()) { in BM_local_unwind_local_updatable_maps_uncached() [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()
|
D | remote_unwind_benchmarks.cpp | 118 unwindstack::RemoteMaps maps(pid); in RemoteUnwind() local 119 if (!maps.Parse()) { in RemoteUnwind() 125 unwindstack::Unwinder unwinder(32, &maps, regs.get(), process_memory); in RemoteUnwind()
|
/system/unwinding/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 | 136 static void VerifyUnwind(pid_t pid, Maps* maps, Regs* regs, in VerifyUnwind() argument 140 Unwinder unwinder(512, maps, regs, process_memory); in VerifyUnwind() 175 std::unique_ptr<Maps> maps; in InnerFunction() local 178 maps.reset(new LocalMaps()); in InnerFunction() 179 ASSERT_TRUE(maps->Parse()); in InnerFunction() 181 unwinder.reset(new Unwinder(512, maps.get(), regs.get(), process_memory)); in InnerFunction() 271 RemoteMaps maps(pid); in TEST_F() local 272 ASSERT_TRUE(maps.Parse()); in TEST_F() 276 VerifyUnwind(pid, &maps, regs.get(), kFunctionOrder); in TEST_F() 331 RemoteMaps maps(*pid); in RemoteUnwind() local [all …]
|
D | MapInfoGetElfTest.cpp | 62 void InitMapInfo(std::vector<std::unique_ptr<MapInfo>>& maps, bool in_memory); 391 void MapInfoGetElfTest::InitMapInfo(std::vector<std::unique_ptr<MapInfo>>& maps, bool in_memory) { in InitMapInfo() argument 392 maps.resize(2); in InitMapInfo() 393 maps[0].reset(new MapInfo(nullptr, nullptr, 0x1000, 0x2000, 0, PROT_READ, elf_.path)); in InitMapInfo() 394 maps[1].reset(new MapInfo(maps[0].get(), maps[0].get(), 0x2000, 0x3000, 0x1000, in InitMapInfo() 409 std::vector<std::unique_ptr<MapInfo>> maps; in TEST_F() local 412 InitMapInfo(maps, true); in TEST_F() 413 ASSERT_EQ(2U, maps.size()); in TEST_F() 414 MapInfo* r_map_info = maps[0].get(); in TEST_F() 415 MapInfo* rx_map_info = maps[1].get(); in TEST_F() [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 | 58 if (child->maps->maps.empty()) { in ForkThread() 59 *child->maps = *parent->maps; in ForkThread() 61 CHECK_NE(child->maps, parent->maps); in ForkThread() 62 for (auto& pair : parent->maps->maps) { in ForkThread() 63 InsertMap(*child->maps, *pair.second); in ForkThread() 89 std::shared_ptr<MapSet> maps; in CreateThread() local 92 maps.reset(new MapSet); in CreateThread() 97 maps = process->maps; in CreateThread() 103 maps, in CreateThread() 162 InsertMap(*thread->maps, MapEntry(start_addr, len, pgoff, dso, false, flags)); in AddThreadMap() [all …]
|
D | thread_tree_test.cpp | 41 ASSERT_TRUE(thread->maps != nullptr); in CheckMaps() 43 for (auto& pair : thread->maps->maps) { in CheckMaps()
|
/system/libprocinfo/ |
D | process_map_benchmark.cpp | 34 std::vector<android::procinfo::MapInfo> maps; in BM_ReadMapFile() local 36 map_file, [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); }); in BM_ReadMapFile() 37 CHECK_EQ(maps.size(), 2043u); in BM_ReadMapFile() 45 unwindstack::FileMaps maps(map_file); in BM_unwindstack_FileMaps() local 46 maps.Parse(); in BM_unwindstack_FileMaps() 47 CHECK_EQ(maps.Total(), 2043u); in BM_unwindstack_FileMaps() 57 unwindstack::BufferMaps maps(content.c_str()); in BM_unwindstack_BufferMaps() local 58 maps.Parse(); in BM_unwindstack_BufferMaps() 59 CHECK_EQ(maps.Total(), 2043u); in BM_unwindstack_BufferMaps()
|
D | process_map_test.cpp | 32 std::vector<android::procinfo::MapInfo> maps; in TEST() local 34 map_file, [&](const android::procinfo::MapInfo& mapinfo) { maps.emplace_back(mapinfo); })); in TEST() 35 ASSERT_EQ(2043u, maps.size()); in TEST() 36 ASSERT_EQ(maps[0].start, 0x12c00000ULL); in TEST() 37 ASSERT_EQ(maps[0].end, 0x2ac00000ULL); in TEST() 38 ASSERT_EQ(maps[0].flags, PROT_READ | PROT_WRITE); in TEST() 39 ASSERT_EQ(maps[0].pgoff, 0ULL); in TEST() 40 ASSERT_EQ(maps[0].inode, 10267643UL); in TEST() 41 ASSERT_EQ(maps[0].name, "[anon:dalvik-main space (region space)]"); in TEST() 42 ASSERT_EQ(maps[876].start, 0x70e6c4f000ULL); in TEST() [all …]
|
/system/unwinding/libunwindstack/include/unwindstack/ |
D | Unwinder.h | 68 Unwinder(size_t max_frames, Maps* maps, Regs* regs, std::shared_ptr<Memory> process_memory) in Unwinder() argument 70 maps_(maps), in Unwinder() 74 Unwinder(size_t max_frames, Maps* maps, std::shared_ptr<Memory> process_memory) in Unwinder() argument 75 : max_frames_(max_frames), maps_(maps), process_memory_(process_memory) {} in Unwinder() 133 static FrameData BuildFrameFromPcOnly(uint64_t pc, ArchEnum arch, Maps* maps, JitDebug* jit_debug, 138 Unwinder(size_t max_frames, Maps* maps = nullptr) : max_frames_(max_frames), maps_(maps) {} in max_frames_() 139 Unwinder(size_t max_frames, ArchEnum arch, Maps* maps = nullptr) 140 : max_frames_(max_frames), maps_(maps), arch_(arch) {} in max_frames_() 171 UnwinderFromPid(size_t max_frames, pid_t pid, Maps* maps = nullptr) 172 : Unwinder(max_frames, maps), pid_(pid) {} in Unwinder() argument [all …]
|
/system/unwinding/libunwindstack/include/ |
D | GlobalDebugInterface.h | 34 virtual bool GetFunctionName(Maps* maps, uint64_t pc, SharedString* name, uint64_t* offset) = 0; 36 virtual Symfile* Find(Maps* maps, uint64_t pc) = 0; 39 bool Load(Maps* maps, std::shared_ptr<Memory>& memory, uint64_t addr, uint64_t size,
|
/system/unwinding/libunwindstack/ |
D | GlobalDebugImpl.h | 133 bool ForEachSymfile(Maps* maps, uint64_t pc, Callback callback) { in ForEachSymfile() argument 138 FindAndReadVariable(maps, global_variable_name_); in ForEachSymfile() 154 ReadAllEntries(maps); in ForEachSymfile() 171 bool GetFunctionName(Maps* maps, uint64_t pc, SharedString* name, uint64_t* offset) { in GetFunctionName() argument 173 return ForEachSymfile(maps, pc, [pc, name, offset](Symfile* file) { in GetFunctionName() 178 Symfile* Find(Maps* maps, uint64_t pc) { in Find() argument 182 bool found = ForEachSymfile(maps, pc, [pc, &result](Symfile* file) { in Find() 198 bool ReadAllEntries(Maps* maps) { in ReadAllEntries() argument 201 if (!ReadAllEntries(maps, &race)) { in ReadAllEntries() 214 bool ReadAllEntries(Maps* maps, bool* race) { in ReadAllEntries() argument [all …]
|
D | DexFiles.cpp | 30 bool GlobalDebugInterface<DexFile>::Load(Maps* maps, std::shared_ptr<Memory>& memory, uint64_t addr, in Load() argument 32 dex = DexFile::Create(addr, size, memory.get(), maps->Find(addr)); in Load()
|
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/memory/libmeminfo/tools/ |
D | procmem.cpp | 99 static int show(const MemUsage& proc_stats, const std::vector<Vma>& maps) { in show() argument 102 for (auto& vma : maps) { in show() 196 std::vector<Vma> maps(proc.Maps()); in main() local 198 std::sort(maps.begin(), maps.end(), sort_func); in main() 201 return show(proc_stats, maps); in main()
|
/system/core/debuggerd/libdebuggerd/ |
D | tombstone.cpp | 88 unwindstack::Maps* maps) { in get_stack_overflow_cause() argument 106 unwindstack::MapInfo* map_info = maps->Find(sp); in get_stack_overflow_cause() 118 static void dump_probable_cause(log_t* log, const siginfo_t* si, unwindstack::Maps* maps, in dump_probable_cause() argument 135 cause = get_stack_overflow_cause(reinterpret_cast<uint64_t>(si->si_addr), regs->sp(), maps); in dump_probable_cause() 139 unwindstack::MapInfo* map_info = maps->Find(fault_addr); in dump_probable_cause() 143 cause = get_stack_overflow_cause(fault_addr, regs->sp(), maps); in dump_probable_cause() 241 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_all_maps() local 245 maps->Total(), maps->Total() == 1 ? "y" : "ies"); in dump_all_maps() 247 if (maps->Total() != 0 && addr < maps->Get(0)->start()) { in dump_all_maps() 261 for (auto const& map_info : *maps) { in dump_all_maps() [all …]
|
D | tombstone_proto.cpp | 84 unwindstack::Maps* maps) { in get_stack_overflow_cause() argument 102 unwindstack::MapInfo* map_info = maps->Find(sp); in get_stack_overflow_cause() 203 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_probable_cause() local 220 cause = get_stack_overflow_cause(fault_addr, main_thread.registers->sp(), maps); in dump_probable_cause() 223 unwindstack::MapInfo* map_info = maps->Find(fault_addr); in dump_probable_cause() 227 cause = get_stack_overflow_cause(fault_addr, main_thread.registers->sp(), maps); in dump_probable_cause() 303 unwindstack::Maps* maps) { in fill_in_backtrace_frame() argument 332 unwindstack::MapInfo* map_info = maps->Find(frame.map_start); in fill_in_backtrace_frame() 346 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_thread() local 350 [&thread, memory_dump, maps, memory](const char* name, uint64_t value) { in dump_thread() [all …]
|
/system/unwinding/libunwindstack/tests/fuzz/ |
D | UnwinderComponentCreator.cpp | 63 void ElfAddMapInfo(Maps* maps, uint64_t start, uint64_t end, uint64_t offset, uint64_t flags, in ElfAddMapInfo() argument 66 maps->Add(start, end, offset, flags, name, static_cast<uint64_t>(-1)); in ElfAddMapInfo() 68 const auto& map_info = *--maps->end(); in ElfAddMapInfo() 128 std::unique_ptr<Maps> maps = std::make_unique<Maps>(); in GetMaps() local 172 ElfAddMapInfo(maps.get(), start, end, offset, flags, map_info_name.c_str(), in GetMaps() 175 ElfAddMapInfo(maps.get(), start, end, offset, flags, map_info_name.c_str()); in GetMaps() 178 maps->Sort(); in GetMaps() 179 return maps; in GetMaps()
|
/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
|