Commit graph

48817 commits

Author SHA1 Message Date
Suren Baghdasaryan
6450412d8f Merge "libprocessgroup: convert Json::Value to const refs" am: 6ad4eb3519 am: 29b5a37e6d
am: 980aaa027e

Change-Id: I6923911c9a645778cc852ca7c08afe9c03b67ba0
2019-03-01 10:32:10 -08:00
Suren Baghdasaryan
949692c6a7 Merge "Add vendor cgroups and task_profiles support" am: 3af39f36cc am: 6f8eee612c
am: c6ee857075

Change-Id: I0dd92817ee12509e3e26d005bf28229292cc3246
2019-03-01 10:30:30 -08:00
Mark Salyzyn
775b758d94 Merge "bootstat: add salyzyn as owner" am: 8da7a1e6fd am: 8138593f5a
am: c919bafa3d

Change-Id: Icfbd3a667b8fd20e9676efa02ef537ee0ff2a20f
2019-03-01 10:28:51 -08:00
Suren Baghdasaryan
980aaa027e Merge "libprocessgroup: convert Json::Value to const refs" am: 6ad4eb3519
am: 29b5a37e6d

Change-Id: I6ea37a7ebf7f3df2827e25b55c6334265c555542
2019-03-01 10:16:17 -08:00
Suren Baghdasaryan
c6ee857075 Merge "Add vendor cgroups and task_profiles support" am: 3af39f36cc
am: 6f8eee612c

Change-Id: Ic8d9ddc189bd2b2370b7e13f1e1fd3a8ea86914d
2019-03-01 10:14:39 -08:00
Mark Salyzyn
c919bafa3d Merge "bootstat: add salyzyn as owner" am: 8da7a1e6fd
am: 8138593f5a

Change-Id: Id3488bbe05d68cba7c61bacd8e28df1bab5dce37
2019-03-01 10:13:51 -08:00
Suren Baghdasaryan
29b5a37e6d Merge "libprocessgroup: convert Json::Value to const refs"
am: 6ad4eb3519

Change-Id: Ida562f432aa455ea1043161dc12e157c22a380fb
2019-03-01 10:10:07 -08:00
Suren Baghdasaryan
6f8eee612c Merge "Add vendor cgroups and task_profiles support"
am: 3af39f36cc

Change-Id: I4aec4ccdb0511f70a291b404432ff341c45522fb
2019-03-01 10:08:49 -08:00
Mark Salyzyn
8138593f5a Merge "bootstat: add salyzyn as owner"
am: 8da7a1e6fd

Change-Id: I1188d770df246691a9e75caab215f01cb552d279
2019-03-01 10:03:00 -08:00
Suren Baghdasaryan
6ad4eb3519 Merge "libprocessgroup: convert Json::Value to const refs" 2019-03-01 18:02:22 +00:00
Suren Baghdasaryan
3af39f36cc Merge "Add vendor cgroups and task_profiles support" 2019-03-01 18:01:39 +00:00
Mark Salyzyn
8da7a1e6fd Merge "bootstat: add salyzyn as owner" 2019-03-01 17:48:56 +00:00
Bowgo Tsai
5ccd84fd35 Merge "fs_mgr: fix fs_mgr avb_keys parsing problem" am: c8964edb7e am: b9eca0256c
am: cad8a4fbe9

Change-Id: Ib6b224bb5768d7b327d89341b1e832f97bb83e46
2019-03-01 07:53:07 -08:00
Bowgo Tsai
cad8a4fbe9 Merge "fs_mgr: fix fs_mgr avb_keys parsing problem" am: c8964edb7e
am: b9eca0256c

Change-Id: I6adf90ef2308d87e830fb43b5b763dca2f903a37
2019-03-01 07:48:22 -08:00
Bowgo Tsai
b9eca0256c Merge "fs_mgr: fix fs_mgr avb_keys parsing problem"
am: c8964edb7e

Change-Id: I5c032f678e49947e972a73335b40fdcc71187561
2019-03-01 07:41:48 -08:00
Treehugger Robot
c8964edb7e Merge "fs_mgr: fix fs_mgr avb_keys parsing problem" 2019-03-01 15:31:47 +00:00
Josh Gao
291f29613c Merge "adbd: fix a case where we can fail to join a thread." am: b530537d46 am: ace5a7c799
am: ee76606206

Change-Id: Ic09c38e919a1d1d12308504b4cbe2d388b94c42d
2019-03-01 02:30:19 -08:00
Josh Gao
b67e5cd91d Merge changes I4d351f56,Ib9e91157 am: 7669ea5a44 am: 68f136b407
am: a7140a1222

