OSDN Git Service

android-x86/system-extras.git
9 years agosu: disable the legacy su completely android-x86-4.4-r1 android-x86-4.4-r2
Chih-Wei Huang [Mon, 19 May 2014 16:38:35 +0000 (00:38 +0800)]
su: disable the legacy su completely

10 years agosu: disable the legacy su binary
Chih-Wei Huang [Wed, 21 Aug 2013 06:03:12 +0000 (14:03 +0800)]
su: disable the legacy su binary

Use the su binary from Superuser if SUPERUSER_EMBEDDED is defined.

10 years agomkuserimg.sh: set default size according to the $SRC_DIR size
Chih-Wei Huang [Thu, 30 May 2013 06:22:10 +0000 (14:22 +0800)]
mkuserimg.sh: set default size according to the $SRC_DIR size

Calculate the default size by $SRC_DIR size plus 10%.

10 years agoext4_utils: remove mmap64 definition
Chih-Wei Huang [Fri, 29 Mar 2013 04:21:31 +0000 (12:21 +0800)]
ext4_utils: remove mmap64 definition

Now bionic has defined mmap64.

Change-Id: If486d09bff38e2fa3320aefbeb4cf834f49f7610

10 years agoam 5b1efce4: Merge "Add cold versions of benchmarks."
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.

10 years agoMerge "Add cold versions of benchmarks."
Christopher Ferris [Wed, 31 Jul 2013 22:14:07 +0000 (22:14 +0000)]
Merge "Add cold versions of benchmarks."

10 years agoAdd 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

10 years agoAdd 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.

Change-Id: Ie5d1b015dd70d3935cfa2830a82955429a2f5b3c

10 years agoMerge "ksmutils: display page count"
Rom Lemarchand [Fri, 26 Jul 2013 16:33:20 +0000 (16:33 +0000)]
Merge "ksmutils: display page count"

10 years agoMerge "Kexec tools for replacing working kernel during crash"
Colin Cross [Thu, 25 Jul 2013 23:34:46 +0000 (23:34 +0000)]
Merge "Kexec tools for replacing working kernel during crash"

10 years agoksmutils: display page count
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>
10 years agoMerge "Missing include in wipe.h"
jp abgrall [Thu, 25 Jul 2013 22:07:34 +0000 (22:07 +0000)]
Merge "Missing include in wipe.h"

10 years agoKexec tools for replacing working kernel during crash
Szymon Starzycki [Mon, 15 Jul 2013 22:17:07 +0000 (15:17 -0700)]
Kexec tools for replacing working kernel during crash

Change-Id: I3d2bfacbe2f0e338712babf81efcecb79e9758ad

10 years agoChanged visibility of get_block_device_size
Szymon Starzycki [Wed, 24 Jul 2013 19:34:50 +0000 (12:34 -0700)]
Changed visibility of get_block_device_size

Change-Id: I5d27f5f50275017134a48eed8d89e452353777f1

10 years agoMissing include in wipe.h
Szymon Starzycki [Wed, 24 Jul 2013 00:45:49 +0000 (17:45 -0700)]
Missing include in wipe.h

Change-Id: I6c29d6e90c5bc17b3070595c89fad9ca5c3f75f9

10 years agoam dd9c23b6: am 23062f99: Merge "Add a static version of the test."
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.

10 years agoam 23062f99: Merge "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.

10 years agoMerge "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."

10 years agoAdd 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

10 years agoam 1f5c5c76: am f23b47e9: am d8f4bfc7: (-s ours) Merge "Add tests for strcpy and...
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.

10 years agoam f23b47e9: am d8f4bfc7: (-s ours) Merge "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.

10 years agoam d8f4bfc7: (-s ours) Merge "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.

10 years agoMerge "Add a static version of the test."
Christopher Ferris [Mon, 15 Jul 2013 21:59:24 +0000 (21:59 +0000)]
Merge "Add a static version of the test."

10 years agoAdd 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

10 years agoMerge "Add tests for strcpy and strcat."
Christopher Ferris [Mon, 15 Jul 2013 21:47:29 +0000 (21:47 +0000)]
Merge "Add tests for strcpy and strcat."

10 years agoAdd 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

10 years agoam eb7e166f: am 1868728e: am ecd2c8f2: Merge "Adding strlen, strcat, strcpy benchmarks."
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.

10 years agoam 1868728e: am ecd2c8f2: Merge "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.

10 years agoam ecd2c8f2: Merge "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.

10 years agoMerge "Adding strlen, strcat, strcpy benchmarks."
Christopher Ferris [Mon, 15 Jul 2013 21:36:59 +0000 (21:36 +0000)]
Merge "Adding strlen, strcat, strcpy benchmarks."

