Commit Graph

18792 Commits

Author SHA1 Message Date
Mark Salyzyn 2e2d2edc59 Merge "logd: test: statistics report chatty effective percentage" 2015-12-07 19:30:51 +00:00
Mark Salyzyn 8ca9a775f7 Merge "liblog: test: liblog.android_logger_get_ failure" 2015-12-07 19:30:40 +00:00
Mark Salyzyn 074f542476 logd: test: leniency towards background cgroup
Accepting a new lower standard of performance due to
the realities of the background cgroup.

Change-Id: Icd85050ffbf7f0129dd4c053323faedd0ff74048
2015-12-07 11:26:12 -08:00
Mark Salyzyn f33657da4d logd: test: statistics report chatty effective percentage
Add parsing to recognize optional chatty effective
percentage field as reported in the logger statistics.

Bug: 22855208
Change-Id: Id9c5e4a907ed0f9319beb9ddbfa27f4844bffc7d
2015-12-07 11:10:04 -08:00
Mark Salyzyn 7d8939ec1d liblog: test: liblog.android_logger_get_ failure
Change-Id: I8f74eca7857fe4cd6fa979d7bdeeda2b6a3e596b
2015-12-07 11:08:59 -08:00
Mark Salyzyn 69504d646d Merge "logd: liblog: logcat: switch to android_log_clockid() (2)" 2015-12-07 19:08:33 +00:00
Mark Salyzyn ba7a9a016b logd: liblog: logcat: switch to android_log_clockid() (2)
android_log_timestamp returns the property leading letter,
it is better to return a clockid_t with android_log_clockid()

Bug: 23668800
Change-Id: I38dee773bf3844177826b03a26b03215c79a5359
2015-12-07 18:45:31 +00:00
Mark Salyzyn b566435b02 Merge "Revert "logd: liblog: logcat: switch to android_log_clockid()"" 2015-12-07 18:31:44 +00:00
Mark Salyzyn 9e18cdcebd Revert "logd: liblog: logcat: switch to android_log_clockid()"
This reverts commit 77b5696b1d.

Change-Id: I7711bf1a7e3f72ed29a2498d7287b725a0e624bd
2015-12-07 18:30:58 +00:00
Mark Salyzyn 9eca0e775b Merge "logd: liblog: logcat: switch to android_log_clockid()" 2015-12-07 18:16:29 +00:00
Elliott Hughes 912ed3d8ca Merge "Track rename of base/ to android-base/." 2015-12-07 17:49:14 +00:00
Erik Kline c40da92e5b Listen on dualstack sockets.
Change-Id: Id6eff59c65a7f7e190ab9aa93625e32a9806ae6c
2015-12-07 16:09:39 +09:00
Erik Kline 7e16cc15b5 Switch from using sockaddr to sockaddr_storage.
This is to ensure sufficient space is always available.

Change-Id: Ifa87b93ecdc90dcacbfb24446c872344da6703d3
2015-12-07 16:07:46 +09:00
Elliott Hughes 4f71319df0 Track rename of base/ to android-base/.
Change-Id: Idf9444fece4aa89c93e15640de59a91f6e758ccf
2015-12-04 22:00:26 -08:00
Elliott Hughes ce0c6c5fee Merge "Add a symlink android-base/ pointing to base/."
am: 1efab7acc5

* commit '1efab7acc5d5b69dced70b6d04070d36f7c9632d':
  Add a symlink android-base/ pointing to base/.
2015-12-04 23:25:17 +00:00
Elliott Hughes 1efab7acc5 Merge "Add a symlink android-base/ pointing to base/." 2015-12-04 23:22:00 +00:00
Elliott Hughes 7f24c45b7d Add a symlink android-base/ pointing to base/.
This lets us move things over piece by piece without breaking anything.

Change-Id: I06fc29572f63c4af9675888987acdcdea086711d
2015-12-04 15:18:27 -08:00
Mark Salyzyn 77b5696b1d logd: liblog: logcat: switch to android_log_clockid()
android_log_timestamp returns the property leading letter,
it is better to return a clockid_t with android_log_clockid()

Bug: 23668800
Change-Id: I3c4e3e6b87f6676950797f1f0e203b44c542ed43
2015-12-04 14:49:19 -08:00
Tom Cherry 265f525e21 Remove ANDROID_PROPERTY_WORKSPACE
Bug 23290008

Change-Id: I95babe735444ada10c67594ace700cae5d1ec0b3
2015-12-04 14:11:02 -08:00
Bertrand Simonnet d093c4bb5e Merge changes Id186dc54,Ie8fee841
am: f2eafd21a6

