Commit graph

33646 commits

Author SHA1 Message Date
Josh Gao
7be316ec0d Merge changes I8e8e0963,I3c714f63,Id157412e,Ib7c26fbd am: 55ddb99527 am: 66ca192ac3 am: f4578f1ad4
am: 21348e1205

Change-Id: Ie54a5dfdba5f6e4681473709af4aa370abb46d48
2017-05-15 21:40:45 +00:00
Mark Salyzyn
953c7389c1 Merge "logd: logcat --clear respect pruneMargin" am: 3d0186b97e am: daae7558e8 am: 96ab6a71fa
am: e3587f612c

Change-Id: Ie8013060f95211d01364858635bc790eaf357915
2017-05-15 21:39:24 +00:00
Josh Gao
21348e1205 Merge changes I8e8e0963,I3c714f63,Id157412e,Ib7c26fbd am: 55ddb99527 am: 66ca192ac3
am: f4578f1ad4

Change-Id: Ica1d6489562b8d9e729eae0d3faee30efa265d6a
2017-05-15 21:05:15 +00:00
Josh Gao
f4578f1ad4 Merge changes I8e8e0963,I3c714f63,Id157412e,Ib7c26fbd am: 55ddb99527
am: 66ca192ac3

Change-Id: I751dbb8fd9a5b5f79118ce38a63d2b5073bb5bf7
2017-05-15 20:58:18 +00:00
Josh Gao
66ca192ac3 Merge changes I8e8e0963,I3c714f63,Id157412e,Ib7c26fbd
am: 55ddb99527

Change-Id: If947b8e8efd9ad873defabe3f6fea3caacf394ed
2017-05-15 20:51:16 +00:00
Josh Gao
55ddb99527 Merge changes I8e8e0963,I3c714f63,Id157412e,Ib7c26fbd
* changes:
  adb: libusb: recognize devices with multiple interfaces.
  adb: libusb: wait for devices to become accessible.
  adb: libusb: switch to hotplug for device detection.
  adb: silence noise.
2017-05-15 20:45:06 +00:00
Mark Salyzyn
e3587f612c Merge "logd: logcat --clear respect pruneMargin" am: 3d0186b97e am: daae7558e8
am: 96ab6a71fa

Change-Id: Ic52878dc55b1bc2ce277a2d2e34d854c6bfc136e
2017-05-15 20:40:47 +00:00
Mark Salyzyn
96ab6a71fa Merge "logd: logcat --clear respect pruneMargin" am: 3d0186b97e
am: daae7558e8

Change-Id: I7fc1b18b080083fd7a48b1bcec8ec8e11139d4d2
2017-05-15 20:38:31 +00:00
Mark Salyzyn
daae7558e8 Merge "logd: logcat --clear respect pruneMargin"
am: 3d0186b97e

Change-Id: If4e8c488530dc4ef20129806c5c84ffb68d0a40b
2017-05-15 20:35:17 +00:00
Treehugger Robot
3d0186b97e Merge "logd: logcat --clear respect pruneMargin" 2017-05-15 20:27:06 +00:00
Dmitry Shmidt
dc230f497a Merge "fastboot: Add DTS partition support for 'flashall' command" am: b8e428110b am: 0f0ee1beeb am: 12f0bb3395
am: 385483c3ad

Change-Id: I90307cae24a3d01a073b4ac795930b69120ebe63
2017-05-15 19:58:55 +00:00
Dmitry Shmidt
385483c3ad Merge "fastboot: Add DTS partition support for 'flashall' command" am: b8e428110b am: 0f0ee1beeb
am: 12f0bb3395

Change-Id: I679936f6992417406ab019950f158d526a371730
2017-05-15 19:47:12 +00:00
Dmitry Shmidt
12f0bb3395 Merge "fastboot: Add DTS partition support for 'flashall' command" am: b8e428110b
am: 0f0ee1beeb

