summaryrefslogtreecommitdiff
path: root/procmem/procmem.c
AgeCommit message (Collapse)Author
2016-08-23Don't invent our own pagemap constants.Elliott Hughes
Use the uapi ones instead, so I don't have to think about whether ours are correct. Bug: http://b/31044648 Change-Id: Ibe4a078ad3223419301a5f585e8ed24dd7366ce2
2016-03-04Fix static analyzer warnings.Chih-Hung Hsieh
* Add missing free. * Remove unused local variable. BUG: 27120398 Change-Id: I84d32fcee5615a428bd1de6673a6f15036736998
2015-01-29Add missing includes.Elliott Hughes
Change-Id: Ie3acca064c1bcecb4e0305e61f01ba8cea4abe03
2013-12-12procmem: Use size_t instead of int to remove a potential bug.Ashok Bhat
In procmem.c, num_maps and num_pages are declared as int. Pointers (int*) to these variables are being passed to functions pm_process_maps and pm_map_pagemap respectively, both of which expect size_t * argument. This will lead to problems in 64-bit systems where size_t and int_t have different size. To avoid the issue, num_maps and num_pages are declared as size_t. In addition, loop counters i and j are now declared as size_t to avoid comparison of signed int with unsigned int. Change-Id: I3fc51f9386c9b2d289d34808e19e3811ca4a3dae Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
2013-04-01procmem: fix procmem crash issueHong-Mei Li
For the case pm_map_pagemap return error(e.g, maps[i]->start==maps[i]->end==0), the main loop continue without set mis[i] fields, and then mis[i]==0. So that the corresponding mi item is 0 for this case. Skip dumping this item to avoid crash. Change-Id: I7e1bea1abdccfd7594b9d904938b3462dc182a76 Signed-off-by: Hong-Mei Li <a21834@motorola.com>
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-10-21Initial Contributionandroid-1.0release-1.0cdma-importThe Android Open Source Project