Home
last modified time | relevance | path

Searched refs:mi (Results 1 – 5 of 5) sorted by relevance

/system/core/libbacktrace/
Dmap_info.c48 backtrace_map_info_t* mi = calloc(1, sizeof(backtrace_map_info_t) + name_len); in parse_vmmap_line() local
49 if (mi != NULL) { in parse_vmmap_line()
50 mi->start = start; in parse_vmmap_line()
51 mi->end = end; in parse_vmmap_line()
52 mi->is_readable = permissions[0] == 'r'; in parse_vmmap_line()
53 mi->is_writable = permissions[1] == 'w'; in parse_vmmap_line()
54 mi->is_executable = permissions[2] == 'x'; in parse_vmmap_line()
55 memcpy(mi->name, name, name_len); in parse_vmmap_line()
56 mi->name[name_len - 1] = '\0'; in parse_vmmap_line()
59 mi->start, mi->end, in parse_vmmap_line()
[all …]
/system/extras/procmem/
Dprocmem.c53 struct map_info *mi; in main() local
158 mi = (struct map_info *)calloc(1, sizeof(struct map_info)); in main()
159 if (!mi) { in main()
164 mi->map = maps[i]; in main()
169 error = pm_map_workingset(mi->map, &mi->usage); in main()
171 error = pm_map_usage(mi->map, &mi->usage); in main()
178 pm_memusage_add(&total_usage, &mi->usage); in main()
182 error = pm_map_pagemap(mi->map, &pagemap, &num_pages); in main()
189 mi->shared_clean = mi->shared_dirty = mi->private_clean = mi->private_dirty = 0; in main()
192 address = pm_map_start(mi->map) + j * ker->pagesize; in main()
[all …]
/system/extras/showmap/
Dshowmap.c40 static int parse_header(const char* line, const mapinfo* prev, mapinfo** mi) { in parse_header() argument
48 *mi = NULL; in parse_header()
83 *mi = info; in parse_header()
87 static int parse_field(mapinfo* mi, const char* line) { in parse_field() argument
96 mi->size = size; in parse_field()
98 mi->rss = size; in parse_field()
100 mi->pss = size; in parse_field()
102 mi->shared_clean = size; in parse_field()
104 mi->shared_dirty = size; in parse_field()
106 mi->private_clean = size; in parse_field()
[all …]
/system/extras/librank/
Dlibrank.c215 struct mapping_info *mi, **mis; in main() local
359 mi = get_mapping(li, pi); in main()
374 pm_memusage_add(&mi->usage, &map_usage); in main()
403 mi = li->mappings[j]; in main()
404 pi = mi->proc; in main()
406 mi->usage.vss / 1024, in main()
407 mi->usage.rss / 1024, in main()
408 mi->usage.pss / 1024, in main()
409 mi->usage.uss / 1024); in main()
411 printf("%6zdK ", mi->usage.swap / 1024); in main()
/system/core/lmkd/
Dlmkd.c649 struct sysmeminfo mi; in mp_event() local
663 while (zoneinfo_parse(&mi) < 0) { in mp_event()
668 other_free = mi.nr_free_pages - mi.totalreserve_pages; in mp_event()
669 other_file = mi.nr_file_pages - mi.nr_shmem; in mp_event()