History log of /system/extras/librank/librank.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
76617ddbd19525a8d82e7304a0e4b1c771438329 08-Dec-2015 Thierry Strudel <tstrudel@google.com> librank: fix pm_memusage_t init and layout

pm_memusage_t variables must be initialized to 0 or call initializer.

Bug: 26083907
Change-Id: I62882be13de9c546e73bcdc24ec43ed0d5251db1
/system/extras/librank/librank.c
b03afb421def033e12ad1de4e0cb146e239fa301 22-Apr-2015 daegeun.song <daegeun.song@lge.com> fix possible buffer overrun in librank

Use snprintf instead of sprintf and fclose() before return.

Change-Id: I2c367b2e7b943f4ed10551c18ecc971e6b830c66
Signed-off-by: Daegeun Song <daegeun.song@lge.com>
/system/extras/librank/librank.c
1154fe3bd09d22a39b657726e019d8644069ea94 17-Mar-2014 Mark Salyzyn <salyzyn@google.com> librank: 64-bit compile issues

- size_t format and comparisons

Change-Id: I00ad92ecf2566c7aa02b145e1b8679164b2c9f8a
/system/extras/librank/librank.c
479747be63f3c8c33220d3c2690cac6b674746ea 22-Jun-2013 Colin Cross <ccross@android.com> librank: add flag to show only KSM pages

Passing -k will cause librank to only show KSM pages. The RSS
column will approximate the memory used before KSM, and PSS will
show the memory used after KSM.

Change-Id: I62310b2cda97316b835cf7ebe51b5155872c37dc
/system/extras/librank/librank.c
d2b8656ce47ee08aba7cb95499deeb29254eb655 21-Jun-2013 Colin Cross <ccross@android.com> librank: show swapped pages per library

Add a column showing swapped pages per library, but only show it
if swapped pages exist in at least one library.

Change-Id: I8f5a55dee7ed8d1f02ed7c947f6a22f7a5771eb8
/system/extras/librank/librank.c
bd86b3b10f8c57788177b5132e7078236683f185 23-May-2013 Colin Cross <ccross@android.com> librank: add command line argument for cached or non-cached pages

Add -c and -C command line arguments to only count pages that are
cached (backed by storage) or non-cached (backed by ram or swap)
respectively. Non-cached pages include all anonymous pages, as
well as file backed pages that are mapped private and then modified.

Change-Id: I95025d52f1c876b9c41fcbddaef5e95e32ebf307
/system/extras/librank/librank.c
122c7191dbac60e0a79c24551c142c98597354cd 23-May-2013 Colin Cross <ccross@android.com> librank: add command line argument to show all mappings

Add -a command line argument to show all mappings, including
anonymous, stack, and heap mappings.

Change-Id: I7d80e2b4f5d880d434f57e1e7a37678917cd7407
/system/extras/librank/librank.c
72f75f0b12ca23cf91ecfcb945ee42a0e1da9fd4 23-May-2013 Colin Cross <ccross@android.com> librank: add permissions command line argument

Add a command line argument to only list pages with the given
permissions.

Change-Id: I884eedea607b250ac721e7fdac555992c435441f
/system/extras/librank/librank.c
eff57afe53f2cbdf48f988b692036a7c470c41fa 22-May-2013 Colin Cross <ccross@android.com> librank: convert argument parsing to getopt_long

Change-Id: Ia145018d9096a550febe465c9f5b5f00d36c444d
/system/extras/librank/librank.c
80cb15504324667c9934ff350afff48881613393 11-May-2012 JP Abgrall <jpa@google.com> Ignore SIGPIPE is some of the tools used via dumpstate

adb bugreport > b & sleep 5; kill $?
will show that a bunch of tools will SIGPIPE when trying to output data
which is normal.
We don't have a way on linux (bsd yes), to set NOSIGPIPE on the file desc
passed down via fork/exec.

Bug: 6447319
Change-Id: I1634a00a155fd8a3fd827aa4a77e94518534336c
/system/extras/librank/librank.c
e16cb84e2324f05334d18dcf5956f20f44262b62 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/extras/librank/librank.c
19ddb4b1680760e2d6863c3003976882ebd9d0fa 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/extras/librank/librank.c
7341494707810f709855ea85ce03a8ec3ac8dbaf 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/extras/librank/librank.c