Change-Id: I12167075a299517f582333c3cc7e88cafa74b80e
2017-05-15 19:42:13 +00:00
Dmitry Shmidt
0f0ee1beeb Merge "fastboot: Add DTS partition support for 'flashall' command"
am: b8e428110b

Change-Id: I80bd3be921d7091ad9d5d7e1b3f1cb4cc03084a6
2017-05-15 19:35:41 +00:00
Treehugger Robot
b8e428110b Merge "fastboot: Add DTS partition support for 'flashall' command" 2017-05-15 19:28:29 +00:00
Dmitry Shmidt
de8c08c612 fastboot: Add DTS partition support for 'flashall' command
Hikey960 has DTS partiton for DT image

Test: Manual
Bug: 38310807

Change-Id: I9f8e9b27ed40ebdd225f3c4e4b30f53e7cdb5ee7
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2017-05-15 10:25:31 -07:00
Mark Salyzyn
0878a7c167 logd: logcat --clear respect pruneMargin
While a reader is present, consider it a success, and not busy, if a
buffer is pruned down to pruneMargin plus one second of additional
margin of logspan.  If not busy, no need to trigger any mitigations
regarding the readers, or to report any errors.

Side Effects are we no longer mitigate the reader when performing
chatty filtration. This is a positive side effect because we were
getting --wrap wakeups that seemed premature.

Add kickMe() and isBusy() methods to ease maintenance and uniformity
of actions.

Test: gTest liblog-unit-tests, logd-unit-tests & logcat-unit-tests
Test: manual: 'logcat -b all -c' repeat in a loop, at various logging
      load levels, simultaneously 'logcat -b' all in another session.
Bug: 38046067
Change-Id: I3d0c8a2d416a25c45504eda3bfe70b6f6e09ab27
2017-05-15 07:01:42 -07:00
Joel Fernandes
88ef9f0629 libcutils: Add support for RT schedtune group
Add an SP_RT_APP group which will be used to provide minimum
capacity guarantees to RT tasks sensitive to frequency drops
such as synthesizer workloads.

Bug: 33085313
Change-Id: I07cca79e52661d1325a1db9ef3b61eb0f8d20989
Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-05-13 19:41:05 +00:00
Joel Fernandes
f50d1091e9 init.rc: Add a new schedtune group 'rt' for rt tasks
Add a new boost group for rt tasks. Device specific changes will be in
the device init rc.

Bug: 33085313

Change-Id: I99ca085d0933d878795bb0eda639bb2075419415
Signed-off-by: Joel Fernandes <joelaf@google.com>
2017-05-13 19:40:50 +00:00
Josh Gao
3b0577f8b9 Merge changes I0ff1fc5c,I7a23d3bf into oc-dev am: a7172f41b8
am: e9fbe99ba6

Change-Id: I56555d7da92da111547b3c38e1cfe6aeeacc1073
2017-05-13 02:29:53 +00:00
Josh Gao
e9fbe99ba6 Merge changes I0ff1fc5c,I7a23d3bf into oc-dev
am: a7172f41b8

Change-Id: I666faf401fb86b4a74c610abfc39b673b103856b
2017-05-13 02:27:26 +00:00
TreeHugger Robot
a7172f41b8 Merge changes I0ff1fc5c,I7a23d3bf into oc-dev
* changes:
  libdebuggerd: print the build fingerprint in fallback.
  libdebuggerd: implement fallback register dumping on arm/aarch64.
2017-05-13 02:25:34 +00:00
Elliott Hughes
a07594f01c Merge "Add libkeyutils." am: 81824ebf1f am: dce08d5572 am: 971e77c5c0
am: 62ee93d7a8

Change-Id: I16215d1eb5dc8f692d312f827a5a2707f4f203fb
2017-05-13 00:48:23 +00:00
Josh Gao
046caba28d Merge "debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id." into oc-dev am: f9b9802ce9 -s ours
am: 32aa14de40

