summaryrefslogtreecommitdiff
path: root/libpagemap
AgeCommit message (Collapse)Author
2013-06-24libpagemap: add pm_process_usage_flagsColin Cross
Add pm_process_usage flags to get memory usage by a process, only counting pages with specified flags set. Change-Id: I900b673ddbb5ae92312773a8670dd59769617268
2013-06-24libpagemap: fix new kernel flag names to start with PM_PAGE_Colin Cross
Change-Id: I6b030d9d0356d63b3ddb853de304407bc70b38c4
2013-06-24libpagemap: count swapped pagesColin Cross
Add a new memusage field for swapped pages. Change-Id: I857143a5fdd294315dd89e834b1217a219f10479
2013-06-24libpagemap: add pm_map_usage_flagsColin Cross
Add pm_map_usage_flags, which is the same as pm_map_usage but only counts pages with the specified flags set. This can be used to only count "swapbacked" pages, which are pages that cannot be flushed back to disk without using swap. Change-Id: I6367555d9385502c797935849bb4221a8354e251
2013-06-24libpagemap: add page flags for new kernelsColin Cross
Change-Id: If4a4a2bbe9b1a68c5dce1151cf8b7c60cae1a3fa
2013-06-24libpagemap: add definition for mask of permission flagsColin Cross
Change-Id: Ibd0b26e4f5245592152d2c8ef00e7da1ad5f3fdf
2013-06-24libpagemap: fix vss calculationColin Cross
pm_map_usage was not incrementing vss for pages that were in the process's map but not occupying a physical page. Move the vss increment above the check for present mappings. Change-Id: I2706e6fbcbfe7d70f10950333a486d690bc84d6c
2013-06-24libpagemap: fix reusing previous name for mappings with no nameColin Cross
Mappings that are not from a file do not have a name. The sscanf will read all of the fields up to the name, and then leave name untouched. This causes the previous name to be reused. Reset name to an empty string before each call to sscanf. Change-Id: Ib146732983eb074d0d4773be094efa0b672f5ed2
2012-01-20Fix various issues in procrank.Selim Gurun
Fixed these problems: 1. Page swapped bit was not extracted correctly. 2. Pages were ignored when page present bit is not set. 3. Bit operations were not correct. 4. There was a compiler warning about unsigned/signed comparision. 5. Line limit was too short for the map file. This was causing procrank to generate a warning and remove the related process from results. Change-Id: Ifed3913a49b15f59010cfa842090a13228074df9
2011-07-13Handle EOF when reading /proc/<pid>/pagemapColin Cross
Instead of handling maps with the name "[vectors]" specially, silently ignore EOF when reading from /proc/<pid>/pagemap, which occurs any time a a mapping is outside of the userspace range. Change-Id: I674ade1eab6fd7732c6d9e120d0750cca5415b25
2011-07-12Ignore the vector page in /proc/<pid>/mapsColin Cross
In kernel 2.6.37, the vector page was added to /proc/<pid>/maps, but because it is located above TASK_SIZE (usually 0xbf000000), it is considered to be in the kernel's address space, not the process', so it doesn't show up in /proc/<pid>/pagemap. When the vector page is detected, using the name "[vectors]", remove it from the map. Change-Id: I5f0758bbe5d2b927056fa9fee684fea63dd0fa4b
2010-05-05For issue #2651381, allow library prelinking.android-sdk-tools_r6android-sdk-2.2_r2android-sdk-2.2_r1android-cts-2.2_r8android-cts-2.2_r7android-cts-2.2_r6android-cts-2.2_r5android-cts-2.2_r4android-cts-2.2_r3android-cts-2.2_r2android-cts-2.2_r1android-2.2_r1.3android-2.2_r1.2android-2.2_r1.1android-2.2_r1android-2.2.3_r2.1android-2.2.3_r2android-2.2.3_r1android-2.2.2_r1android-2.2.1_r2android-2.2.1_r1froyo-releasefroyoDan Bornstein
Change-Id: I1b3e13f0e16b51604852437b32b1d8309471abc8
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