History log of /system/extras/libpagemap/pm_map.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9eed624c760b9c70de9a8f75ff84c5f085d62fdc 24-Aug-2016 Elliott Hughes <enh@google.com> Don't invent our own pagemap constants.

Use the uapi ones instead, so I don't have to think about whether ours
are correct.

Bug: http://b/31044648
Change-Id: Ibe4a078ad3223419301a5f585e8ed24dd7366ce2
/system/extras/libpagemap/pm_map.c
08ea6e722b1f2d6359f54fe39c6bed82f524291c 21-Nov-2015 Thierry Strudel <tstrudel@google.com> procrank: add proportional swap accounting

Shared pages are reported in each of the sharing process swapped pages.
Compute a proportional swap usage to get a meaningful value of what each
process has in swap. Report also process unique pages swapped out.
In case ZRAM is used compute the compression ration and report the
actual RAM use of the swapped pages.

Bug: 25392275
Change-Id: I3a28c7812a09a02e1a604593615f5c6ad0340f9f
/system/extras/libpagemap/pm_map.c
aa5a7df9d83c39e41fd07c1281a9912544022448 18-Jun-2015 Yu Liu <e7664c@motorola.com> Swap column in procrank not reported with swap enabled

Bug: 25392275
Change-Id: I6d2a0b03abba555b3667f6ccf12896caeecf27aa
/system/extras/libpagemap/pm_map.c
745b964daeacf44350db14bc343d53e319e696b8 21-Jun-2013 Colin Cross <ccross@android.com> libpagemap: count swapped pages

Add a new memusage field for swapped pages.

Change-Id: I857143a5fdd294315dd89e834b1217a219f10479
/system/extras/libpagemap/pm_map.c
3a1897792d0b5cc972d879af297ee5cfd095be68 23-May-2013 Colin Cross <ccross@android.com> libpagemap: add pm_map_usage_flags

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
/system/extras/libpagemap/pm_map.c
ad0b50bf21b04d64d56213014565d6e92d1c562e 23-May-2013 Colin Cross <ccross@android.com> libpagemap: fix vss calculation

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
/system/extras/libpagemap/pm_map.c
76e6cb55fed01824e44306aa0485a3f8f122b228 21-Jan-2012 Selim Gurun <sgurun@google.com> Fix various issues in procrank.

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
/system/extras/libpagemap/pm_map.c
e16cb84e2324f05334d18dcf5956f20f44262b62 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/extras/libpagemap/pm_map.c
19ddb4b1680760e2d6863c3003976882ebd9d0fa 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/extras/libpagemap/pm_map.c
7341494707810f709855ea85ce03a8ec3ac8dbaf 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/extras/libpagemap/pm_map.c