Change-Id: Iaccd00b88e0e60d5ed70f7376b455c9256138244
2017-05-13 00:47:56 +00:00
Elliott Hughes
62ee93d7a8 Merge "Add libkeyutils." am: 81824ebf1f am: dce08d5572
am: 971e77c5c0

Change-Id: Ibe5aa5bfca03727c3c1d1dbee8941c451d76885f
2017-05-13 00:44:29 +00:00
Elliott Hughes
971e77c5c0 Merge "Add libkeyutils." am: 81824ebf1f
am: dce08d5572

Change-Id: I5bcbf12878291488ec9a141009e6a2846b86d34f
2017-05-13 00:34:05 +00:00
Elliott Hughes
dce08d5572 Merge "Add libkeyutils."
am: 81824ebf1f

Change-Id: I096f8f0333313ca1425d6d285b07b9c199c1d90e
2017-05-13 00:32:08 +00:00
Josh Gao
32aa14de40 Merge "debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id." into oc-dev
am: f9b9802ce9  -s ours

Change-Id: I36a9ece869ff3059e0aba605a9dc97e40f9ae04d
2017-05-13 00:30:01 +00:00
Elliott Hughes
81824ebf1f Merge "Add libkeyutils." 2017-05-13 00:28:28 +00:00
Josh Gao
f9b9802ce9 Merge "debuggerd_handler: use syscall(__NR_get[pt]id) instead of get[pt]id." into oc-dev 2017-05-13 00:23:27 +00:00
Josh Gao
425aefdcf0 adb: libusb: recognize devices with multiple interfaces.
A bug was introduced by commit 8bf37d7a wherein we accidentally only
look at the first interface of a device when checking whether a USB
device was an ADB device or not.

Bug: http://b/38201318
Test: none
Change-Id: I8e8e0963c77cd2cb03538d926ab735f4b57e52b7
2017-05-12 17:08:50 -07:00
Josh Gao
3f60a968e3 adb: libusb: wait for devices to become accessible.
Android's host linux libusb uses netlink instead of udev for device
hotplug notification, which means we can get hotplug notifications
before udev has updated ownership/perms on the device.

When detecting a new device, poll the device file for a while until we
can access it, before trying to open it.

Bug: http://b/38170349
Test: manually incrased timeout and chmodded a device betwen 0 and 664
Change-Id: I3c714f630940df02b407442592301e2bbb3d9653
2017-05-12 17:08:50 -07:00
Josh Gao
6da1cd49b5 adb: libusb: switch to hotplug for device detection.
Switch from polling in a loop to using libusb's hotplug API to detect
when devices arrive and leave. Use this to remove devices that were
inaccessible when they're unplugged.

Bug: http://b/38170349
Test: plugged in device
Change-Id: Id157412eb46834debecb0cd45b47b1ced50c2274
2017-05-12 17:08:50 -07:00
Josh Gao
723258a4c7 adb: silence noise.
Remove logging statements that don't provide any benefit.

Test: none
Change-Id: Ib7c26fbdb019f4d6bbce2b7fb192cb5e6066e53f
2017-05-12 17:08:50 -07:00
Mark Salyzyn
b3ee5d0db2 Merge "liblog: tests: crashes in logcat.descriptive" am: f218210f6e am: 236daaf478 am: 3de904a826
am: 564297578a

Change-Id: I19715d73b543d5069d6c50c18ef7edaace23a8cb
2017-05-12 22:26:09 +00:00
Mark Salyzyn
564297578a Merge "liblog: tests: crashes in logcat.descriptive" am: f218210f6e am: 236daaf478
am: 3de904a826

Change-Id: I9e628c4fcbf2a2bef82d66a3af510524e72ce95e
2017-05-12 22:16:22 +00:00
Mark Salyzyn
3de904a826 Merge "liblog: tests: crashes in logcat.descriptive" am: f218210f6e
am: 236daaf478