10 years agoam 29bbea50: (-s ours) am 38273ce3: (-s ours) am ac2518d1: (-s ours) Merge "Add strle...
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

10 years agoam 38273ce3: (-s ours) am ac2518d1: (-s ours) Merge "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

10 years agoam ac2518d1: (-s ours) Merge "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

10 years agoAdding strlen, strcat, strcpy benchmarks.
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

10 years agoMerge "Add strlen tests. DO NOT MERGE"
Christopher Ferris [Mon, 15 Jul 2013 20:08:13 +0000 (20:08 +0000)]
Merge "Add strlen tests. DO NOT MERGE"

10 years agoAdd 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

10 years agoMerge "Add tests for strcpy and strcat."
Christopher Ferris [Fri, 12 Jul 2013 16:24:16 +0000 (16:24 +0000)]
Merge "Add tests for strcpy and strcat."

10 years agoMerge "Adding strlen, strcat, strcpy benchmarks."
Christopher Ferris [Fri, 12 Jul 2013 16:24:13 +0000 (16:24 +0000)]
Merge "Adding strlen, strcat, strcpy benchmarks."

10 years agoAdd 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.

Change-Id: Idc7121315406a8ba872522ef90024b66d67c6058

10 years agoAdding strlen, strcat, strcpy benchmarks.
Christopher Ferris [Thu, 11 Jul 2013 01:55:57 +0000 (18:55 -0700)]
Adding strlen, strcat, strcpy benchmarks.

Change-Id: I31542ecdec95c2d1d3fb9b2795581ad4d5e13c5c

10 years agoMerge "Add strlen tests."
Christopher Ferris [Thu, 11 Jul 2013 01:48:24 +0000 (01:48 +0000)]
Merge "Add strlen tests."

10 years agoAdd strlen tests.
Christopher Ferris [Thu, 11 Jul 2013 00:07:51 +0000 (17:07 -0700)]
Add strlen tests.

Change-Id: I05079dd20765276e9f8f492fc1a0531742d5f1f2

10 years agoMerge "ksmutils: ksminfo: Add option to display all KSM pages"
Rom Lemarchand [Wed, 10 Jul 2013 22:43:42 +0000 (22:43 +0000)]
Merge "ksmutils: ksminfo: Add option to display all KSM pages"

10 years agoMerge "Add the -u option to support running on USER builds"
Ken Sumrall [Wed, 10 Jul 2013 05:14:56 +0000 (05:14 +0000)]
Merge "Add the -u option to support running on USER builds"

10 years agoMerge "Tools to analyze mmc tracepoint data from the kernel"
Ken Sumrall [Wed, 10 Jul 2013 05:13:44 +0000 (05:13 +0000)]
Merge "Tools to analyze mmc tracepoint data from the kernel"

10 years agoAdd the -u option to support running on USER builds
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

10 years agoksmutils: ksminfo: Add option to display all KSM pages
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

10 years agoksmutils: display addresses as ranges when applicable
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>
10 years agoksmutils: Add sort option to ksminfo
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>
10 years agoksmutils: Add ksminfo utility
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

10 years agoTools to analyze mmc tracepoint data from the kernel
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

10 years agoam 13285bd6: am a8f6f321: Merge "Add vldr vstr type benchmarking."
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.

10 years agoam a8f6f321: Merge "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.

10 years agoMerge "Add vldr vstr type benchmarking."
Christopher Ferris [Wed, 3 Jul 2013 01:12:23 +0000 (01:12 +0000)]
Merge "Add vldr vstr type benchmarking."

10 years agoAdd 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

10 years agoAdd vldr vstr type benchmarking.
Christopher Ferris [Tue, 2 Jul 2013 23:38:45 +0000 (16:38 -0700)]
Add vldr vstr type benchmarking.

Change-Id: Ib8d9ac401feacbfd2e0862ad0e5fd2c13a233c58

10 years agoam 3d98cbcb: am faec68b0: Merge "Add a benchmark of strcpy."
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.

10 years agoam faec68b0: Merge "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.

10 years agoMerge "Add a benchmark of strcpy."
Christopher Ferris [Wed, 26 Jun 2013 23:42:26 +0000 (23:42 +0000)]
Merge "Add a benchmark of strcpy."

10 years agoAdd 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

10 years agoMerge "Add a benchmark of strcpy."
Christopher Ferris [Wed, 26 Jun 2013 22:09:57 +0000 (22:09 +0000)]
Merge "Add a benchmark of strcpy."

10 years agoAdd 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

10 years agoam 057f15a2: am 111659ee: Merge changes I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a...
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