* commit 'f2eafd21a66f4b97bde4b18328407bb53820516e':
  metricsd: Allows introspecting the metrics.
  metrics: Remove user action logic.
2015-12-04 21:23:03 +00:00
Bertrand Simonnet f2eafd21a6 Merge changes Id186dc54,Ie8fee841
* changes:
  metricsd: Allows introspecting the metrics.
  metrics: Remove user action logic.
2015-12-04 21:17:50 +00:00
Bertrand SIMONNET b13527d14e metricsd: Allows introspecting the metrics.
This CL adds a dump command to metrics_client that will dump the
histograms, aggregated by metricsd since it started, in a human readable
format.
This is useful for developers to ensure that their code uses libmetrics
correctly and the reported values are correct.

Sample output (redacted to fit the commit message):
$ metrics_client -d
Histogram: hello recorded 5 samples, average = 54.8 (flags = 0x1)
0   ...
9   --------O                 (1 = 20.0%) {0.0%}
16  O                         (0 = 0.0%) {20.0%}
29  --------O                 (1 = 20.0%) {20.0%}
54  ------------------------O (3 = 60.0%) {40.0%}
100 O                         (0 = 0.0%) {100.0%}
$

Bug: 25817310
Test: * Send a histogram with metrics_client.
      * `metrics_client -d` shows it.

Change-Id: Id186dc5463403ca9181ee9eef8f46b5e809b8714
2015-12-04 13:14:58 -08:00
Bertrand SIMONNET f2297eeb1f metrics: Remove user action logic.
User actions are no longer reported anywhere, we can remove the logic.

Bug: 25818567
Change-Id: Ie8fee841bda6503a3f5781d73b0f879babe99b03
2015-12-04 13:04:23 -08:00
Bertrand Simonnet e9bc902cbc Merge "metricsd: Log over binder."
am: c5e921fe52

* commit 'c5e921fe529260db515d66184027e5631b172d45':
  metricsd: Log over binder.
2015-12-04 17:10:09 +00:00
Bertrand Simonnet c5e921fe52 Merge "metricsd: Log over binder." 2015-12-04 17:05:36 +00:00
Bertrand SIMONNET 6b8629a649 metricsd: Log over binder.
This CL converts metricsd, libmetrics and metrics_collector to use
Binder to pass metrics samples.

Bug: 25670685

Change-Id: I657faecdf4ed1226ab30ce69e062028463437e7b
2015-12-03 17:01:27 -08:00
Tom Cherry e40884afa0 Merge changes from topic \'prop-security\'
am: 65fc485574

* commit '65fc48557485e0d8afafb5c8c5644d93b53c3214':
  Abort if __system_property_area_init fails
  restorecon /property_contexts
2015-12-03 22:58:57 +00:00
Josh Gao eb4426f2b4 Merge "adbd: split up writes longer than 16k."
am: 1c6cd21c43

* commit '1c6cd21c43e3acd8b275c21a88099c5fe9f56e38':
  adbd: split up writes longer than 16k.
2015-12-03 22:55:34 +00:00
Tom Cherry 65fc485574 Merge changes from topic 'prop-security'
* changes:
  Abort if __system_property_area_init fails
  restorecon /property_contexts
2015-12-03 22:55:32 +00:00
Josh Gao 1c6cd21c43 Merge "adbd: split up writes longer than 16k." 2015-12-03 22:50:11 +00:00
Josh Gao 6b531c4e6d adbd: split up writes longer than 16k.
Also, inline the bulk_read and bulk_write functions which were only
being used by one other function.

Bug: http://b/25847115
Change-Id: I218a869030219f606577a5529601c542488115e0
2015-12-03 14:40:03 -08:00
David Pursell d2acbd1931 adb: add help text for USB permission errors.
The current permission messages can be confusing for users who don't
know about udev and USB access permissions. This CL adds some checks to
try to identify common udev problems, and adds a link to online
documentation.

Example messages:

1) adb server is in plugdev group but access is still denied:
$ adb devices
List of devices attached
082f59270073e1e3  no permissions (verify udev rules); see [developer.android.com/tools/device.html]

2) plugdev group exists but adb server is not in it:
$ adb shell
error: USB permission failure: udev requires plugdev group membership.
See [developer.android.com/tools/device.html] for more information.

3) plugdev group does not exist:
$ adb shell
error: USB permission failure.
See [developer.android.com/tools/device.html] for more information.

Bug: http://b/25777880
Change-Id: I536565adc12ab657c75151309795674181205db0
2015-12-03 11:00:47 -08:00
Bertrand Simonnet 1706e278b0 Merge "metricsd: Add clang format config."
am: 1462c78c9c