Change-Id: I3f6154e833e5da809a36ee478a4500effa8ff3ef
2017-05-12 22:14:21 +00:00
Mark Salyzyn
236daaf478 Merge "liblog: tests: crashes in logcat.descriptive"
am: f218210f6e

Change-Id: I4efdd4e727d32f06f2c352c0c211cc51b5bbe0e9
2017-05-12 22:11:53 +00:00
Treehugger Robot
f218210f6e Merge "liblog: tests: crashes in logcat.descriptive" 2017-05-12 21:58:22 +00:00
Thierry Strudel
c768e30713 Merge "Revert "fs_mgr: Update for new libavb API."" 2017-05-12 21:04:37 +00:00
Mark Salyzyn
f7690d9196 liblog: tests: crashes in logcat.descriptive
scanTagLine has some loops that do not check for a terminating nul,
problematic for responses from the logger via __getEventTag.

Test: gTest logcat-unit-tests --gtest_filter=*.descriptive
Bug: 37791296
Change-Id: Ib4e900b765b407bdee43e009d6625fe289863ddc
2017-05-12 13:07:08 -07:00
Steve Muckle
583c5c1b2d Revert "disable module loading after BOOT_COMPLETED broadcast" am: f59c55aa7a
am: e8240c4551

Change-Id: I5d78cb0eded0f11bf7009ed792484b414f2aa704
2017-05-12 18:33:18 +00:00
Steve Muckle
e8240c4551 Revert "disable module loading after BOOT_COMPLETED broadcast"
am: f59c55aa7a

Change-Id: Ib871ab1f2005c074dad0dd207e4dc41bd35568d6
2017-05-12 18:26:20 +00:00
Vineeta Srivastava
4c01af8129 Revert "fs_mgr: Update for new libavb API."
This reverts commit 7ea2c2814d.
2017-05-12 10:18:14 -07:00
Tom Cherry
d31add0ded Merge "Enable libprocessgroup on host bionic" am: 44673da3eb am: ee178d6976 am: 7b0f3d9f6a
am: 4ee2a57595

Change-Id: If92b0027489681d49259b7021ff595ea7f6ba5c5
2017-05-12 09:19:32 +00:00
David Zeuthen
8aa239009a Merge "fs_mgr: Update for new libavb API." am: 5ed7d39857 am: fb4d8b0bac am: 91f1bf78b0
am: e4769abd8f

Change-Id: I95a42162c218dcdbaf3b5c4504ca1503b021e758
2017-05-12 07:07:58 +00:00
Elliott Hughes
e7438df307 Merge "Fix "fastboot oem"." am: dbe9ab1074 am: c9d545855a am: 8bb2503c78
am: baaa08f277

Change-Id: I951925bfc58a1b1d59a4906fce34047e6026cc0c
2017-05-12 07:03:15 +00:00
Mark Salyzyn
5c16b22e95 Merge "logd: validate and fill in socket credentials" am: 17254f59a2 am: 1423041905 am: b3b67adafd
am: 28034ce8ab

Change-Id: Ib06753d315d5e656a7800377aa6209f86ef7135a
2017-05-12 07:01:42 +00:00
Mark Salyzyn
6052721fb2 Merge "logcat: test: inject for *.event_tag_filter" am: 2841b4efe0 am: ed1e53fc77 am: 9a2b70a7c8
am: 654b6eff04

Change-Id: Ia8093b804ec7655fe1f2b19b62bc276a152c8e99
2017-05-12 07:01:18 +00:00
Renaud Paquay
b8e6c565c3 Merge "Fix uninitialized member variable" am: 46bb1ffa8a am: 9cf71d784e am: c134530c37
am: 1033781b10

Change-Id: Ibd9b0fa078a39868049c401e400fe94ef9ef690d
2017-05-12 07:00:51 +00:00