10 years agoam 111659ee: Merge changes I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb...
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

10 years agoMerge changes I707570ad,I900b673d,I62310b2c,I6b030d9d,I8f5a55de,I51a12fb8,I857143a5...
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

10 years agoprocrank: add support for only showing cached, noncached, or KSM pages
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

10 years agolibpagemap: add pm_process_usage_flags
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

10 years agolibrank: add flag to show only KSM pages
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

10 years agolibpagemap: fix new kernel flag names to start with PM_PAGE_
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

10 years agolibrank: show swapped pages per library
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

10 years agoprocrank: show swapped pages per process
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

10 years agolibpagemap: count swapped pages
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

10 years agolibrank: add command line argument for cached or non-cached pages
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

10 years agolibpagemap: add pm_map_usage_flags
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

10 years agolibrank: add command line argument to show all mappings
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

10 years agolibpagemap: add page flags for new kernels
Colin Cross [Wed, 22 May 2013 02:48:18 +0000 (19:48 -0700)]
libpagemap: add page flags for new kernels

Change-Id: If4a4a2bbe9b1a68c5dce1151cf8b7c60cae1a3fa

10 years agolibrank: add permissions command line argument
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

10 years agolibpagemap: add definition for mask of permission flags
Colin Cross [Wed, 22 May 2013 22:02:09 +0000 (15:02 -0700)]
libpagemap: add definition for mask of permission flags

Change-Id: Ibd0b26e4f5245592152d2c8ef00e7da1ad5f3fdf

10 years agolibrank: convert argument parsing to getopt_long
Colin Cross [Wed, 22 May 2013 21:49:19 +0000 (14:49 -0700)]
librank: convert argument parsing to getopt_long

Change-Id: Ia145018d9096a550febe465c9f5b5f00d36c444d

10 years agolibpagemap: fix vss calculation
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

10 years agolibpagemap: fix reusing previous name for mappings with no name
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

10 years agoprocrank: add support for only showing cached, noncached, or KSM pages
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

10 years agolibpagemap: add pm_process_usage_flags
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

10 years agolibrank: add flag to show only KSM pages
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

10 years agolibpagemap: fix new kernel flag names to start with PM_PAGE_
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

10 years agolibrank: show swapped pages per library
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

10 years agoprocrank: show swapped pages per process
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

10 years agolibpagemap: count swapped pages
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

10 years agolibrank: add command line argument for cached or non-cached pages
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

10 years agolibpagemap: add pm_map_usage_flags
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

10 years agolibrank: add command line argument to show all mappings
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

10 years agolibpagemap: add page flags for new kernels
Colin Cross [Wed, 22 May 2013 02:48:18 +0000 (19:48 -0700)]
libpagemap: add page flags for new kernels

Change-Id: If4a4a2bbe9b1a68c5dce1151cf8b7c60cae1a3fa

10 years agolibrank: add permissions command line argument
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

10 years agolibpagemap: add definition for mask of permission flags
Colin Cross [Wed, 22 May 2013 22:02:09 +0000 (15:02 -0700)]
libpagemap: add definition for mask of permission flags

Change-Id: Ibd0b26e4f5245592152d2c8ef00e7da1ad5f3fdf

10 years agolibrank: convert argument parsing to getopt_long
Colin Cross [Wed, 22 May 2013 21:49:19 +0000 (14:49 -0700)]
librank: convert argument parsing to getopt_long

Change-Id: Ia145018d9096a550febe465c9f5b5f00d36c444d

10 years agoMerge "libpagemap: fix vss calculation"
Colin Cross [Tue, 11 Jun 2013 00:44:26 +0000 (00:44 +0000)]
Merge "libpagemap: fix vss calculation"

10 years agolibpagemap: fix vss calculation
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

10 years agoAdd the memtrack utility.
Christopher Ferris [Tue, 21 May 2013 00:24:15 +0000 (17:24 -0700)]
Add the memtrack utility.

This utility attempts to track the PSS usage of all of the
processes in the system. It will keep track of the min/max/avg/last
PSS for every process it has ever seen and dump that information when
the program is terminated or when a USR1 or TSTP signal is sent to
the process.

Change-Id: Id9364d5121b70f80b8335c379a241bee2fbdb019

10 years agolibpagemap: fix reusing previous name for mappings with no name
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

10 years agoam a885c1bd: am 69294b5b: Merge "Add guards around neon code."
Elliott Hughes [Tue, 14 May 2013 22:04:50 +0000 (15:04 -0700)]
am a885c1bd: am 69294b5b: Merge "Add guards around neon code."

* commit 'a885c1bd06d0472822314e738815cbd2d3247988':
  Add guards around neon code.