Home
last modified time | relevance | path

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

12

/system/extras/libpagemap/
Dpm_process.c90 error = pm_map_usage_flags(proc->maps[i], &map_usage, flags_mask, in pm_process_usage_flags()
158 pm_map_t **maps; in pm_process_maps() local
164 maps = malloc(proc->num_maps * sizeof(pm_map_t*)); in pm_process_maps()
165 if (!maps) in pm_process_maps()
168 memcpy(maps, proc->maps, proc->num_maps * sizeof(pm_map_t*)); in pm_process_maps()
170 *maps_out = maps; in pm_process_maps()
198 error = pm_map_workingset(proc->maps[i], &map_ws); in pm_process_workingset()
233 pm_map_destroy(proc->maps[i]); in pm_process_destroy()
235 free(proc->maps); in pm_process_destroy()
251 pm_map_t *map, **maps, **new_maps; in read_maps() local
[all …]
Dpagemap_test.cpp23 TEST(pagemap, maps) { in TEST() argument
30 pm_map_t** maps; in TEST() local
32 ASSERT_EQ(0, pm_process_maps(process, &maps, &num_maps)); in TEST()
37 std::string name(maps[i]->name); in TEST()
45 free(maps); in TEST()
/system/core/libbacktrace/
DGetPss.cpp47 FILE* maps = fopen("/proc/self/maps", "r"); in GetPssBytes() local
48 if (maps == nullptr) { in GetPssBytes()
54 fclose(maps); in GetPssBytes()
60 fclose(maps); in GetPssBytes()
68 while (fgets(line, sizeof(line), maps)) { in GetPssBytes()
88 fclose(maps); in GetPssBytes()
Dbacktrace_offline_test.cpp226 std::vector<backtrace_map_t> maps; member
245 testdata->maps.resize(testdata->maps.size() + 1); in ReadOfflineTestData()
246 backtrace_map_t& map = testdata->maps.back(); in ReadOfflineTestData()
301 for (auto& map : testdata.maps) { in BacktraceOfflineTest()
308 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(testdata.pid, testdata.maps)); in BacktraceOfflineTest()
375 for (auto& map : testdata.maps) { in TEST()
382 std::unique_ptr<BacktraceMap> map(BacktraceMap::Create(testdata.pid, testdata.maps)); in TEST()
395 uintptr_t vaddr_in_file = backtrace->GetFrame(i)->pc - testdata.maps[0].start + in TEST()
396 testdata.maps[0].load_base; in TEST()
DBacktraceMap.cpp149 BacktraceMap* BacktraceMap::Create(pid_t pid, const std::vector<backtrace_map_t>& maps) { argument
151 backtrace_map->maps_.insert(backtrace_map->maps_.begin(), maps.begin(), maps.end());
/system/extras/simpleperf/
Dthread_tree.cpp63 *child->maps = *parent->maps; in ForkThread()
83 MapSet* maps = nullptr; in CreateThread() local
85 maps = new MapSet; in CreateThread()
86 map_set_storage_.push_back(std::unique_ptr<MapSet>(maps)); in CreateThread()
90 maps = process->maps; in CreateThread()
95 maps, in CreateThread()
136 FixOverlappedMap(thread->maps, map); in AddThreadMap()
137 auto pair = thread->maps->insert(map); in AddThreadMap()
156 void ThreadTree::FixOverlappedMap(MapSet* maps, const MapEntry* map) { in FixOverlappedMap() argument
157 for (auto it = maps->begin(); it != maps->end();) { in FixOverlappedMap()
[all …]
Dthread_tree.h68 MapSet* maps; member
127 void FixOverlappedMap(MapSet* maps, const MapEntry* map);
Dinplace_sampler_lib.cpp264 std::vector<ThreadMmap> maps; in CheckMapChange() local
265 if (!GetThreadMmapsInProcess(getpid(), &maps)) { in CheckMapChange()
269 for (auto& map : maps) { in CheckMapChange()
Ddwarf_unwind.cpp116 std::vector<backtrace_map_t> bt_maps(thread.maps->size()); in UnwindCallChain()
118 for (auto& map : *thread.maps) { in UnwindCallChain()
/system/extras/ksmutils/
Dksminfo.c62 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags);
75 pm_map_t **maps; in main() local
160 error = pm_process_maps(proc, &maps, &num_maps); in main()
168 if (read_pages(&kp, maps, num_maps, pr_flags) < 0) { in main()
169 free(maps); in main()
175 free(maps); in main()
190 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags) { in read_pages() argument
210 pid = pm_process_pid(maps[0]->proc); in read_pages()
211 ker = maps[0]->proc->ker; in read_pages()
231 error = pm_map_pagemap(maps[i], &pagemap, &map_len); in read_pages()
[all …]
/system/extras/librank/
Dlibrank.c210 pm_map_t **maps; in main() local
343 error = pm_process_maps(proc, &maps, &num_maps); in main()
350 if (prefix && (strncmp(pm_map_name(maps[j]), prefix, prefix_len))) in main()
353 if (perm && (pm_map_flags(maps[j]) & PM_MAP_PERMISSIONS) != perm) in main()
356 li = get_library(pm_map_name(maps[j]), all); in main()
362 error = pm_map_usage_flags(maps[j], &map_usage, flags_mask, in main()
367 pm_map_name(maps[j]), proc->pid); in main()
/system/sepolicy/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
Ddumpstate.te105 # Reading /proc/PID/maps of other processes
/system/sepolicy/private/
Duntrusted_app.te5 ### Apps are labeled based on mac_permissions.xml (maps signer and
6 ### optionally package name to seinfo value) and seapp_contexts (maps UID
Duntrusted_app_25.te7 ### Apps are labeled based on mac_permissions.xml (maps signer and
8 ### optionally package name to seinfo value) and seapp_contexts (maps UID
Duntrusted_app_all.te7 ### Apps are labeled based on mac_permissions.xml (maps signer and
8 ### optionally package name to seinfo value) and seapp_contexts (maps UID
Dincidentd.te58 # Reading /proc/PID/maps of other processes
/system/extras/app-launcher/
Dapp-launcher355 launch_app com.google.android.apps.maps com.google.android.maps.MapsActivity > maps-$model
356 getstats maps-$model Maps
DREADME69 adb shell 'simpleperf stat -a am start -W -n com.google.android.apps.maps/com.google.android.maps.M…
70 adb shell 'am force-stop com.google.android.apps.maps'
/system/extras/procmem/
Dprocmem.c51 pm_map_t **maps; size_t num_maps; in main() local
129 error = pm_process_maps(proc, &maps, &num_maps); in main()
165 mi->map = maps[i]; in main()
/system/core/libbacktrace/include/backtrace/
DBacktraceMap.h56 static BacktraceMap* Create(pid_t pid, const std::vector<backtrace_map_t>& maps);
/system/extras/simpleperf/scripts/
Dapp_profiler.py229 maps = self.run_in_app_dir(['cat', '/proc/%d/maps' % self.app_pid])
231 for item in maps.split():
/system/extras/libpagemap/include/pagemap/
Dpagemap.h95 pm_map_t **maps; member
/system/core/libmemunreachable/
DREADME.md59 - `ProcessMappings.cpp`: Collects snapshots of `/proc/pid/maps`.

12