OSDN Git Service
Colin Cross [Thu, 6 Feb 2014 07:33:44 +0000 (07:33 +0000)]
Merge "kexecload: fix LP64 warnings"
Colin Cross [Thu, 6 Feb 2014 02:57:04 +0000 (18:57 -0800)]
kexecload: fix LP64 warnings
Use uintptr_t for pointer arithmetic.
Change-Id: I69385fe67ce823f3b13d8dc73acf0a0ff5bb1e83
Colin Cross [Wed, 5 Feb 2014 22:59:44 +0000 (22:59 +0000)]
Merge "make_ext4fs: fix block allocation to be best-fit"
Colin Cross [Tue, 21 Jan 2014 08:04:04 +0000 (00:04 -0800)]
make_ext4fs: fix block allocation to be best-fit
The block allocation algorithm was failing to allocate parts of large
files out of partially filled block groups. Update the allocation
algorithm to be a simpler best fit loop - if the remaining length to
allocate is larger than any single contiguous region, allocate the
largest single contiguous region and continue allocating, otherwise
allocate the smallest contiguous that can hold the length.
Change-Id: Idcc60df91ed0a266d3128ea46e86408a581d3f40
Ian Rogers [Fri, 31 Jan 2014 16:38:37 +0000 (16:38 +0000)]
Merge "Remove bogus semicolons"
Colin Cross [Thu, 30 Jan 2014 04:00:05 +0000 (04:00 +0000)]
Merge changes Icaf79989,I185352ec,I5a72147f,Ied3dc6a0
* changes:
ext4_utils: fix build for 64 bit
ext4_utils: move superblock parsing to its own compilation unit
ext4_utils: move sparse file pointer out of fs_info
ext4_utils: refactor kernel headers
Colin Cross [Thu, 23 Jan 2014 21:19:27 +0000 (13:19 -0800)]
ext4_utils: fix build for 64 bit
Correct u64/s64 definitions
Use PRIu64 to print u64
Change-Id: Icaf7998946b0a2faa03495b404af8b94e4e3d047
Bernhard Rosenkränzer [Fri, 24 Jan 2014 21:55:43 +0000 (22:55 +0100)]
Remove bogus semicolons
Remove semicolons after function declarations.
They don't (currently) hurt, but they're invalid and might
break future compilers.
Change-Id: I82a2b414f2e465d40948c4a4f8f103023a7830de
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Colin Cross [Thu, 23 Jan 2014 21:13:02 +0000 (13:13 -0800)]
ext4_utils: move superblock parsing to its own compilation unit
Move ext4_parse_sb to its own compilation unit so it can be used
from fs_mgr without pulling in all of libext4_utils' dependencies
when compiling with ld.bfd.
Change-Id: I185352ecea0e0d577b8cdddfd519f2826d631277
Colin Cross [Thu, 23 Jan 2014 21:08:16 +0000 (13:08 -0800)]
ext4_utils: move sparse file pointer out of fs_info
Move the sparse file pointer out of the fs_info struct in
preparation for exporting fs_info without sparse file support.
Change-Id: I5a72147fe4fb24296e615cb82dbba91c6dc6f7f0
Colin Cross [Thu, 23 Jan 2014 20:53:30 +0000 (12:53 -0800)]
ext4_utils: refactor kernel headers
Move the kernel header includes into a single include file that
can deal with getting the kernel int types correct on all
platforms.
Change-Id: Ied3dc6a0f5cbb3ceb686aa3de72f16e10a36462a
Elliott Hughes [Thu, 12 Dec 2013 20:58:20 +0000 (20:58 +0000)]
Merge "procmem: Use size_t instead of int to remove a potential bug."
Elliott Hughes [Thu, 12 Dec 2013 20:53:50 +0000 (20:53 +0000)]
Merge "procrank: Use %zu for size_t and %d for pid_t"
Ashok Bhat [Thu, 10 Jan 2013 16:24:59 +0000 (16:24 +0000)]
procmem: Use size_t instead of int to remove a potential bug.
In procmem.c, num_maps and num_pages are declared as
int. Pointers (int*) to these variables are being
passed to functions pm_process_maps and pm_map_pagemap
respectively, both of which expect size_t * argument.
This will lead to problems in 64-bit systems where
size_t and int_t have different size.
To avoid the issue, num_maps and num_pages are declared
as size_t. In addition, loop counters i and j are now
declared as size_t to avoid comparison of signed int with
unsigned int.
Change-Id: I3fc51f9386c9b2d289d34808e19e3811ca4a3dae
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Ashok Bhat [Thu, 10 Jan 2013 15:52:55 +0000 (15:52 +0000)]
procrank: Use %zu for size_t and %d for pid_t
Change-Id: Ic339a05a3091ec6b33b68bc5e76082de3513e9c7
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Christopher Ferris [Wed, 4 Dec 2013 20:26:29 +0000 (20:26 +0000)]
Merge "Remove dead test."
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