* commit '1462c78c9cb1b4ee8d6b68b33fa7be64d6b9fbd4':
  metricsd: Add clang format config.
2015-12-02 22:45:22 +00:00
Bertrand Simonnet 1462c78c9c Merge "metricsd: Add clang format config." 2015-12-02 22:31:33 +00:00
Josh Gao e53fadf4b3 Merge "adb: don\'t divide by zero"
am: 1702f427b5

* commit '1702f427b53b88d9517bb994844a9a15e02f2bba':
  adb: don't divide by zero
2015-12-02 22:00:10 +00:00
Josh Gao 1702f427b5 Merge "adb: don't divide by zero" 2015-12-02 21:56:04 +00:00
Tom Cherry 6036114f93 Abort if __system_property_area_init fails
If __system_property_area_init() fails, there is a fundamental issue
with the system and we should abort from init.

Bug: 21852512
Change-Id: I05d7978ba3bcc347027a6d9443de7cdd229033d2
2015-12-02 11:29:12 -08:00
Elliott Hughes 59021ad415 Merge "Fix "adb sync" (and "adb push") error reporting."
am: d0d87f78e5

* commit 'd0d87f78e55362e3792ddec5faeab247f3493858':
  Fix "adb sync" (and "adb push") error reporting.
2015-12-02 18:59:16 +00:00
Elliott Hughes d0d87f78e5 Merge "Fix "adb sync" (and "adb push") error reporting." 2015-12-02 18:53:28 +00:00
Bertrand SIMONNET 0c7e29b42e metricsd: Add clang format config.
This will make it easier to catch formatting nits.
This style is based on the Google style guide (well known publicly) and
follows the Chromium style changes we have adopted.

Bug: 25887990

Change-Id: If9562223752dfe611a32c341e703338f806bcc0f
2015-12-02 16:42:11 +00:00
Sami Tolvanen 90f52df257 Set up dm-verity in EIO mode instead of logging mode
If the device is corrupted, set up dm-verity in EIO mode instead of
logging mode. This prevents corrupted blocks from being returned to
user space. Note that restart mode is used by default and a warning
will be displayed to the user after corruption is first detected.

Bug: 19277516
Change-Id: I38966d73eb814836bc34b4bad1192583e5010b36
2015-12-02 14:38:01 +00:00
Tom Cherry e36a85cdcc restorecon /property_contexts
/property_contexts exists before selinux policies are loaded, so we must
restorecon before other processes can access it

Bug: 21852512
Change-Id: Ie983caac635eb928ab19eea996a5625f3673de39
2015-12-01 17:47:35 -08:00
Josh Gao 81d3447fa9 Merge changes I25bdcbc5,I12314da5,I055b0821
am: a3892504ac

* commit 'a3892504acda9ab280db5ade66c0d961fbd936a6':
  adb: don't pull symlinks when pulling a directory
  adb: remove extraneous newline from skip message
  adb: correctly count skipped files in push/pull
2015-12-01 02:46:37 +00:00
Josh Gao a3892504ac Merge changes I25bdcbc5,I12314da5,I055b0821
* changes:
  adb: don't pull symlinks when pulling a directory
  adb: remove extraneous newline from skip message
  adb: correctly count skipped files in push/pull
2015-12-01 02:42:09 +00:00
Dan Willemsen ab00a991bf Merge "liblog: enable windows builds in soong"
am: 3a6ae02b7b

* commit '3a6ae02b7b604319165811b802162b6f7a3837fd':
  liblog: enable windows builds in soong
2015-12-01 02:28:14 +00:00
Dan Willemsen 3a6ae02b7b Merge "liblog: enable windows builds in soong" 2015-12-01 02:23:33 +00:00
Bertrand Simonnet 9d5a431657 Merge "metricsd: Use different directories for each daemon."
am: 03f9069acc

* commit '03f9069acc3865135330f51413365f94e86409fc':
  metricsd: Use different directories for each daemon.
2015-12-01 00:56:29 +00:00
Bertrand Simonnet 20bb55e6ea Merge "metricsd: Specify directory for persistent integers."
am: 8a2a635d3c

* commit '8a2a635d3cba7253b77a9aeaa922c680d561eba0':
  metricsd: Specify directory for persistent integers.
2015-12-01 00:56:23 +00:00
Bertrand Simonnet 03f9069acc Merge "metricsd: Use different directories for each daemon." 2015-12-01 00:51:39 +00:00
Bertrand Simonnet 8a2a635d3c Merge "metricsd: Specify directory for persistent integers." 2015-12-01 00:51:02 +00:00