Change-Id: I403b2d6c59dcc16a8853ffccdc40eba5984699f4
2019-03-01 02:29:03 -08:00
Dima Zavin
c2ae6003b7 Merge changes Ia3bba21c,I0ffc159b am: 83d9b680f5 am: 0bb3fd4dbb
am: ce8af7f891

Change-Id: I6acc9f7eda949e21974a15ecb86409e3c5559861
2019-03-01 02:28:02 -08:00
Josh Gao
ee76606206 Merge "adbd: fix a case where we can fail to join a thread." am: b530537d46
am: ace5a7c799

Change-Id: I99042d0d5e68dfb0a9ae63e78c9974c1c8d90fa2
2019-03-01 02:25:18 -08:00
Josh Gao
a7140a1222 Merge changes I4d351f56,Ib9e91157 am: 7669ea5a44
am: 68f136b407

Change-Id: Ie85a7e4c5a1c0f775ba766dfedc858183fc90175
2019-03-01 02:24:33 -08:00
Dima Zavin
ce8af7f891 Merge changes Ia3bba21c,I0ffc159b am: 83d9b680f5
am: 0bb3fd4dbb

Change-Id: Ife426c31d9b3a88a3fe4ec6fbe6fabd95c1324e3
2019-03-01 02:23:48 -08:00
Josh Gao
ace5a7c799 Merge "adbd: fix a case where we can fail to join a thread."
am: b530537d46

Change-Id: Ie36cec5292121754944626db5c615e42fc276102
2019-03-01 02:21:42 -08:00
Josh Gao
68f136b407 Merge changes I4d351f56,Ib9e91157
am: 7669ea5a44

Change-Id: I4336eebc399cef4df8157a00f186379a2b2e376f
2019-03-01 02:20:59 -08:00
Dima Zavin
0bb3fd4dbb Merge changes Ia3bba21c,I0ffc159b
am: 83d9b680f5

Change-Id: I3dc5a30f40b3066f08bbefc43fca2066967a619f
2019-03-01 02:19:58 -08:00
Josh Gao
b530537d46 Merge "adbd: fix a case where we can fail to join a thread." 2019-03-01 10:16:46 +00:00
Josh Gao
7669ea5a44 Merge changes I4d351f56,Ib9e91157
* changes:
  adbd: tune USB read/write sizes and queue depths.
  adb: add benchmarks for sink/source.
2019-03-01 10:15:54 +00:00
Dima Zavin
83d9b680f5 Merge changes Ia3bba21c,I0ffc159b
* changes:
  fastboot: reset timeout if INFO is received during long commands
  fastboot: switch the timeout clock source to steady_clock
2019-03-01 10:12:39 +00:00
Suren Baghdasaryan
e681df44eb libprocessgroup: convert Json::Value to const refs
Convert Json::Value to const refs to prevent creation of a null member
if specified element does not exist. Fix variable naming in the parser
while we are at it.

Change-Id: I7dabfd1c73983b465984dd6c411c9fe48743a348
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-01 00:29:49 +00:00
Suren Baghdasaryan
05da67c390 Add vendor cgroups and task_profiles support
Vendors should be able to specify additional cgroups and task profiles
without changing system files. Add support for /vendor/etc/cgroups.json
and /vendor/etc/task_profiles.json files which will augment cgroups and
task profiles specified in /etc/cgroups.json and /etc/task_profiles.json
system files.

Bug: 124960615
Change-Id: I548c2e866b65c19856a3617d75b75dcd06f7d5b7
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
2019-03-01 00:29:37 +00:00
Josh Gao
5841a96afc adbd: tune USB read/write sizes and queue depths.
Reduce the operation sizes to sizes that are small enough that the
kernel will run the OOM killer to try to make them succeed. Compensate
for the smaller operation sizes by increasing the queue depth.

Bug: http://b/126582877
Test: benchmark_device.py
Change-Id: I4d351f56c8f83fea882614238cc3fec8ba1e9bf9
2019-02-28 15:53:48 -08:00
Josh Gao
b416f2252e adb: add benchmarks for sink/source.
Test: ./benchmark_device.py
Change-Id: Ib9e911574be3afa94efcfd9bc5be0a5cf7b9e2c0
2019-02-28 15:53:48 -08:00
Dima Zavin
6d46a4975e fastboot: reset timeout if INFO is received during long commands
As part of a refactor, commit db511207ed
added a timeout for receving responses for commands. Unfortunately,
the timeout is optimistic as to how quickly target devices can complete
such operations. Flash and erase commands can be quite slow on devices
with traditional flash chips. The fastboot protocol is already adept
at handling such cases because it allows for sending INFO packets during
these periods. We may receive one or more INFO packets during tehse long
operations. Every time we receive an INFO packet, it proves the remote
end is alive, but busy, which should reset our timeout timer.

