Home
last modified time | relevance | path

Searched refs:maps (Results 1 – 25 of 91) sorted by relevance

1234

/system/core/libprocinfo/
Dprocess_map_test.cpp27 std::vector<android::procinfo::MapInfo> maps; in TEST() local
31 const char* name) { maps.emplace_back(start, end, flags, pgoff, inode, name); })); in TEST()
32 ASSERT_EQ(2043u, maps.size()); in TEST()
33 ASSERT_EQ(maps[0].start, 0x12c00000ULL); in TEST()
34 ASSERT_EQ(maps[0].end, 0x2ac00000ULL); in TEST()
35 ASSERT_EQ(maps[0].flags, PROT_READ | PROT_WRITE); in TEST()
36 ASSERT_EQ(maps[0].pgoff, 0ULL); in TEST()
37 ASSERT_EQ(maps[0].inode, 10267643UL); in TEST()
38 ASSERT_EQ(maps[0].name, "[anon:dalvik-main space (region space)]"); in TEST()
39 ASSERT_EQ(maps[876].start, 0x70e6c4f000ULL); in TEST()
[all …]
Dprocess_map_benchmark.cpp34 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/libunwindstack/benchmarks/
Dunwind_benchmarks.cpp32 size_t Call6(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call6() argument
35 unwindstack::Unwinder unwinder(32, maps, regs.get(), process_memory); in Call6()
40 size_t Call5(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call5() argument
41 return Call6(process_memory, maps); in Call5()
44 size_t Call4(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call4() argument
45 return Call5(process_memory, maps); in Call4()
48 size_t Call3(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call3() argument
49 return Call4(process_memory, maps); in Call3()
52 size_t Call2(std::shared_ptr<unwindstack::Memory>& process_memory, unwindstack::Maps* maps) { in Call2() argument
53 return Call3(process_memory, maps); in Call2()
[all …]
/system/core/libunwindstack/tests/
DMapsTest.cpp29 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 …]
DUnwindTest.cpp129 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 …]
DMapInfoCreateMemoryTest.cpp289 Maps maps; in TEST_F() local
290 maps.Add(0x500, 0x600, 0, PROT_READ, "something_else", 0); in TEST_F()
291 maps.Add(0x1000, 0x2600, 0, PROT_READ, "/only/in/memory.so", 0); in TEST_F()
292 maps.Add(0x3000, 0x5000, 0x4000, PROT_READ | PROT_EXEC, "/only/in/memory.so", 0); in TEST_F()
302 MapInfo* map_info = maps.Find(0x3000); in TEST_F()
329 Maps maps; in TEST_F() local
330 maps.Add(0x500, 0x600, 0, PROT_READ, "something_else", 0); in TEST_F()
331 maps.Add(0x1000, 0x2000, 0, PROT_READ, "/only/in/memory.apk", 0); in TEST_F()
332 maps.Add(0x2000, 0x3000, 0x1000, PROT_READ | PROT_EXEC, "/only/in/memory.apk", 0); in TEST_F()
333 maps.Add(0x3000, 0x4000, 0xa000, PROT_READ, "/only/in/memory.apk", 0); in TEST_F()
[all …]
/system/extras/simpleperf/
Dthread_tree.cpp46 if (child->maps->maps.empty()) { in ForkThread()
47 *child->maps = *parent->maps; in ForkThread()
49 for (auto& pair : parent->maps->maps) { in ForkThread()
50 InsertMap(*child->maps, *pair.second); in ForkThread()
72 MapSet* maps = nullptr; in CreateThread() local
74 maps = new MapSet; in CreateThread()
75 map_set_storage_.push_back(std::unique_ptr<MapSet>(maps)); in CreateThread()
79 maps = process->maps; in CreateThread()
84 maps, in CreateThread()
118 InsertMap(*thread->maps, MapEntry(start_addr, len, pgoff, dso, false, flags)); in AddThreadMap()
[all …]
Dthread_tree_test.cpp39 ASSERT_TRUE(thread->maps != nullptr); in CheckMaps()
41 for (auto& pair : thread->maps->maps) { in CheckMaps()
/system/core/libmeminfo/tools/
Dprocmem.cpp97 static int show(const MemUsage& proc_stats, const std::vector<Vma>& maps) { in show() argument
100 for (auto& vma : maps) { in show()
186 std::vector<Vma> maps(proc.Maps()); in main() local
188 std::sort(maps.begin(), maps.end(), sort_func); in main()
191 return show(proc_stats, maps); in main()
/system/core/libbacktrace/
DUnwindStackMap.cpp102 unwindstack::Maps* maps = stack_maps(); in GetFunctionName() local
105 unwindstack::MapInfo* map_info = maps->Find(pc); in GetFunctionName()
149 unwindstack::Maps* maps = new unwindstack::Maps; in Build() local
150 stack_maps_.reset(maps); in Build()
152 maps->Add(map.start, map.end, map.offset, map.flags, map.name, map.load_bias); in Build()
196 BacktraceMap* BacktraceMap::CreateOffline(pid_t pid, const std::vector<backtrace_map_t>& maps) { in CreateOffline() argument
198 if (!map->Build(maps)) { in CreateOffline()
Dbacktrace_offline_test.cpp186 std::vector<backtrace_map_t> maps; member
204 testdata->maps.resize(testdata->maps.size() + 1); in ReadOfflineTestData()
205 backtrace_map_t& map = testdata->maps.back(); in ReadOfflineTestData()
247 for (auto& map : testdata.maps) { in BacktraceOfflineTest()
267 arch, testdata.pid, testdata.tid, testdata.maps, testdata.stack_info)); in BacktraceOfflineTest()
330 for (auto& map : testdata.maps) { in LibUnwindingTest()
352 arch, testdata.pid, testdata.tid, testdata.maps, testdata.stack_info)); in LibUnwindingTest()
/system/core/debuggerd/libdebuggerd/
Dtombstone.cpp89 static void dump_probable_cause(log_t* log, const siginfo_t* si, unwindstack::Maps* maps) { in dump_probable_cause() argument
106 unwindstack::MapInfo* map_info = maps->Find(reinterpret_cast<uint64_t>(si->si_addr)); in dump_probable_cause()
157 static void dump_stack_segment(log_t* log, unwindstack::Maps* maps, unwindstack::Memory* memory, in dump_stack_segment() argument
177 unwindstack::MapInfo* map_info = maps->Find(stack_data[i]); in dump_stack_segment()
197 unwindstack::Maps* maps, unwindstack::Memory* memory) { in dump_stack() argument
215 dump_stack_segment(log, maps, memory, &sp, STACK_WORDS, -1); in dump_stack()
248 dump_stack_segment(log, maps, memory, &sp, words, i); in dump_stack()
252 dump_stack_segment(log, maps, memory, &sp, STACK_WORDS, i); in dump_stack()
301 unwindstack::Maps* maps = unwinder->GetMaps(); in dump_all_maps() local
305 maps->Total(), maps->Total() == 1 ? "y" : "ies"); in dump_all_maps()
[all …]
/system/core/libunwindstack/include/unwindstack/
DUnwinder.h66 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()
DJitDebug.h43 Elf* GetElf(Maps* maps, uint64_t pc);
46 void Init(Maps* maps);
DDexFiles.h47 void GetMethodInformation(Maps* maps, MapInfo* info, uint64_t dex_pc, std::string* method_name,
51 void Init(Maps* maps);
/system/core/libunwindstack/
DDexFiles.cpp121 void DexFiles::Init(Maps* maps) { in Init() argument
128 FindAndReadVariable(maps, "__dex_debug_descriptor"); in Init()
157 void DexFiles::GetMethodInformation(Maps* maps, MapInfo* info, uint64_t dex_pc, in GetMethodInformation() argument
161 Init(maps); in GetMethodInformation()
DJitDebug.cpp173 void JitDebug::Init(Maps* maps) { in Init() argument
180 FindAndReadVariable(maps, "__jit_debug_descriptor"); in Init()
183 Elf* JitDebug::GetElf(Maps* maps, uint64_t pc) { in GetElf() argument
188 Init(maps); in GetElf()
DGlobal.cpp66 void Global::FindAndReadVariable(Maps* maps, const char* var_str) { in FindAndReadVariable() argument
80 for (const auto& info : *maps) { in FindAndReadVariable()
/system/core/debuggerd/libdebuggerd/test/
Dtombstone_test.cpp379 unwindstack::Maps maps; in TEST_F() local
384 dump_stack(&log_, frames, &maps, &memory); in TEST_F()
463 unwindstack::Maps maps; in TEST_F() local
470 dump_stack(&log_, frames, &maps, &memory); in TEST_F()
553 unwindstack::Maps maps; in TEST_F() local
562 dump_stack(&log_, frames, &maps, &memory); in TEST_F()
681 unwindstack::Maps maps; in TEST_F() local
692 dump_stack(&log_, frames, &maps, &memory); in TEST_F()
/system/core/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp101 auto maps = std::make_unique<int[]>(pid_count); in PrintDmaBufInfo() local
112 memset(maps.get(), 0, sizeof(int) * pid_count); in PrintDmaBufInfo()
120 maps[pid_column[it->first]] = it->second; in PrintDmaBufInfo()
125 std::cout << ::android::base::StringPrintf("%d\t%d\t", fds[i], maps[i]); in PrintDmaBufInfo()
/system/sepolicy/prebuilts/api/26.0/public/
Duntrusted_app.te4 ### Apps are labeled based on mac_permissions.xml (maps signer and
5 ### optionally package name to seinfo value) and seapp_contexts (maps UID
Duntrusted_app_25.te4 ### 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/
Duntrusted_app_25.te4 ### Apps are labeled based on mac_permissions.xml (maps signer and
5 ### optionally package name to seinfo value) and seapp_contexts (maps UID
Duntrusted_app.te4 ### 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/private/
Dbpfloader.te11 # Allow bpfloader to create bpf maps and programs. The map_read and map_write permission is needed
24 # only system_server, netd and bpfloader can read/write the bpf maps

1234