OSDN Git Service
Christopher Ferris [Wed, 4 Dec 2013 20:00:51 +0000 (12:00 -0800)]
Remove dead test.
All of the functionality of these tests has moved in to bionic/tests.
Bug:
9797008
Change-Id: I45f395cafb8dc83fbfc8179b004da920e4a34c87
Elliott Hughes [Mon, 25 Nov 2013 21:45:07 +0000 (21:45 +0000)]
Merge "kexec.h is a uapi header."
Elliott Hughes [Mon, 25 Nov 2013 19:44:19 +0000 (11:44 -0800)]
kexec.h is a uapi header.
Uapi is not a subdirectory of the old headers; it's the new alternative.
Look for it in the right place. (Required by a recent external/kernel-headers
fix.)
Change-Id: I3ae468d3eb79b355dc1bf4127536c6e0f397555a
Elliott Hughes [Sat, 23 Nov 2013 01:22:08 +0000 (17:22 -0800)]
am
49e5bca2: Merge "Remove fatblock and libublock."
* commit '
49e5bca23f9759b9d75366a1f611249d6398a5e7':
Remove fatblock and libublock.
Elliott Hughes [Sat, 23 Nov 2013 00:38:02 +0000 (00:38 +0000)]
Merge "Remove fatblock and libublock."
Elliott Hughes [Sat, 23 Nov 2013 00:19:56 +0000 (16:19 -0800)]
Remove fatblock and libublock.
The kernel support for these no longer exists.
Change-Id: I33a613e0185f03486a92b569c7d277e443fd1d48
Elliott Hughes [Thu, 19 Sep 2013 21:30:58 +0000 (14:30 -0700)]
am
67a05c0d: Merge "use BIONIC implementation of mmap64"
* commit '
67a05c0d165d779126a5fa8831cd95a0bf2fd1f2':
use BIONIC implementation of mmap64
Elliott Hughes [Thu, 19 Sep 2013 21:22:48 +0000 (21:22 +0000)]
Merge "use BIONIC implementation of mmap64"
Andrew Boie [Wed, 19 Dec 2012 16:39:49 +0000 (08:39 -0800)]
use BIONIC implementation of mmap64
Change-Id: Idb0c3d3bb98f22ea7d78043b786e931613377b02
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Colin Cross [Fri, 30 Aug 2013 21:20:42 +0000 (14:20 -0700)]
am
1b72e0d0: Merge "libpagemap: fix memory leak in pm_process_destroy()"
* commit '
1b72e0d0fa93e828facb3f4f2e84facff87d81fb':
libpagemap: fix memory leak in pm_process_destroy()
Colin Cross [Fri, 30 Aug 2013 21:15:20 +0000 (21:15 +0000)]
Merge "libpagemap: fix memory leak in pm_process_destroy()"
Carton He [Wed, 28 Aug 2013 03:19:34 +0000 (11:19 +0800)]
libpagemap: fix memory leak in pm_process_destroy()
procrank/librank not impacted because they end quickly. But other
programs that use libpagemap and last for long time can easily see this
memory leak.
Change-Id: I8c9e9444555bef9145c9d89850987a29f15a9b3b
Signed-off-by: Carton He <carton.he@marvell.com>
Ken Sumrall [Fri, 16 Aug 2013 19:26:05 +0000 (12:26 -0700)]
am
7f026d09: Merge "Avoid underflow on an unsigned int when computering bg overrun"
* commit '
7f026d09fa05a3aa93cea6f6e25df1b5c0f800a0':
Avoid underflow on an unsigned int when computering bg overrun
Ken Sumrall [Fri, 16 Aug 2013 02:31:40 +0000 (02:31 +0000)]
Merge "Avoid underflow on an unsigned int when computering bg overrun"
Ken Sumrall [Fri, 16 Aug 2013 02:06:29 +0000 (19:06 -0700)]
Avoid underflow on an unsigned int when computering bg overrun
A computation for when a block group overruns the end of an image
was consistently storing a negative number in an unsigned var,
and then checking for >0, which is always true for negative numbers.
So first check if the number will be positive before computing it.
Change-Id: Ic8cff8f9ab9f4ea8c5a4dc42143c2430fa87ba12
Christopher Ferris [Wed, 31 Jul 2013 22:23:25 +0000 (15:23 -0700)]
am
5b1efce4: Merge "Add cold versions of benchmarks."
* commit '
5b1efce4aeea83c7b18dfed5d3366d6b84874c23':
Add cold versions of benchmarks.
Christopher Ferris [Wed, 31 Jul 2013 22:14:07 +0000 (22:14 +0000)]
Merge "Add cold versions of benchmarks."
Christopher Ferris [Wed, 24 Jul 2013 22:34:13 +0000 (15:34 -0700)]
Add cold versions of benchmarks.
- Created macros for one and two buffer benchmarks to simplify
addition of new benchmarks.
- Created cold versions of all benchmarks that work on buffer benchmarks.
This means that the benchmark is given buffers that are not in the cache.
- Verified the cold versions are working as intended by
changing it so that the same buffer is written in each loop
instead of the strided buffer. Using this method, the cold and
normal benchmark run at the same speed.
Merge from internal master.
(cherry-picked from
991bcd464d67c3cff76477140331619ff138aafc)
Change-Id: I4b1b55510d90cc9a941fd68244971cb08cfba553
Christopher Ferris [Wed, 24 Jul 2013 22:34:13 +0000 (15:34 -0700)]
Add cold versions of benchmarks.
- Created macros for one and two buffer benchmarks to simplify
addition of new benchmarks.
- Created cold versions of all benchmarks that work on buffer benchmarks.
This means that the benchmark is given buffers that are not in the cache.
- Verified the cold versions are working as intended by
changing it so that the same buffer is written in each loop
instead of the strided buffer. Using this method, the cold and
normal benchmark run at the same speed.
Change-Id: Ie5d1b015dd70d3935cfa2830a82955429a2f5b3c
Rom Lemarchand [Fri, 26 Jul 2013 16:33:20 +0000 (16:33 +0000)]
Merge "ksmutils: display page count"
Colin Cross [Thu, 25 Jul 2013 23:34:46 +0000 (23:34 +0000)]
Merge "Kexec tools for replacing working kernel during crash"
Rom Lemarchand [Thu, 25 Jul 2013 22:47:16 +0000 (15:47 -0700)]
ksmutils: display page count
Change-Id: I90ca712463681c1c59533bd3d4d45509647ca3ff
Signed-off-by: Rom Lemarchand <romlem@google.com>
jp abgrall [Thu, 25 Jul 2013 22:07:34 +0000 (22:07 +0000)]
Merge "Missing include in wipe.h"
Szymon Starzycki [Mon, 15 Jul 2013 22:17:07 +0000 (15:17 -0700)]
Kexec tools for replacing working kernel during crash
Change-Id: I3d2bfacbe2f0e338712babf81efcecb79e9758ad
Szymon Starzycki [Wed, 24 Jul 2013 19:34:50 +0000 (12:34 -0700)]
Changed visibility of get_block_device_size
Change-Id: I5d27f5f50275017134a48eed8d89e452353777f1
Szymon Starzycki [Wed, 24 Jul 2013 00:45:49 +0000 (17:45 -0700)]
Missing include in wipe.h
Change-Id: I6c29d6e90c5bc17b3070595c89fad9ca5c3f75f9
Christopher Ferris [Tue, 16 Jul 2013 23:41:43 +0000 (16:41 -0700)]
am
dd9c23b6: am
23062f99: Merge "Add a static version of the test."
* commit '
dd9c23b6589351ed981e19c636761dc92ad2769c':
Add a static version of the test.
Christopher Ferris [Tue, 16 Jul 2013 23:31:51 +0000 (16:31 -0700)]
am
23062f99: Merge "Add a static version of the test."
* commit '
23062f994c2181d5de4f6f5b764c83d613465bba':
Add a static version of the test.
Christopher Ferris [Tue, 16 Jul 2013 23:30:05 +0000 (23:30 +0000)]
Merge "Add a static version of the test."
Christopher Ferris [Mon, 15 Jul 2013 19:50:30 +0000 (12:50 -0700)]
Add a static version of the test.
Merge from internal master.
(cherry-picked from
4052fe181a499f52729b7178f11ae91212823682)
Change-Id: I90d1320e8d8032d82909a2a7435fda9ee3ec1fdb
Christopher Ferris [Mon, 15 Jul 2013 22:25:54 +0000 (15:25 -0700)]
am
1f5c5c76: am
f23b47e9: am
d8f4bfc7: (-s ours) Merge "Add tests for strcpy and strcat."
* commit '
1f5c5c76aff9d7bb1723f1582b975b190dccc2f6':
Add tests for strcpy and strcat.
Christopher Ferris [Mon, 15 Jul 2013 22:23:03 +0000 (15:23 -0700)]
am
f23b47e9: am
d8f4bfc7: (-s ours) Merge "Add tests for strcpy and strcat."
* commit '
f23b47e914b94faaa562306a37109125b7b90901':
Add tests for strcpy and strcat.
Christopher Ferris [Mon, 15 Jul 2013 22:20:34 +0000 (15:20 -0700)]
am
d8f4bfc7: (-s ours) Merge "Add tests for strcpy and strcat."
* commit '
d8f4bfc728c95bcd4df4f0ea35d43246d2d26af0':
Add tests for strcpy and strcat.
Christopher Ferris [Mon, 15 Jul 2013 21:59:24 +0000 (21:59 +0000)]
Merge "Add a static version of the test."
Christopher Ferris [Mon, 15 Jul 2013 19:50:30 +0000 (12:50 -0700)]
Add a static version of the test.
Change-Id: I222d441fb1f6946b5f2cad3c75354a8632603fb9
Christopher Ferris [Mon, 15 Jul 2013 21:47:29 +0000 (21:47 +0000)]
Merge "Add tests for strcpy and strcat."
Christopher Ferris [Thu, 11 Jul 2013 22:14:42 +0000 (15:14 -0700)]
Add tests for strcpy and strcat.
Also convert all of the different string length defines to a single
string length macro.
Move the string alignment loop to the top and make all alignment structures
const.
Merge from internal master.
(cherry-picked from
1c33ae7ce88efc23b627f5fdb74afc461fc8e4f5)
Change-Id: I973795cfff55975574dd1b17cc9b25d9f6932873
Christopher Ferris [Mon, 15 Jul 2013 21:42:05 +0000 (14:42 -0700)]
am
eb7e166f: am
1868728e: am
ecd2c8f2: Merge "Adding strlen, strcat, strcpy benchmarks."
* commit '
eb7e166fcc774250523d0a6444080c8ee60ead45':
Adding strlen, strcat, strcpy benchmarks.
Christopher Ferris [Mon, 15 Jul 2013 21:39:43 +0000 (14:39 -0700)]
am
1868728e: am
ecd2c8f2: Merge "Adding strlen, strcat, strcpy benchmarks."
* commit '
1868728e5968e3106fe6ebb0e173b9f0fc9235a9':
Adding strlen, strcat, strcpy benchmarks.
Christopher Ferris [Mon, 15 Jul 2013 21:38:49 +0000 (14:38 -0700)]
am
ecd2c8f2: Merge "Adding strlen, strcat, strcpy benchmarks."
* commit '
ecd2c8f2fdebcfcbbfda1727c09d221d76de1ce7':
Adding strlen, strcat, strcpy benchmarks.
Christopher Ferris [Mon, 15 Jul 2013 21:36:59 +0000 (21:36 +0000)]
Merge "Adding strlen, strcat, strcpy benchmarks."
Christopher Ferris [Mon, 15 Jul 2013 20:16:08 +0000 (13:16 -0700)]
am
29bbea50: (-s ours) am
38273ce3: (-s ours) am
ac2518d1: (-s ours) Merge "Add strlen tests. DO NOT MERGE"
* commit '
29bbea5002fabf9631310bc61b425b3356cd9e82':
Add strlen tests. DO NOT MERGE
Christopher Ferris [Mon, 15 Jul 2013 20:13:27 +0000 (13:13 -0700)]
am
38273ce3: (-s ours) am
ac2518d1: (-s ours) Merge "Add strlen tests. DO NOT MERGE"
* commit '
38273ce3a20537c366dadac6047c77914c498364':
Add strlen tests. DO NOT MERGE
Christopher Ferris [Mon, 15 Jul 2013 20:11:16 +0000 (13:11 -0700)]
am
ac2518d1: (-s ours) Merge "Add strlen tests. DO NOT MERGE"
* commit '
ac2518d13b67d682a59bb070f9971549dcca7249':
Add strlen tests. DO NOT MERGE
Christopher Ferris [Thu, 11 Jul 2013 01:55:57 +0000 (18:55 -0700)]
Adding strlen, strcat, strcpy benchmarks.
Merge from internal master.
(cherry-picked from
7401bc1263d9b9d9f7605a3c5bdaaf3171c7e9c0)
Change-Id: I7139a96022540c3604dd38f7f7836c8823e540dc
Christopher Ferris [Mon, 15 Jul 2013 20:08:13 +0000 (20:08 +0000)]
Merge "Add strlen tests. DO NOT MERGE"
Christopher Ferris [Thu, 11 Jul 2013 00:07:51 +0000 (17:07 -0700)]
Add strlen tests. DO NOT MERGE
Merge from internal master.
(cherry-picked from from commit
a63c049f23c49b6345bf2c845a415109c5471ebe)
Change-Id: I443a866a4b146a8043dd84cf6b7c090ecd529519
Christopher Ferris [Fri, 12 Jul 2013 16:24:16 +0000 (16:24 +0000)]
Merge "Add tests for strcpy and strcat."
Christopher Ferris [Fri, 12 Jul 2013 16:24:13 +0000 (16:24 +0000)]
Merge "Adding strlen, strcat, strcpy benchmarks."
Christopher Ferris [Thu, 11 Jul 2013 22:14:42 +0000 (15:14 -0700)]
Add tests for strcpy and strcat.
Also convert all of the different string length defines to a single
string length macro.
Move the string alignment loop to the top and make all alignment structures
const.
Change-Id: Idc7121315406a8ba872522ef90024b66d67c6058
Christopher Ferris [Thu, 11 Jul 2013 01:55:57 +0000 (18:55 -0700)]
Adding strlen, strcat, strcpy benchmarks.
Change-Id: I31542ecdec95c2d1d3fb9b2795581ad4d5e13c5c
Christopher Ferris [Thu, 11 Jul 2013 01:48:24 +0000 (01:48 +0000)]
Merge "Add strlen tests."
Christopher Ferris [Thu, 11 Jul 2013 00:07:51 +0000 (17:07 -0700)]
Add strlen tests.
Change-Id: I05079dd20765276e9f8f492fc1a0531742d5f1f2
Rom Lemarchand [Wed, 10 Jul 2013 22:43:42 +0000 (22:43 +0000)]
Merge "ksmutils: ksminfo: Add option to display all KSM pages"
Ken Sumrall [Wed, 10 Jul 2013 05:14:56 +0000 (05:14 +0000)]
Merge "Add the -u option to support running on USER builds"
Ken Sumrall [Wed, 10 Jul 2013 05:13:44 +0000 (05:13 +0000)]
Merge "Tools to analyze mmc tracepoint data from the kernel"
Ken Sumrall [Wed, 10 Jul 2013 05:05:42 +0000 (22:05 -0700)]
Add the -u option to support running on USER builds
Because USER builds do not have root access, the new -u
option modifies the script to create a 512 Mbyte file
in /data/local/tmp/testfile, and use that for testing.
Read tests are disabled (because the inability to drop
the caches makes them pointless), and the write tests
now go through the filesystem layer, so it is not fair
to compare these results to a non-userbuild run. However,
this test can help with before/after tests to see if
a change has improved the I/O performance of the system.
Change-Id: Id724f12e4564af7ced858de1df7c2d45b0a440b6
Rom Lemarchand [Tue, 9 Jul 2013 19:07:02 +0000 (12:07 -0700)]
ksmutils: ksminfo: Add option to display all KSM pages
Change-Id: I557983ded74a355df6fb9e14a01de25628d1eefb
Rom Lemarchand [Tue, 9 Jul 2013 17:51:03 +0000 (10:51 -0700)]
ksmutils: display addresses as ranges when applicable
Display addresses as ranges instead of individual addresses when applicable
Change-Id: I5cb2f162a86c45e60874f2cde1d649b5c7cc86b5
Signed-off-by: Rom Lemarchand <romlem@google.com>
Rom Lemarchand [Tue, 9 Jul 2013 04:50:24 +0000 (21:50 -0700)]
ksmutils: Add sort option to ksminfo
Add an option to sort pages by usage count in ksminfo.
Change-Id: I115ed7d8f8e99b8eed636e88605421c1b20b8d77
Signed-off-by: Rom Lemarchand <romlem@google.com>
Rom Lemarchand [Mon, 8 Jul 2013 22:22:10 +0000 (15:22 -0700)]
ksmutils: Add ksminfo utility
Add the ksminfo utility that prints information about the KSM pages
of a process
Change-Id: Ib6f5291cc28d57ef05adc861e71860aa83b56465
Ken Sumrall [Fri, 17 May 2013 23:29:58 +0000 (16:29 -0700)]
Tools to analyze mmc tracepoint data from the kernel
mmc_trace_reduce will convert a log of mmc trace events from
the kernel into a format usable by some perf tools.
Change-Id: Ia468c803b928bce54bf913846d4ed5422f818046
Christopher Ferris [Wed, 3 Jul 2013 01:18:20 +0000 (18:18 -0700)]
am
13285bd6: am
a8f6f321: Merge "Add vldr vstr type benchmarking."
* commit '
13285bd6a37469c4d335f8368762b4de0b47050b':
Add vldr vstr type benchmarking.
Christopher Ferris [Wed, 3 Jul 2013 01:14:16 +0000 (18:14 -0700)]
am
a8f6f321: Merge "Add vldr vstr type benchmarking."
* commit '
a8f6f3218aabdd5a691679d06034dbb9a7812854':
Add vldr vstr type benchmarking.
Christopher Ferris [Wed, 3 Jul 2013 01:12:23 +0000 (01:12 +0000)]
Merge "Add vldr vstr type benchmarking."
Christopher Ferris [Tue, 2 Jul 2013 23:38:45 +0000 (16:38 -0700)]
Add vldr vstr type benchmarking.
Merge from internal master.
(cherry-picked from commit
65d2c7894a93f66ea41d55f843285e7e7bdbf488)
Change-Id: I854b5f310fa44efcaf93af14b84ffe5673cc46c0
Christopher Ferris [Tue, 2 Jul 2013 23:38:45 +0000 (16:38 -0700)]
Add vldr vstr type benchmarking.
Change-Id: Ib8d9ac401feacbfd2e0862ad0e5fd2c13a233c58
Christopher Ferris [Wed, 26 Jun 2013 23:51:43 +0000 (16:51 -0700)]
am
3d98cbcb: am
faec68b0: Merge "Add a benchmark of strcpy."
* commit '
3d98cbcb610ac4192542e46c22a6a2ffe7e31ac4':
Add a benchmark of strcpy.
Christopher Ferris [Wed, 26 Jun 2013 23:44:52 +0000 (16:44 -0700)]
am
faec68b0: Merge "Add a benchmark of strcpy."
* commit '
faec68b05e13ce31566feabd01fc23960a93aff1':
Add a benchmark of strcpy.
Christopher Ferris [Wed, 26 Jun 2013 23:42:26 +0000 (23:42 +0000)]
Merge "Add a benchmark of strcpy."
Christopher Ferris [Wed, 26 Jun 2013 20:42:18 +0000 (13:42 -0700)]
Add a benchmark of strcpy.
List of all changes:
- Add a strcpy benchmark.
- Create a macro that is used to create all of the code for the main
loop of the benchmark.
- Fix the strcmp benchmark to use two buffers. The single buffer was
an experiment that should not have been committed. It also crashes
when a large alignment is used because it hard-coded an extra 2048
allocation regardless of the alignment chosen.
- Modify the libc benchmarks to take the function to bench as a
parameter. This will allow us to benchmark new potential libc
optimizations by adding a single line to the function table list.
Merge from internal master.
(cherry-picked from commit
014cf9dc226a775e27b2e6ace2461c510d9c6c19)
Change-Id: I8848e309fa1b323fe98f4525eb0f27a889fd0a7f
Christopher Ferris [Wed, 26 Jun 2013 22:09:57 +0000 (22:09 +0000)]
Merge "Add a benchmark of strcpy."
Christopher Ferris [Wed, 26 Jun 2013 20:42:18 +0000 (13:42 -0700)]
Add a benchmark of strcpy.
List of all changes:
- Add a strcpy benchmark.
- Create a macro that is used to create all of the code for the main
loop of the benchmark.
- Fix the strcmp benchmark to use two buffers. The single buffer was
an experiment that should not have been committed. It also crashes
when a large alignment is used because it hard-coded an extra 2048
allocation regardless of the alignment chosen.
- Modify the libc benchmarks to take the function to bench as a
parameter. This will allow us to benchmark new potential libc
optimizations by adding a single line to the function table list.
Change-Id: Id7129667669318acbd001c1bfa3db82764a39029
Colin Cross [Tue, 25 Jun 2013 23:02:11 +0000 (16:02 -0700)]
am
057f15a2: am
111659ee: Merge changes I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5,I95025d52,I6367555d,I7d80e2b4,If4a4a2bb,I884eedea,Ibd0b26e4,Ia145018d,I2706e6fb,Ib1467329
* commit '
057f15a2f24057493af335f0a05e362aceb8db6d':
procrank: add support for only showing cached, noncached, or KSM pages
libpagemap: add pm_process_usage_flags
librank: add flag to show only KSM pages
libpagemap: fix new kernel flag names to start with PM_PAGE_
librank: show swapped pages per library
procrank: show swapped pages per process
libpagemap: count swapped pages
librank: add command line argument for cached or non-cached pages
libpagemap: add pm_map_usage_flags
librank: add command line argument to show all mappings
libpagemap: add page flags for new kernels
librank: add permissions command line argument
libpagemap: add definition for mask of permission flags
librank: convert argument parsing to getopt_long
libpagemap: fix vss calculation
libpagemap: fix reusing previous name for mappings with no name
Colin Cross [Mon, 24 Jun 2013 22:58:37 +0000 (15:58 -0700)]
am
111659ee: Merge changes I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5,I95025d52,I6367555d,I7d80e2b4,If4a4a2bb,I884eedea,Ibd0b26e4,Ia145018d,I2706e6fb,Ib1467329
* commit '
111659ee89ecb6fc0a70c92cca81c0ee7de6c656':
procrank: add support for only showing cached, noncached, or KSM pages
libpagemap: add pm_process_usage_flags
librank: add flag to show only KSM pages
libpagemap: fix new kernel flag names to start with PM_PAGE_
librank: show swapped pages per library
procrank: show swapped pages per process
libpagemap: count swapped pages
librank: add command line argument for cached or non-cached pages
libpagemap: add pm_map_usage_flags
librank: add command line argument to show all mappings
libpagemap: add page flags for new kernels
librank: add permissions command line argument
libpagemap: add definition for mask of permission flags
librank: convert argument parsing to getopt_long
libpagemap: fix vss calculation
libpagemap: fix reusing previous name for mappings with no name
Colin Cross [Mon, 24 Jun 2013 22:57:08 +0000 (22:57 +0000)]
Merge changes I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5,I95025d52,I6367555d,I7d80e2b4,If4a4a2bb,I884eedea,Ibd0b26e4,Ia145018d,I2706e6fb,Ib1467329
* changes:
procrank: add support for only showing cached, noncached, or KSM pages
libpagemap: add pm_process_usage_flags
librank: add flag to show only KSM pages
libpagemap: fix new kernel flag names to start with PM_PAGE_
librank: show swapped pages per library
procrank: show swapped pages per process
libpagemap: count swapped pages
librank: add command line argument for cached or non-cached pages
libpagemap: add pm_map_usage_flags
librank: add command line argument to show all mappings
libpagemap: add page flags for new kernels
librank: add permissions command line argument
libpagemap: add definition for mask of permission flags
librank: convert argument parsing to getopt_long
libpagemap: fix vss calculation
libpagemap: fix reusing previous name for mappings with no name
Colin Cross [Sat, 22 Jun 2013 00:02:05 +0000 (17:02 -0700)]
procrank: add support for only showing cached, noncached, or KSM pages
Add the -c, -C, and -k arguments to only show pages that are
cached (backed by storage), non-cached (backed by ram or swap),
or have been collapsed by KSM respectively.
Change-Id: I707570ad406106b0aca230d18f9945901d193aca
Colin Cross [Sat, 22 Jun 2013 00:01:06 +0000 (17:01 -0700)]
libpagemap: add pm_process_usage_flags
Add pm_process_usage flags to get memory usage by a process, only
counting pages with specified flags set.
Change-Id: I900b673ddbb5ae92312773a8670dd59769617268
Colin Cross [Fri, 21 Jun 2013 23:53:03 +0000 (16:53 -0700)]
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
Colin Cross [Fri, 21 Jun 2013 23:52:08 +0000 (16:52 -0700)]
libpagemap: fix new kernel flag names to start with PM_PAGE_
Change-Id: I6b030d9d0356d63b3ddb853de304407bc70b38c4
Colin Cross [Fri, 21 Jun 2013 19:55:56 +0000 (12:55 -0700)]
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
Colin Cross [Fri, 21 Jun 2013 19:54:13 +0000 (12:54 -0700)]
procrank: show swapped pages per process
Add a column showing swapped pages per process, but only show it
if swapped pages exist in at least one process.
Change-Id: I51a12fb8999c2a73418277fd575e7109478667d5
Colin Cross [Fri, 21 Jun 2013 19:53:51 +0000 (12:53 -0700)]
libpagemap: count swapped pages
Add a new memusage field for swapped pages.
Change-Id: I857143a5fdd294315dd89e834b1217a219f10479
Colin Cross [Thu, 23 May 2013 19:57:36 +0000 (12:57 -0700)]
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
Colin Cross [Thu, 23 May 2013 19:53:14 +0000 (12:53 -0700)]
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
Colin Cross [Thu, 23 May 2013 19:38:54 +0000 (12:38 -0700)]
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
Colin Cross [Wed, 22 May 2013 02:48:18 +0000 (19:48 -0700)]
libpagemap: add page flags for new kernels
Change-Id: If4a4a2bbe9b1a68c5dce1151cf8b7c60cae1a3fa
Colin Cross [Wed, 22 May 2013 22:03:52 +0000 (15:03 -0700)]
librank: add permissions command line argument
Add a command line argument to only list pages with the given
permissions.
Change-Id: I884eedea607b250ac721e7fdac555992c435441f
Colin Cross [Wed, 22 May 2013 22:02:09 +0000 (15:02 -0700)]
libpagemap: add definition for mask of permission flags
Change-Id: Ibd0b26e4f5245592152d2c8ef00e7da1ad5f3fdf
Colin Cross [Wed, 22 May 2013 21:49:19 +0000 (14:49 -0700)]
librank: convert argument parsing to getopt_long
Change-Id: Ia145018d9096a550febe465c9f5b5f00d36c444d
Colin Cross [Wed, 22 May 2013 23:33:03 +0000 (16:33 -0700)]
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
Colin Cross [Thu, 16 May 2013 01:31:05 +0000 (18:31 -0700)]
libpagemap: fix reusing previous name for mappings with no name
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
Colin Cross [Sat, 22 Jun 2013 00:02:05 +0000 (17:02 -0700)]
procrank: add support for only showing cached, noncached, or KSM pages
Add the -c, -C, and -k arguments to only show pages that are
cached (backed by storage), non-cached (backed by ram or swap),
or have been collapsed by KSM respectively.
Change-Id: I707570ad406106b0aca230d18f9945901d193aca
Colin Cross [Sat, 22 Jun 2013 00:01:06 +0000 (17:01 -0700)]
libpagemap: add pm_process_usage_flags
Add pm_process_usage flags to get memory usage by a process, only
counting pages with specified flags set.
Change-Id: I900b673ddbb5ae92312773a8670dd59769617268
Colin Cross [Fri, 21 Jun 2013 23:53:03 +0000 (16:53 -0700)]
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
Colin Cross [Fri, 21 Jun 2013 23:52:08 +0000 (16:52 -0700)]
libpagemap: fix new kernel flag names to start with PM_PAGE_
Change-Id: I6b030d9d0356d63b3ddb853de304407bc70b38c4
Colin Cross [Fri, 21 Jun 2013 19:55:56 +0000 (12:55 -0700)]
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
Colin Cross [Fri, 21 Jun 2013 19:54:13 +0000 (12:54 -0700)]
procrank: show swapped pages per process
Add a column showing swapped pages per process, but only show it
if swapped pages exist in at least one process.
Change-Id: I51a12fb8999c2a73418277fd575e7109478667d5
Colin Cross [Fri, 21 Jun 2013 19:53:51 +0000 (12:53 -0700)]
libpagemap: count swapped pages
Add a new memusage field for swapped pages.
Change-Id: I857143a5fdd294315dd89e834b1217a219f10479
Colin Cross [Thu, 23 May 2013 19:57:36 +0000 (12:57 -0700)]
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