Change-Id: Ia3bba21c497b22639b626d89711ecd4eb02504ed
Signed-off-by: Dima Zavin <dmitriyz@waymo.com>
2019-02-28 14:55:49 -08:00
Dima Zavin
a5b85a431e fastboot: switch the timeout clock source to steady_clock
Previously, system_clock was used for remote command timeouts
which can get disturbed by NTP adjustments (jumps).

Change-Id: I0ffc159bf34d12e8d3713044524114d60a6a45ca
Signed-off-by: Dima Zavin <dmitriyz@waymo.com>
2019-02-28 14:55:48 -08:00
Mark Salyzyn
fe85df1c0d bootstat: add salyzyn as owner
Test: none
Change-Id: I1d8874dfb5cc9efaed5ad85702a054f1c2a7766f
2019-02-28 14:10:34 -08:00
Josh Gao
e778b3ad71 adbd: fix a case where we can fail to join a thread.
Bug: http://b/126703621
Change-Id: I3061d24bbdc154ebf1f9e3f5a903f01382fa518f
2019-02-28 13:53:24 -08:00
Greg Kaiser
6917688a63 Merge "libfs_avb: Pass const string by reference" am: 949a561cfa am: 0e1a78266b
am: 54a2495dfb

Change-Id: Ie89e0cf2b182adbf0fea18a76c8f677d0b1cfbeb
2019-02-28 11:15:37 -08:00
Greg Kaiser
54a2495dfb Merge "libfs_avb: Pass const string by reference" am: 949a561cfa
am: 0e1a78266b

Change-Id: Ia1702371aa34c4ff36f27d41d4a0f02e121743a0
2019-02-28 11:10:28 -08:00
Greg Kaiser
0e1a78266b Merge "libfs_avb: Pass const string by reference"
am: 949a561cfa

Change-Id: I260eaae7e7b2951c5e7824618eb45e9ecac0879b
2019-02-28 11:06:18 -08:00
Treehugger Robot
949a561cfa Merge "libfs_avb: Pass const string by reference" 2019-02-28 18:53:27 +00:00
Rick Yiu
067c38acd9 Merge "Unify some text format in task_profiles.json" am: 51eba0944a am: 08faeaf126
am: 4dcddd2133

Change-Id: I7a188751c9351468332093bb9db32dc4ed11a750
2019-02-28 07:31:57 -08:00
Rick Yiu
4dcddd2133 Merge "Unify some text format in task_profiles.json" am: 51eba0944a
am: 08faeaf126

Change-Id: Ie56b500563ce7849f0ac0e6f1b09dd3db88649a0
2019-02-28 07:28:09 -08:00
Rick Yiu
08faeaf126 Merge "Unify some text format in task_profiles.json"
am: 51eba0944a

Change-Id: Ic76ff997a4c95c7959250fa9d0134a6233132856
2019-02-28 07:24:02 -08:00
Treehugger Robot
51eba0944a Merge "Unify some text format in task_profiles.json" 2019-02-28 15:15:20 +00:00
Greg Kaiser
4d6f4cc4fe libfs_avb: Pass const string by reference
Minor performance improvement for ValidatePublicKeyBlob().

Test: TreeHugger
Change-Id: I3498b529abedb8169d2488a2dc04cbd42cdb6f7d
2019-02-28 06:34:25 -08:00
Josh Gao
ae084ea9e4 Merge "adbd: limit the sizes of aio writes." am: 50cb647e7d am: c423d790b7
am: 57ba09aea9

Change-Id: Ib6c09a5dbddea768eed6fa4570067c4d8bb42045
2019-02-27 23:43:03 -08:00
Josh Gao
57ba09aea9 Merge "adbd: limit the sizes of aio writes." am: 50cb647e7d
am: c423d790b7

Change-Id: Ic71e98f05911f9b0a3e3142774addbc21c588ea0
2019-02-27 23:38:54 -08:00
Josh Gao
c423d790b7 Merge "adbd: limit the sizes of aio writes."
am: 50cb647e7d

Change-Id: I897cad37099350ebf0e7776bcdd4a95cb9a872e5
2019-02-27 23:34:44 -08:00
Josh Gao
50cb647e7d Merge "adbd: limit the sizes of aio writes." 2019-02-28 07:25:21 +00:00
Bowgo Tsai
d214b40685 fs_mgr: fix fs_mgr avb_keys parsing problem
We should check if the fs_mgr option starts with "avb_keys" before
"avb". Otherwise, it will treat "avb_keys" as "avb" fs_mgr option.

Bug: 112103720
Test: atest fs_mgr_unit_test

Change-Id: I88446222fa88e8ecfcd6f96d30ad4336ebe146a8
2019-02-28 10:37:37 +08:00