OSDN Git Service

android-x86/system-extras.git
8 years agoMerge "bootctl: Fix the error checking for strtol result."
Tao Bao [Fri, 20 Nov 2015 05:56:17 +0000 (05:56 +0000)]
Merge "bootctl: Fix the error checking for strtol result."

8 years agobootctl: Fix the error checking for strtol result.
Tao Bao [Thu, 19 Nov 2015 22:43:53 +0000 (14:43 -0800)]
bootctl: Fix the error checking for strtol result.

system/extras/bootctl/bootctl.c:136:13: warning: comparison is always false due to limited range of data type [-Wtype-limits]
     if (ret == LONG_MIN || ret == LONG_MAX) {

Change-Id: Id4816716e4c6d304c2ca531aadbcc62117ad7376

8 years agoMerge "fec: report correct ecc location for -E"
Sami Tolvanen [Thu, 19 Nov 2015 15:39:53 +0000 (15:39 +0000)]
Merge "fec: report correct ecc location for -E"

8 years agofec: report correct ecc location for -E
Sami Tolvanen [Wed, 18 Nov 2015 10:13:45 +0000 (10:13 +0000)]
fec: report correct ecc location for -E

Since the header is now at the end, no need to take that into account
when reporting metadata location.

Change-Id: I825b5ae9d35b3ca69dead37f246568b4700298a2

8 years agoMerge "Alloc stress."
Riley Andrews [Tue, 17 Nov 2015 21:38:45 +0000 (21:38 +0000)]
Merge "Alloc stress."

8 years agoAlloc stress.
Riley Andrews [Fri, 13 Nov 2015 01:51:07 +0000 (17:51 -0800)]
Alloc stress.

Change-Id: Ib1b506ef43aea122a76dac80d1eaf819c81073b1

8 years agoMerge "Fix a size specification bug for the bandwidth test."
Christopher Ferris [Thu, 12 Nov 2015 21:00:53 +0000 (21:00 +0000)]
Merge "Fix a size specification bug for the bandwidth test."

8 years agoFix a size specification bug for the bandwidth test.
Ben Cheng [Tue, 10 Nov 2015 09:33:40 +0000 (17:33 +0800)]
Fix a size specification bug for the bandwidth test.

Change-Id: I38b5dc89edafd1768caa34158c2746c7ef35c31e
(cherry picked from commit fb829a48d844b9769c5a52d1bb4d40d51ff4b6bc)

8 years agoMerge "Do not try and sanitize memtest."
Christopher Ferris [Mon, 9 Nov 2015 21:06:47 +0000 (21:06 +0000)]
Merge "Do not try and sanitize memtest."

8 years agoDo not try and sanitize memtest.
Christopher Ferris [Mon, 9 Nov 2015 21:03:52 +0000 (13:03 -0800)]
Do not try and sanitize memtest.

Bug: 25592757
Change-Id: I944bdabd7026251d903f9e3441859401fdcb872f

8 years agoMerge "Use packets.py instead of old multinetwork_test.Packets"
Erik Kline [Mon, 9 Nov 2015 08:19:26 +0000 (08:19 +0000)]
Merge "Use packets.py instead of old multinetwork_test.Packets"

8 years agoUse packets.py instead of old multinetwork_test.Packets
Erik Kline [Mon, 9 Nov 2015 07:29:00 +0000 (16:29 +0900)]
Use packets.py instead of old multinetwork_test.Packets

Change-Id: I39a36569a2df5b2a2a5b2bb323944864b284df0a

8 years agoMerge "Pass more information to the attribute parsing functions."
Lorenzo Colitti [Mon, 9 Nov 2015 06:53:44 +0000 (06:53 +0000)]
Merge "Pass more information to the attribute parsing functions."

8 years agoPass more information to the attribute parsing functions.
Lorenzo Colitti [Thu, 29 Oct 2015 15:14:10 +0000 (00:14 +0900)]
Pass more information to the attribute parsing functions.

Change-Id: I790dc54dd3de8a84758789d58f2ee17f175a6582

8 years agoMerge changes I608c9974,Ic13456c5,Ie77b1591
Lorenzo Colitti [Mon, 9 Nov 2015 06:45:16 +0000 (06:45 +0000)]
Merge changes I608c9974,Ic13456c5,Ie77b1591

* changes:
  Support nested structs in CStruct.
  Move common netlink code into a new netlink.py
  Move the forwarding crash test to a new file.

8 years agoSupport nested structs in CStruct.
Lorenzo Colitti [Thu, 29 Oct 2015 14:47:31 +0000 (23:47 +0900)]
Support nested structs in CStruct.

Change-Id: I608c9974617a9c1e2c5555d499116f72456e532d

8 years agoMove common netlink code into a new netlink.py
Lorenzo Colitti [Thu, 29 Oct 2015 14:51:09 +0000 (23:51 +0900)]
Move common netlink code into a new netlink.py

Change-Id: Ic13456c55707b1b73d6f2774b4232fa851cf853f

8 years agoMove the forwarding crash test to a new file.
Lorenzo Colitti [Wed, 28 Oct 2015 08:50:04 +0000 (17:50 +0900)]
Move the forwarding crash test to a new file.

Change-Id: Ie77b1591338d8a3daae04f845798908ecc42874c

8 years agoMerge "brillo_config: pull PRODUCT_VERSION from cfgtree"
Will Drewry [Fri, 6 Nov 2015 02:12:58 +0000 (02:12 +0000)]
Merge "brillo_config: pull PRODUCT_VERSION from cfgtree"

8 years agobrillo_config: pull PRODUCT_VERSION from cfgtree
Will Drewry [Fri, 6 Nov 2015 00:07:18 +0000 (16:07 -0800)]
brillo_config: pull PRODUCT_VERSION from cfgtree

Add support to read the product version from
  config/brillo/product_version

Change-Id: Iee2394810b42fbab8be1e318373140f289f91346

8 years agoMerge "Fix build on non-neon targets."
Christopher Ferris [Thu, 5 Nov 2015 21:42:20 +0000 (21:42 +0000)]
Merge "Fix build on non-neon targets."

8 years agoFix build on non-neon targets.
Christopher Ferris [Thu, 5 Nov 2015 21:41:24 +0000 (13:41 -0800)]
Fix build on non-neon targets.

Change-Id: I6f766ffcab394bd9d0e4f891ed2eff7ff1fa8fdc

8 years agoMerge "Allow creating 32 bit memtest on arm64."
Christopher Ferris [Thu, 5 Nov 2015 20:58:43 +0000 (20:58 +0000)]
Merge "Allow creating 32 bit memtest on arm64."

8 years agoAllow creating 32 bit memtest on arm64.
Christopher Ferris [Thu, 5 Nov 2015 20:53:10 +0000 (12:53 -0800)]
Allow creating 32 bit memtest on arm64.

Also do a bit of cleanup in the makefile and a few of the files.

Change-Id: I10d9442a5105f47fe361b5b4fb031989150429d3

8 years agoMerge "Simpleperf: add test for cpu offline whiling recording."
Yabin Cui [Thu, 5 Nov 2015 18:23:25 +0000 (18:23 +0000)]
Merge "Simpleperf: add test for cpu offline whiling recording."

8 years agoMerge "Populate BRILLO_PRODUCT_ID from the product config"
Will Drewry [Thu, 5 Nov 2015 03:27:14 +0000 (03:27 +0000)]
Merge "Populate BRILLO_PRODUCT_ID from the product config"

8 years agoPopulate BRILLO_PRODUCT_ID from the product config
Will Drewry [Thu, 5 Nov 2015 02:51:35 +0000 (18:51 -0800)]
Populate BRILLO_PRODUCT_ID from the product config

Using cfgtree.mk, add support to load the brillo
product id directly from a file in the product tree
when configured.

BUG=25343470

Change-Id: Icf9777915612bf3b3630112cfe31b95bae23612f

8 years agoSimpleperf: add test for cpu offline whiling recording.
Yabin Cui [Wed, 4 Nov 2015 02:00:01 +0000 (18:00 -0800)]
Simpleperf: add test for cpu offline whiling recording.

Bug: 25193162
Change-Id: I17b34f4e6932698e158719b884efe8ab441fbdef

8 years agoMerge "simpleperf: support --cpu option in record/stat command."
Yabin Cui [Fri, 30 Oct 2015 20:11:18 +0000 (20:11 +0000)]
Merge "simpleperf: support --cpu option in record/stat command."
am: ce8a1f25ac

* commit 'ce8a1f25ace5a8c2e317a347f96d5e14e79d6f2b':
  simpleperf: support --cpu option in record/stat command.

8 years agoMerge "simpleperf: support --cpu option in record/stat command."
Yabin Cui [Fri, 30 Oct 2015 20:05:38 +0000 (20:05 +0000)]
Merge "simpleperf: support --cpu option in record/stat command."

8 years agosimpleperf: support --cpu option in record/stat command.
Yabin Cui [Mon, 26 Oct 2015 23:15:29 +0000 (16:15 -0700)]
simpleperf: support --cpu option in record/stat command.

--cpu option is used to record on selected cpus.

Change-Id: If5bb9b42a064d2ff69fbeec77906fc79943dddc1

8 years agoMerge "brillo_config: Don\'t cache the timestamp."
Bertrand Simonnet [Fri, 30 Oct 2015 18:33:20 +0000 (18:33 +0000)]
Merge "brillo_config: Don\'t cache the timestamp."
am: 63b10569b9

* commit '63b10569b9cda3303bad274fee5126f4e8b3a386':
  brillo_config: Don't cache the timestamp.

8 years agoMerge "brillo_config: Don't cache the timestamp."
Bertrand Simonnet [Fri, 30 Oct 2015 18:29:10 +0000 (18:29 +0000)]
Merge "brillo_config: Don't cache the timestamp."

8 years agobrillo_config: Don't cache the timestamp.
Bertrand SIMONNET [Thu, 29 Oct 2015 04:42:56 +0000 (21:42 -0700)]
brillo_config: Don't cache the timestamp.

We want the timestamp to change at every build as we may be using the
resulting image to generate an update and we need different images to
have different versions.

Bug: 25358721
Change-Id: I9ae0ae0ba34ea0f508fc3a5f051368e4bce57b61
Test: Build twice in a row, the timestamp is updated.

8 years agoMerge "ext4_utils: Parse unclean super block"
Sami Tolvanen [Fri, 30 Oct 2015 08:55:21 +0000 (08:55 +0000)]
Merge "ext4_utils: Parse unclean super block"
am: a17cfd8b6d

* commit 'a17cfd8b6dfc820fd6ae88e0097387dc4a442235':
  ext4_utils: Parse unclean super block

8 years agoMerge "ext4_utils: Parse unclean super block"
Sami Tolvanen [Fri, 30 Oct 2015 08:51:51 +0000 (08:51 +0000)]
Merge "ext4_utils: Parse unclean super block"

8 years agoext4_utils: Parse unclean super block
Johan Redestig [Thu, 29 Oct 2015 17:04:47 +0000 (18:04 +0100)]
ext4_utils: Parse unclean super block

Dont fail to parse the superblock just because the file system was
not unmounted cleanly.

Change-Id: I381c3e6c55ef5eb478b53d06d6cc56df1b6f41f4

8 years agoMerge "libfec: remove verity validation cache"
Sami Tolvanen [Thu, 29 Oct 2015 16:45:08 +0000 (16:45 +0000)]
Merge "libfec: remove verity validation cache"
am: 98202de709

* commit '98202de709ed70ec3b3e80baa061dfc064754b6b':
  libfec: remove verity validation cache

8 years agoMerge "libfec: remove verity validation cache"
Sami Tolvanen [Thu, 29 Oct 2015 16:03:07 +0000 (16:03 +0000)]
Merge "libfec: remove verity validation cache"

8 years agolibfec: remove verity validation cache
Sami Tolvanen [Thu, 29 Oct 2015 15:45:17 +0000 (15:45 +0000)]
libfec: remove verity validation cache

Caching block validation results increases libfec memory usage and
does not provide comparable benefits in normal use cases, which do
not involve re-reading the same blocks.

Change-Id: I71ac47a7059b350b16e32207932004f3f147abcb

8 years agoMerge "Set accept_ra to 2 on all interfaces."
Lorenzo Colitti [Wed, 28 Oct 2015 08:48:38 +0000 (08:48 +0000)]
Merge "Set accept_ra to 2 on all interfaces."
am: 4ea2a41464

* commit '4ea2a41464237deabff29bd29a9ffb621ac9f7af':
  Set accept_ra to 2 on all interfaces.

8 years agoMerge "Move packet definitions to their own file."
Lorenzo Colitti [Wed, 28 Oct 2015 08:48:35 +0000 (08:48 +0000)]
Merge "Move packet definitions to their own file."
am: ed1aa266ce

* commit 'ed1aa266cef795e383cc9a7ee77f860eaca8b7fe':
  Move packet definitions to their own file.

8 years agoMerge "Set accept_ra to 2 on all interfaces."
Lorenzo Colitti [Wed, 28 Oct 2015 08:46:42 +0000 (08:46 +0000)]
Merge "Set accept_ra to 2 on all interfaces."

8 years agoMerge "Move packet definitions to their own file."
Lorenzo Colitti [Wed, 28 Oct 2015 08:45:28 +0000 (08:45 +0000)]
Merge "Move packet definitions to their own file."

8 years agoSet accept_ra to 2 on all interfaces.
Lorenzo Colitti [Wed, 28 Oct 2015 07:56:51 +0000 (16:56 +0900)]
Set accept_ra to 2 on all interfaces.

This matches what we do on real devices, and it makes it easier
to write tests that use forwarding.

Change-Id: I720a75864f8fb30b59ff023c33ef3f82d1f35b4b

8 years agoMove packet definitions to their own file.
Lorenzo Colitti [Wed, 28 Oct 2015 07:56:12 +0000 (16:56 +0900)]
Move packet definitions to their own file.

Change-Id: I68c57311915e2a8dbdb6842dfb87367485fcf819

8 years agoMerge "Test SIOCKILLADDR on non-empty addresses too."
Lorenzo Colitti [Wed, 28 Oct 2015 07:09:15 +0000 (07:09 +0000)]
Merge "Test SIOCKILLADDR on non-empty addresses too."
am: fa61997537

* commit 'fa6199753778e95a001400afa092a98395062ec9':
  Test SIOCKILLADDR on non-empty addresses too.

8 years agoMerge "Test SIOCKILLADDR on non-empty addresses too."
Lorenzo Colitti [Wed, 28 Oct 2015 07:07:12 +0000 (07:07 +0000)]
Merge "Test SIOCKILLADDR on non-empty addresses too."

8 years agoTest SIOCKILLADDR on non-empty addresses too.
Lorenzo Colitti [Tue, 27 Oct 2015 08:37:00 +0000 (17:37 +0900)]
Test SIOCKILLADDR on non-empty addresses too.

Change-Id: Ifddc4e16c4cd59f96048dd517186d0a1f440f02c

8 years agoMerge "Add a test for timewait crash."
Lorenzo Colitti [Tue, 27 Oct 2015 08:08:52 +0000 (08:08 +0000)]
Merge "Add a test for timewait crash."
am: 82003283a2

* commit '82003283a2679a21d91502e66765605254a7a1bb':
  Add a test for timewait crash.

8 years agoMerge "Test nuking IPv4 sockets as well as IPv6."
Lorenzo Colitti [Tue, 27 Oct 2015 08:08:49 +0000 (08:08 +0000)]
Merge "Test nuking IPv4 sockets as well as IPv6."
am: f6dc5650be

* commit 'f6dc5650be488bbf50b53a9344ca9ed32ec46313':
  Test nuking IPv4 sockets as well as IPv6.

8 years agoMerge "Add functional tests for tcp_nuke_addr."
Lorenzo Colitti [Tue, 27 Oct 2015 08:08:46 +0000 (08:08 +0000)]
Merge "Add functional tests for tcp_nuke_addr."
am: 2f38d11b72

* commit '2f38d11b72f27104f3c8d04d28c71778cef4c107':
  Add functional tests for tcp_nuke_addr.

8 years agoMerge "Add a test for timewait crash."
Lorenzo Colitti [Tue, 27 Oct 2015 08:06:17 +0000 (08:06 +0000)]
Merge "Add a test for timewait crash."

8 years agoMerge "Test nuking IPv4 sockets as well as IPv6."
Lorenzo Colitti [Tue, 27 Oct 2015 08:05:55 +0000 (08:05 +0000)]
Merge "Test nuking IPv4 sockets as well as IPv6."

8 years agoMerge "Add functional tests for tcp_nuke_addr."
Lorenzo Colitti [Tue, 27 Oct 2015 08:05:14 +0000 (08:05 +0000)]
Merge "Add functional tests for tcp_nuke_addr."

8 years agoAdd a test for timewait crash.
Lorenzo Colitti [Fri, 16 Oct 2015 04:52:11 +0000 (13:52 +0900)]
Add a test for timewait crash.

Change-Id: I6cbaf2274c002eeef97a62880f31c8546554765e

8 years agoTest nuking IPv4 sockets as well as IPv6.
Lorenzo Colitti [Thu, 1 Oct 2015 08:36:37 +0000 (17:36 +0900)]
Test nuking IPv4 sockets as well as IPv6.

Also, for clarity, use cstruct.Struct to make the ifreq
structures instead of hand-packing them.

Change-Id: I917d6e38b3db067182ef1c971ff6c676fc2d7431

8 years agoAdd functional tests for tcp_nuke_addr.
Lorenzo Colitti [Fri, 25 Sep 2015 08:43:55 +0000 (17:43 +0900)]
Add functional tests for tcp_nuke_addr.

1. Test for the hash table off-by-one error.
2. Test that sockets are closed and read() calls are interrupted
   with ETIMEDOUT.

Change-Id: Id8cdd50f1f5447734c230341f73d71fcfecdddd8

8 years agoMerge "Support reading /proc/net/tcp[6]."
Lorenzo Colitti [Tue, 27 Oct 2015 06:35:48 +0000 (06:35 +0000)]
Merge "Support reading /proc/net/tcp[6]."
am: 794ea2d775

* commit '794ea2d775529863798cf5e0c7800586ade0d392':
  Support reading /proc/net/tcp[6].

8 years agoMerge "Add support for iif rules."
Lorenzo Colitti [Tue, 27 Oct 2015 06:35:45 +0000 (06:35 +0000)]
Merge "Add support for iif rules."
am: 60a057589f

* commit '60a057589fa095a7fed16ea52a927916ab153781':
  Add support for iif rules.

8 years agoMerge "Support reading /proc/net/tcp[6]."
Lorenzo Colitti [Tue, 27 Oct 2015 06:33:36 +0000 (06:33 +0000)]
Merge "Support reading /proc/net/tcp[6]."

8 years agoMerge "Add support for iif rules."
Lorenzo Colitti [Tue, 27 Oct 2015 06:33:10 +0000 (06:33 +0000)]
Merge "Add support for iif rules."

8 years agoMerge "Make host network access optional."
Lorenzo Colitti [Tue, 27 Oct 2015 06:33:07 +0000 (06:33 +0000)]
Merge "Make host network access optional."
am: 021e773593

* commit '021e773593ca2893d66c26882e53f25307c4e96b':
  Make host network access optional.

8 years agoMerge "Fix ambiguous commit number."
Lorenzo Colitti [Tue, 27 Oct 2015 06:33:04 +0000 (06:33 +0000)]
Merge "Fix ambiguous commit number."
am: 8a6135bb2c

* commit '8a6135bb2c0e5dd2fd7c53792bc3c992f58ba085':
  Fix ambiguous commit number.

8 years agoMerge "Make tcp_nuke_addr_test pass when run more than once."
Lorenzo Colitti [Tue, 27 Oct 2015 06:33:01 +0000 (06:33 +0000)]
Merge "Make tcp_nuke_addr_test pass when run more than once."
am: 2e3fb5e458

* commit '2e3fb5e458b10fecc616bdda08760e9a63de902a':
  Make tcp_nuke_addr_test pass when run more than once.

8 years agoMerge "Add some Android-specific kernel options."
Lorenzo Colitti [Tue, 27 Oct 2015 06:32:57 +0000 (06:32 +0000)]
Merge "Add some Android-specific kernel options."
am: 54f9bd922a

* commit '54f9bd922ac5d4fcfaa34e5878d6de264a565fde':
  Add some Android-specific kernel options.

8 years agoMerge "Make host network access optional."
Lorenzo Colitti [Tue, 27 Oct 2015 06:32:41 +0000 (06:32 +0000)]
Merge "Make host network access optional."

8 years agoMerge "Fix ambiguous commit number."
Lorenzo Colitti [Tue, 27 Oct 2015 06:31:03 +0000 (06:31 +0000)]
Merge "Fix ambiguous commit number."

8 years agoMerge "Make tcp_nuke_addr_test pass when run more than once."
Lorenzo Colitti [Tue, 27 Oct 2015 06:30:53 +0000 (06:30 +0000)]
Merge "Make tcp_nuke_addr_test pass when run more than once."

8 years agoMerge "Add some Android-specific kernel options."
Lorenzo Colitti [Tue, 27 Oct 2015 06:30:35 +0000 (06:30 +0000)]
Merge "Add some Android-specific kernel options."

8 years agoSupport reading /proc/net/tcp[6].
Lorenzo Colitti [Fri, 16 Oct 2015 04:37:33 +0000 (13:37 +0900)]
Support reading /proc/net/tcp[6].

Support the two different TCP socket formats, and move the
parsing code to net_test.py so it can be used for other things
apart from ping.

Change-Id: Iaa10cc323d11834b6ac9429d42708f6cdf89f404

8 years agoAdd support for iif rules.
Lorenzo Colitti [Fri, 16 Oct 2015 04:01:35 +0000 (13:01 +0900)]
Add support for iif rules.

On real systems, we use this to set up tethering.

Change-Id: I0896191754c81e385a08b325922ad42230980d9e

8 years agoMake host network access optional.
Lorenzo Colitti [Fri, 16 Oct 2015 03:57:39 +0000 (12:57 +0900)]
Make host network access optional.

This isn't required to run the tests, so it's an unnecessary
burden - it needs uml_utilities installed, needs root access,
and doesn't even perform a full network setup.

Change-Id: I8b0c3783290526909de9fe7d40ecaf7399891ba8

8 years agoMerge "Simpleperf: Don\'t load whole perf.data into memory."
Yabin Cui [Mon, 26 Oct 2015 21:01:38 +0000 (21:01 +0000)]
Merge "Simpleperf: Don\'t load whole perf.data into memory."
am: c5ca81d0d4

* commit 'c5ca81d0d4adc1da4325a89dc958b515691a4e0d':
  Simpleperf: Don't load whole perf.data into memory.

8 years agoMerge "Simpleperf: Don't load whole perf.data into memory."
Yabin Cui [Mon, 26 Oct 2015 20:57:19 +0000 (20:57 +0000)]
Merge "Simpleperf: Don't load whole perf.data into memory."

8 years agoMerge "Always use clang for iotop."
Dan Albert [Mon, 26 Oct 2015 18:32:49 +0000 (18:32 +0000)]
Merge "Always use clang for iotop."
am: 18bf41fbe2

* commit '18bf41fbe2cf8af53b3732a68c20d280c86a60e5':
  Always use clang for iotop.

8 years agoMerge "Always use clang for iotop."
Dan Albert [Mon, 26 Oct 2015 18:29:22 +0000 (18:29 +0000)]
Merge "Always use clang for iotop."

8 years agoAlways use clang for iotop.
Dan Albert [Mon, 26 Oct 2015 18:24:47 +0000 (11:24 -0700)]
Always use clang for iotop.

iotop makes use of a lambda that uses an `auto` typedef parameter.
This is a C++14 feature, and we need to move GCC back to C++11 because
GCC 4.9 doesn't have a correct C++14 ABI.

Bug: http://b/25022512
Change-Id: I3946bd3d287c99eeee1d570ea46e073828b5c1d2

8 years agoMerge "Reduce oom_score_adj to zero for perfprofd."
Than McIntosh [Mon, 26 Oct 2015 12:24:11 +0000 (12:24 +0000)]
Merge "Reduce oom_score_adj to zero for perfprofd."
am: 5157212f42

* commit '5157212f42fcf90a2ce136b795c092bbffd41d54':
  Reduce oom_score_adj to zero for perfprofd.

8 years agoMerge "Reduce oom_score_adj to zero for perfprofd."
Than McIntosh [Mon, 26 Oct 2015 12:21:01 +0000 (12:21 +0000)]
Merge "Reduce oom_score_adj to zero for perfprofd."

8 years agoFix ambiguous commit number.
Lorenzo Colitti [Thu, 1 Oct 2015 08:35:29 +0000 (17:35 +0900)]
Fix ambiguous commit number.

Change-Id: I5081c360a8ab996d7c77e41c099e4acdd65a8ce2

8 years agoSimpleperf: Don't load whole perf.data into memory.
Yabin Cui [Sat, 24 Oct 2015 02:48:42 +0000 (19:48 -0700)]
Simpleperf: Don't load whole perf.data into memory.

perf.data can be too large to be loaded into memory.
To avoid this, use fread() instead of mmap() to read perf.data,
and always use RecordCache to sort records.

Fix unit tests failure caused by previous change.

Bug: 25194400

Change-Id: If29dc0bb0ed992ba34202c2cb1a204a1d9123b7a

8 years agoReduce oom_score_adj to zero for perfprofd.
Than McIntosh [Fri, 23 Oct 2015 17:15:07 +0000 (13:15 -0400)]
Reduce oom_score_adj to zero for perfprofd.

Up until this point perfprofd has inherited a
decreased OOM score of -1000 from init -- this
doens't make sense given that perfprofd is not
a critical system service. This fixes perfprofd to
reduce its oom_score_adj to 0.

Bug: 25216630
Change-Id: Ica8a300d8c33016bcbd3b0ecd25393828654878e

8 years agoMerge "Simpleperf: fix some unknown symbols for report result."
Yabin Cui [Fri, 23 Oct 2015 01:16:38 +0000 (01:16 +0000)]
Merge "Simpleperf: fix some unknown symbols for report result."
am: 6fea45816a

* commit '6fea45816ae5ce22b9f186a1fc4b447a42ece10f':
  Simpleperf: fix some unknown symbols for report result.

8 years agoMerge "Simpleperf: fix some unknown symbols for report result."
Yabin Cui [Fri, 23 Oct 2015 01:14:16 +0000 (01:14 +0000)]
Merge "Simpleperf: fix some unknown symbols for report result."

8 years agoSimpleperf: fix some unknown symbols for report result.
Yabin Cui [Mon, 12 Oct 2015 23:56:05 +0000 (16:56 -0700)]
Simpleperf: fix some unknown symbols for report result.

Using debug shared libraries in /usr/lib/debug on linux host.
Match ip addresses with symbols by symbols' virtual addresses instead of
file offsets in elf file. Because symbols' file offsets in debug shared
libraries are different from those in original shared libraries.

Fix overlapped maps.

Bug: 24716851
Change-Id: I9cb64958c4de5c7a6c77c3febc5f689cf2df650f

8 years agoMerge "Simpleperf: do stack unwinding while recording."
Yabin Cui [Fri, 23 Oct 2015 00:21:14 +0000 (00:21 +0000)]
Merge "Simpleperf: do stack unwinding while recording."
am: e7182b0cc4

* commit 'e7182b0cc45b447943b51e36aa1feb2d17257875':
  Simpleperf: do stack unwinding while recording.

8 years agoMerge "Simpleperf: do stack unwinding while recording."
Yabin Cui [Fri, 23 Oct 2015 00:17:29 +0000 (00:17 +0000)]
Merge "Simpleperf: do stack unwinding while recording."

8 years agoMerge "system/extras: remove BORINGSSL_201509 support."
Kenny Root [Thu, 22 Oct 2015 00:11:39 +0000 (00:11 +0000)]
Merge "system/extras: remove BORINGSSL_201509 support."
am: b5ff8a9895

* commit 'b5ff8a9895b21da46a7d0c6b082db363e1f9929d':
  system/extras: remove BORINGSSL_201509 support.

8 years agoMerge "system/extras: remove BORINGSSL_201509 support."
Kenny Root [Thu, 22 Oct 2015 00:09:39 +0000 (00:09 +0000)]
Merge "system/extras: remove BORINGSSL_201509 support."

8 years agoMerge "Add timing of allocation functions."
Christopher Ferris [Wed, 21 Oct 2015 19:59:35 +0000 (19:59 +0000)]
Merge "Add timing of allocation functions."
am: 3d614a17ef

* commit '3d614a17efc2661dc491dafa9a18d20bac1ab964':
  Add timing of allocation functions.

8 years agoMerge "Add timing of allocation functions."
Christopher Ferris [Wed, 21 Oct 2015 19:44:14 +0000 (19:44 +0000)]
Merge "Add timing of allocation functions."

8 years agoAdd timing of allocation functions.
Christopher Ferris [Wed, 14 Oct 2015 20:25:15 +0000 (13:25 -0700)]
Add timing of allocation functions.

Report the time it takes to execute every different allocation function
during the replay.

Change-Id: I4e8321409357824c10f2f176b02c7c33538d353b

8 years agoMerge "Fix lseek argument order."
Elliott Hughes [Tue, 20 Oct 2015 20:37:10 +0000 (20:37 +0000)]
Merge "Fix lseek argument order."
am: 5321b63ea2

* commit '5321b63ea2063e4246543009c763584498d1e56d':
  Fix lseek argument order.

8 years agoMerge "Fix lseek argument order."
Elliott Hughes [Tue, 20 Oct 2015 20:28:29 +0000 (20:28 +0000)]
Merge "Fix lseek argument order."

8 years agoFix lseek argument order.
Elliott Hughes [Tue, 20 Oct 2015 20:14:28 +0000 (13:14 -0700)]
Fix lseek argument order.

Change-Id: I782d17a0678d7e74be89c46c42de942129750e55

8 years agoMerge "brillo_config: add missing mkdir for product rules"
Mike Frysinger [Tue, 20 Oct 2015 20:11:53 +0000 (20:11 +0000)]
Merge "brillo_config: add missing mkdir for product rules"
am: 01e57b832a

* commit '01e57b832ab732199824ac6bda0b804eaad62b94':
  brillo_config: add missing mkdir for product rules

8 years agoMerge "brillo_config: add missing mkdir for product rules"
Mike Frysinger [Tue, 20 Oct 2015 19:25:39 +0000 (19:25 +0000)]
Merge "brillo_config: add missing mkdir for product rules"

8 years agobrillo_config: add missing mkdir for product rules
Mike Frysinger [Tue, 20 Oct 2015 18:11:47 +0000 (14:11 -0400)]
brillo_config: add missing mkdir for product rules

When doing a clean build, creating this file fails because the dir does
not yet exist:
echo "" > out/target/product/brilloemulator_arm/obj/ETC/product_id_intermediates/product_id
/bin/bash: out/target/product/brilloemulator_arm/obj/ETC/product_id_intermediates/product_id: No such file or directory

BUG: 24585672
Change-Id: I9c4a646b8d86cd303b0114f9b64d02896797f720

8 years agoMerge "libfec: add a function to disable verity"
Sami Tolvanen [Tue, 20 Oct 2015 14:25:41 +0000 (14:25 +0000)]
Merge "libfec: add a function to disable verity"
am: c3788283d7

* commit 'c3788283d70eb8b0ad5b9a0e224108262beb84b5':
  libfec: add a function to disable verity