OSDN Git Service
Nick Desaulniers [Fri, 12 Aug 2016 04:43:50 +0000 (04:43 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" am:
79dcfb73a2 am:
b11c7eb720 am:
071dce8236
am:
75e79b874e
Change-Id: I219bb4f6d3c96e915ebc15dd13cdfd804d0df8ef
Nick Desaulniers [Fri, 12 Aug 2016 04:40:41 +0000 (04:40 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" am:
79dcfb73a2 am:
b11c7eb720
am:
071dce8236
Change-Id: I4a0e910ffba61181ab7c64f2226ea3cf147866c6
Nick Desaulniers [Fri, 12 Aug 2016 04:37:10 +0000 (04:37 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" am:
79dcfb73a2
am:
b11c7eb720
Change-Id: I29a9ea016d766c0d93a8361787532ab96ba4f0c3
Nick Desaulniers [Fri, 12 Aug 2016 04:34:13 +0000 (04:34 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow"
am:
79dcfb73a2
Change-Id: Ied99331e9d88c1c5bcffc050164f7727ae46ae0e
Treehugger Robot [Fri, 12 Aug 2016 04:27:37 +0000 (04:27 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow"
Chih-Hung Hsieh [Thu, 11 Aug 2016 23:56:23 +0000 (23:56 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf." am:
eddb94dc8b am:
9ebb388c20 am:
02ab7380d5
am:
2141b16751
Change-Id: Ifa41807026e10d6b5853bc5716aeef01f2770dfe
Chih-Hung Hsieh [Thu, 11 Aug 2016 23:53:22 +0000 (23:53 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf." am:
eddb94dc8b am:
9ebb388c20
am:
02ab7380d5
Change-Id: Ic57a2c0c21f76e38216bb3b36811311623289637
Chih-Hung Hsieh [Thu, 11 Aug 2016 23:49:52 +0000 (23:49 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf." am:
eddb94dc8b
am:
9ebb388c20
Change-Id: I929dd04d2325b6049021ed20b6bc0efba6844d18
Chih-Hung Hsieh [Thu, 11 Aug 2016 23:48:02 +0000 (23:48 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf."
am:
eddb94dc8b
Change-Id: I55d778ab19963fa33e4ff37ce24ed3dafe19a9cd
Treehugger Robot [Thu, 11 Aug 2016 23:33:53 +0000 (23:33 +0000)]
Merge "Fix google-explicit-constructor warnings in simpleperf."
Greg Kaiser [Thu, 11 Aug 2016 22:15:38 +0000 (22:15 +0000)]
Merge "ANRdaemon: Don't leak file in error case"
Nick Desaulniers [Wed, 10 Aug 2016 22:44:19 +0000 (15:44 -0700)]
procrank: fix bounds check to prevent heap overflow
Bug:
30774296
Change-Id: I44005caaa3cc17fe829f375a4cfeb5a464c97fbe
(cherry picked from commit
98a20cd1283b6ee029e871c0876815300475c40a)
Greg Kaiser [Thu, 11 Aug 2016 18:40:44 +0000 (11:40 -0700)]
ANRdaemon: Don't leak file in error case
Change-Id: Ie57e06fac90629dfadc04510b2468f17f68fce90
Chih-Hung Hsieh [Thu, 11 Aug 2016 18:06:00 +0000 (11:06 -0700)]
Fix google-explicit-constructor warnings in simpleperf.
Bug:
28341362
Change-Id: I35f2be2563cd1dcd5bdac25e8e801c08eb665db5
Test: build with WITH_TIDY=1
David Zeuthen [Thu, 11 Aug 2016 14:58:19 +0000 (14:58 +0000)]
Merge "avb: Add common verified boot tools and library." am:
17361eb23c am:
3cbfa8ce60 am:
d56bce161b
am:
a2a310a01e
Change-Id: I5e81564d860331db678a904c19c36d715186b56e
David Zeuthen [Thu, 11 Aug 2016 14:52:19 +0000 (14:52 +0000)]
Merge "avb: Add common verified boot tools and library." am:
17361eb23c am:
3cbfa8ce60
am:
d56bce161b
Change-Id: I9605e8281ca37f55c4d5446d34a1f448e151858d
David Zeuthen [Thu, 11 Aug 2016 14:48:48 +0000 (14:48 +0000)]
Merge "avb: Add common verified boot tools and library." am:
17361eb23c
am:
3cbfa8ce60
Change-Id: Icb6ace6b077b9ab9f015a6b497e0e4c13edc2f4c
David Zeuthen [Thu, 11 Aug 2016 14:45:50 +0000 (14:45 +0000)]
Merge "avb: Add common verified boot tools and library."
am:
17361eb23c
Change-Id: I2547f28561c7652ab25c17536f2dc522a6574bc5
David Zeuthen [Thu, 11 Aug 2016 14:40:41 +0000 (14:40 +0000)]
Merge "avb: Add common verified boot tools and library."
Josh Gao [Thu, 11 Aug 2016 01:44:33 +0000 (01:44 +0000)]
Merge commit '
3609371c949ec3c31fc88bb6a2231774fdeb25c1' into manual_merge_3609371 am:
cb47e738d9 am:
75e8b08479
am:
f50ca8a34f
Change-Id: I802aaf24496ba9e6f6e6ec126bfaf85d2c90c78d
Josh Gao [Thu, 11 Aug 2016 01:41:19 +0000 (01:41 +0000)]
Merge commit '
3609371c949ec3c31fc88bb6a2231774fdeb25c1' into manual_merge_3609371 am:
cb47e738d9
am:
75e8b08479
Change-Id: Id59ca38ad1f149f5e1d37e4a41893ab8d3d84f02
Josh Gao [Thu, 11 Aug 2016 01:37:50 +0000 (01:37 +0000)]
Merge commit '
3609371c949ec3c31fc88bb6a2231774fdeb25c1' into manual_merge_3609371
am:
cb47e738d9
Change-Id: Ic2f00a437e70f6067fbf3bed3e0d3c08c8c66604
Josh Gao [Thu, 11 Aug 2016 01:30:57 +0000 (18:30 -0700)]
Merge commit '
3609371c949ec3c31fc88bb6a2231774fdeb25c1' into manual_merge_3609371
Change-Id: I6b9c6b1d0281bfefcb8f664cfb0e535ae4c83647
Treehugger Robot [Thu, 11 Aug 2016 01:19:23 +0000 (01:19 +0000)]
Merge "alloc-stress: use nullptr for execl sentinel."
Nick Desaulniers [Thu, 11 Aug 2016 00:39:00 +0000 (00:39 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev am:
96eaef2510 am:
b8623df988
am:
1e1543d745
Change-Id: I8d4c9fff67f6f2efee99ba1e40302dd9d29f888d
Nick Desaulniers [Thu, 11 Aug 2016 00:39:00 +0000 (00:39 +0000)]
procrank: fix bounds check to prevent heap overflow am:
98a20cd128 am:
791e7afcfc
am:
b7e5a30c73
Change-Id: I907999ad92c55a851c67cdfe764759cce62d55e8
Nick Desaulniers [Thu, 11 Aug 2016 00:35:59 +0000 (00:35 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev am:
96eaef2510
am:
b8623df988
Change-Id: I01392ce5241c12d34f5abc1fce38360aac964cc3
Nick Desaulniers [Thu, 11 Aug 2016 00:35:58 +0000 (00:35 +0000)]
procrank: fix bounds check to prevent heap overflow am:
98a20cd128
am:
791e7afcfc
Change-Id: Ifec13ab874d4830a5af9ca05642d409818874ab0
Nick Desaulniers [Thu, 11 Aug 2016 00:32:59 +0000 (00:32 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev
am:
96eaef2510
Change-Id: I9dc98b9c1d27dcee8d74bdabf00422dc8dfd6abf
Nick Desaulniers [Thu, 11 Aug 2016 00:32:59 +0000 (00:32 +0000)]
procrank: fix bounds check to prevent heap overflow
am:
98a20cd128
Change-Id: I9e79ff3f83f36b68fa119d1b95f235a804cfb34e
Nick Desaulniers [Thu, 11 Aug 2016 00:24:09 +0000 (00:24 +0000)]
Merge "procrank: fix bounds check to prevent heap overflow" into nyc-mr1-dev
Josh Gao [Wed, 10 Aug 2016 23:59:40 +0000 (16:59 -0700)]
alloc-stress: use nullptr for execl sentinel.
Passing 0 as a sentinel for execl is incorrect, use nullptr instead.
Bug: http://b/
30793878
Change-Id: Ib05c9b509823442ef7c2174a2086b97c32df387b
Nick Desaulniers [Wed, 10 Aug 2016 22:44:19 +0000 (15:44 -0700)]
procrank: fix bounds check to prevent heap overflow
Bug:
30774296
Change-Id: I44005caaa3cc17fe829f375a4cfeb5a464c97fbe
Yabin Cui [Wed, 10 Aug 2016 00:41:31 +0000 (00:41 +0000)]
Merge "simpleperf: fix --pids option." am:
be52e2bb05 am:
1cc3b804f9 am:
7ffd3546c9
am:
f73929423d
Change-Id: Iae39f1061a80e5a9546cb4ba61fe71ea8830ed23
Yabin Cui [Wed, 10 Aug 2016 00:38:25 +0000 (00:38 +0000)]
Merge "simpleperf: fix --pids option." am:
be52e2bb05 am:
1cc3b804f9
am:
7ffd3546c9
Change-Id: I1e5ca640aea3c50dd07d2705e92e8f08fad3f20e
Yabin Cui [Wed, 10 Aug 2016 00:35:37 +0000 (00:35 +0000)]
Merge "simpleperf: fix --pids option." am:
be52e2bb05
am:
1cc3b804f9
Change-Id: I2d7f439d8c44897d2c2061d0828a802c039743c0
Yabin Cui [Wed, 10 Aug 2016 00:32:59 +0000 (00:32 +0000)]
Merge "simpleperf: fix --pids option."
am:
be52e2bb05
Change-Id: I0538f441405b4cb47579eec93177d993781577f1
Treehugger Robot [Wed, 10 Aug 2016 00:26:42 +0000 (00:26 +0000)]
Merge "simpleperf: fix --pids option."
Yabin Cui [Tue, 9 Aug 2016 22:43:09 +0000 (22:43 +0000)]
Merge "simpleperf: monitor and report cpu hotplug events." am:
f58a9a0db3 am:
1ec42a59f4 am:
87ff9b1434
am:
9051fc0271
Change-Id: I7ab5349c2835ebc598a93428eefbcb20addb4771
Yabin Cui [Tue, 9 Aug 2016 22:39:14 +0000 (22:39 +0000)]
Merge "simpleperf: monitor and report cpu hotplug events." am:
f58a9a0db3 am:
1ec42a59f4
am:
87ff9b1434
Change-Id: I5a0e6ec318e19e08e008c04a19a388fd8c237726
Yabin Cui [Tue, 9 Aug 2016 22:36:30 +0000 (22:36 +0000)]
Merge "simpleperf: monitor and report cpu hotplug events." am:
f58a9a0db3
am:
1ec42a59f4
Change-Id: I589c3fedf66d298800c1b97ef6e980a972b70696
Yabin Cui [Tue, 9 Aug 2016 22:33:34 +0000 (22:33 +0000)]
Merge "simpleperf: monitor and report cpu hotplug events."
am:
f58a9a0db3
Change-Id: Ia4307a3f16bc38e422c2148d4ee798cf38a393d6
Treehugger Robot [Tue, 9 Aug 2016 22:24:14 +0000 (22:24 +0000)]
Merge "simpleperf: monitor and report cpu hotplug events."
John Reck [Tue, 9 Aug 2016 21:56:12 +0000 (21:56 +0000)]
Fix binderAddInts benchmark am:
187816e579 am:
c66c0d2a9c
am:
3ea8fa4dd8
Change-Id: I16408003fb4e3e3f4da161e937e3a8614b345a82
John Reck [Tue, 9 Aug 2016 21:52:40 +0000 (21:52 +0000)]
Fix binderAddInts benchmark am:
187816e579
am:
c66c0d2a9c
Change-Id: Id23ff75a175f0e9f25a7f78734705711191711a8
John Reck [Tue, 9 Aug 2016 21:50:01 +0000 (21:50 +0000)]
Fix binderAddInts benchmark
am:
187816e579
Change-Id: I5629093163fe4e58a5d09563aa47a5086e423833
John Reck [Tue, 9 Aug 2016 20:06:21 +0000 (13:06 -0700)]
Fix binderAddInts benchmark
Bug:
30765667
Restores the fork() that was missed in a refactor
causing the benchmark to no longer measure binder's
IPC performance.
Change-Id: Id79ab082f1d20e1d058f80bd43018c9737b8250b
Zhengyin Qian [Tue, 9 Aug 2016 19:56:16 +0000 (19:56 +0000)]
Fix lsof option in anrd script. am:
83208e51da
am:
44acf4ec09
Change-Id: Idec364e2ae5e70acca5d8a949ae9d7fd3fe8fabf
Zhengyin Qian [Tue, 9 Aug 2016 19:41:49 +0000 (19:41 +0000)]
Fix lsof option in anrd script.
am:
83208e51da
Change-Id: I7a8f5441c41bfca740855bf0a14249e38c7126d1
Yabin Cui [Mon, 8 Aug 2016 21:42:25 +0000 (14:42 -0700)]
simpleperf: fix --pids option.
--pids option was recognized as --tids because of logic
error. this patch fixes that and adds corresponding test.
Bug: http://b/
30736228
Change-Id: I0515fc7e03f29f821f7b0aa32c608cf250e87662
Test: run simpleperf_unit_test.
Zhengyin Qian [Tue, 9 Aug 2016 17:56:51 +0000 (10:56 -0700)]
Fix lsof option in anrd script.
Change-Id: Ib0043c51ed289469dbef33d9333b1e6113c3b23e
Yabin Cui [Mon, 8 Aug 2016 23:29:35 +0000 (23:29 +0000)]
Merge "simpleperf: fix test record_cmd.duration_option." am:
8cd939bd7a am:
e1e462b9f2 am:
fec0c06270
am:
39a88c0d10
Change-Id: I7a84487c5190a2430c27525b6fe1754693b3ea43
Yabin Cui [Mon, 8 Aug 2016 23:03:38 +0000 (23:03 +0000)]
Merge "simpleperf: fix test record_cmd.duration_option." am:
8cd939bd7a am:
e1e462b9f2
am:
fec0c06270
Change-Id: I34d915008240703b0cb208804d4ce7a9ab34b42a
Yabin Cui [Mon, 8 Aug 2016 22:53:30 +0000 (22:53 +0000)]
Merge "simpleperf: fix test record_cmd.duration_option." am:
8cd939bd7a
am:
e1e462b9f2
Change-Id: I8e239553d378c5f1c1500551562f72bf5a562ee1
Yabin Cui [Mon, 8 Aug 2016 22:48:31 +0000 (22:48 +0000)]
Merge "simpleperf: fix test record_cmd.duration_option."
am:
8cd939bd7a
Change-Id: If85f536e10b5533365333a0e7b6e9bf22b83c822
Treehugger Robot [Mon, 8 Aug 2016 22:44:23 +0000 (22:44 +0000)]
Merge "simpleperf: fix test record_cmd.duration_option."
Nancy Zheng [Mon, 8 Aug 2016 22:31:59 +0000 (22:31 +0000)]
Fix missing pipe in ANRdaemon. am:
95c00594e5
am:
2061bef855
Change-Id: I9257f9a851e8bcf5969b9df6f798e7ef07728044
Nancy Zheng [Mon, 8 Aug 2016 22:20:06 +0000 (22:20 +0000)]
Fix missing pipe in ANRdaemon.
am:
95c00594e5
Change-Id: I9ec4af8770b8ae5c6ff3d94e6502464ff23a72ee
Yabin Cui [Mon, 8 Aug 2016 21:51:48 +0000 (14:51 -0700)]
simpleperf: fix test record_cmd.duration_option.
The test should write perf.data to a temporary file, because
the test may not have permission to write perf.data in
current directory.
Bug: http://b/
30405638
Change-Id: Iff4ac7ea014f29e58146ad79c8dc3b0abcdb8d41
Test: run simpleperf_unit_test.
Josh Gao [Mon, 8 Aug 2016 18:41:52 +0000 (18:41 +0000)]
Merge "Fix references to libcrypto_utils_static." am:
879a2c8fa0 am:
8b2ebbc4cf am:
4319bd92ad
am:
8d88f076f6
Change-Id: I827024bd59d161c13e54a7ecc49714abf3cfd802
Josh Gao [Mon, 8 Aug 2016 18:39:25 +0000 (18:39 +0000)]
Merge "Fix references to libcrypto_utils_static." am:
879a2c8fa0 am:
8b2ebbc4cf
am:
4319bd92ad
Change-Id: I674655ae677573f4981b4cdeff6ee8849ba8fef5
Josh Gao [Mon, 8 Aug 2016 18:36:20 +0000 (18:36 +0000)]
Merge "Fix references to libcrypto_utils_static." am:
879a2c8fa0
am:
8b2ebbc4cf
Change-Id: I3e649cea60b756a3abc83898873e8aa7fba5ea11
Josh Gao [Mon, 8 Aug 2016 18:33:53 +0000 (18:33 +0000)]
Merge "Fix references to libcrypto_utils_static."
am:
879a2c8fa0
Change-Id: I0a3d2c1f73a93ad3a34e4d4588ad95f3be33f7a8
Josh Gao [Mon, 8 Aug 2016 18:29:10 +0000 (18:29 +0000)]
Merge "Fix references to libcrypto_utils_static."
Chih-hung Hsieh [Mon, 8 Aug 2016 17:02:21 +0000 (17:02 +0000)]
Merge "Fix google-explicit-constructor warnings in perfprofd." am:
f5f54b5160 am:
e38deacab6 am:
a0d5084130
am:
e63781b83c
Change-Id: I2963bea1ff9851634941f8489838cd57d3051f17
Chih-Hung Hsieh [Mon, 8 Aug 2016 16:58:52 +0000 (16:58 +0000)]
Merge "Fix google-explicit-constructor warnings in perfprofd." am:
f5f54b5160 am:
e38deacab6
am:
a0d5084130
Change-Id: I4c48af7e602feaf85e527aecfc62a76eb47a7481
Chih-hung Hsieh [Mon, 8 Aug 2016 16:55:22 +0000 (16:55 +0000)]
Merge "Fix google-explicit-constructor warnings in perfprofd." am:
f5f54b5160
am:
e38deacab6
Change-Id: Ibbb1c9f7b65b96831b0d02be2aa911d98c0e4259
Chih-Hung Hsieh [Mon, 8 Aug 2016 16:52:24 +0000 (16:52 +0000)]
Merge "Fix google-explicit-constructor warnings in perfprofd."
am:
f5f54b5160
Change-Id: If2eb28db00b71a8b6dfdecdc3e3bdf5abcacdb80
Chih-hung Hsieh [Mon, 8 Aug 2016 16:40:07 +0000 (16:40 +0000)]
Merge "Fix google-explicit-constructor warnings in perfprofd."
Nancy Zheng [Sat, 6 Aug 2016 01:48:20 +0000 (18:48 -0700)]
Fix missing pipe in ANRdaemon.
Change-Id: I1322ed51f0f1456ebfb8cbb1404772f7fc2bf840
Josh Gao [Fri, 5 Aug 2016 23:03:01 +0000 (16:03 -0700)]
Fix references to libcrypto_utils_static.
Bug: http://b/
30708454
Change-Id: I471ed5e3be92d60a88bf75ed5e427f7e34eefbc3
Yabin Cui [Sat, 6 Aug 2016 00:00:16 +0000 (00:00 +0000)]
Merge "simpleperf: fix record file writer." am:
4c54842292 am:
f33ea38bf2 am:
3f4bb10df8
am:
00e89eb437
Change-Id: I85847827e237b5649003ce1b29b88b24168edcde
Yabin Cui [Fri, 5 Aug 2016 23:54:50 +0000 (23:54 +0000)]
Merge "simpleperf: fix record file writer." am:
4c54842292 am:
f33ea38bf2
am:
3f4bb10df8
Change-Id: I58b6fb3b5095d6d0a725f8334e84d96cb62180fd
Yabin Cui [Fri, 5 Aug 2016 23:51:45 +0000 (23:51 +0000)]
Merge "simpleperf: fix record file writer." am:
4c54842292
am:
f33ea38bf2
Change-Id: I5d4f25b6f0b70491d6e7381ac140ce0744bfde8c
Yabin Cui [Fri, 5 Aug 2016 23:48:20 +0000 (23:48 +0000)]
Merge "simpleperf: fix record file writer."
am:
4c54842292
Change-Id: Id7e992b40120f0ca2f9763b38ca0a18fbb6786a2
Treehugger Robot [Fri, 5 Aug 2016 23:43:31 +0000 (23:43 +0000)]
Merge "simpleperf: fix record file writer."
Yabin Cui [Fri, 5 Aug 2016 23:42:19 +0000 (23:42 +0000)]
Merge "simpleperf: allow --duration option when executing child command." am:
4b97e8e71f am:
bf3cd37e34 am:
3e49c11b59
am:
dbcf435e20
Change-Id: If39aede0cfe8f8fb9eac2c33be3747214d3924c3
Yabin Cui [Fri, 5 Aug 2016 23:31:27 +0000 (23:31 +0000)]
Merge "simpleperf: allow --duration option when executing child command." am:
4b97e8e71f am:
bf3cd37e34
am:
3e49c11b59
Change-Id: I1e42bb09bd9eb21ff7b36e3059b5cc4908cd8b14
Yabin Cui [Fri, 5 Aug 2016 23:28:18 +0000 (23:28 +0000)]
Merge "simpleperf: allow --duration option when executing child command." am:
4b97e8e71f
am:
bf3cd37e34
Change-Id: I77ed25e47f6dc3d3e0d366f30aa1db0040727382
Yabin Cui [Fri, 5 Aug 2016 23:25:30 +0000 (23:25 +0000)]
Merge "simpleperf: allow --duration option when executing child command."
am:
4b97e8e71f
Change-Id: I98f11a1fa3bab4c1754e76fc0d82b39a5225205b
Yabin Cui [Fri, 5 Aug 2016 22:31:33 +0000 (15:31 -0700)]
simpleperf: fix record file writer.
When running `run-as [package_name] ./simpleperf record...` on device,
simpleperf doesn't have permission to create temporary file in
/data/local/tmp. So create temporary files in the same directory
as perf.data instead.
Bug: http://b/
30649868
Change-Id: I48178d4eb421be8d8636721ac3b29b98fa673b5d
Test: run simpleperf_unit_test.
Treehugger Robot [Fri, 5 Aug 2016 22:48:05 +0000 (22:48 +0000)]
Merge "simpleperf: allow --duration option when executing child command."
David Zeuthen [Wed, 27 Jul 2016 21:58:40 +0000 (17:58 -0400)]
avb: Add common verified boot tools and library.
This code is originally from the Brillo project but has been adapted for
use in all of Android. It consists of a tool - avbtool - for working
with images (e.g. boot.img, system.img). See the README file for how
it's integrated into the Android build system and how to enable it.
The main job of avbtool is to create vbmeta.img which is the
top-level object for verified boot. This image is designed to go into
the vbmeta partition (or, if using A/B, the slot in question
e.g. vbmeta_a or vbmeta_b) and be of minimal size (for out-of-band
updates). The vbmeta image is cryptographically signed and contains
verification data (e.g. cryptographic digests) for verifying boot.img,
system.img, and other partitions/images.
The vbmeta image can also contain references to other partitions where
verification data is stored as well as a public key indicating who
should sign the verification data. This indirection provides
delegation, that is, it allows a 3rd party to control content on a given
partition by including the public key said 3rd party is using to sign
the data with, in vbmeta.img. By design, this authority can be easily
revoked by simply updating vbmeta.img with new descriptors for the
partition in question.
Storing signed verification data on other images - for example
boot.img and system.img - is also done with avbtool.
In addition to avbtool, a library - libavb - is provided. This library
performs all verification on the device side e.g. it starts by loading
the vbmeta partition, checks the signature, and then goes on to load
the boot partition for verification.
The libavb library is intended to be used in both boot loaders and
inside Android. It has a simple abstraction for system dependencies
(see libavb/avb_sysdeps.h) as well as operations that the boot loader
or OS is expected to implement (see libavb/avb_ops.h).
In addition to handling verified boot, libavb will in the future be
extended to handle A/B selection in a way that can be used in the
device's fastboot implementation, its boot loader, and its
boot_control HAL implementation. This will be implemented in a future
CL.
BUG=
29414516
TEST=Unit tests for avbtool and libavb + unit tests pass.
Change-Id: I69ee86878e21fa718faccfc56eb0b1f40707d847
Yabin Cui [Fri, 5 Aug 2016 21:50:37 +0000 (14:50 -0700)]
simpleperf: allow --duration option when executing child command.
Previously --duration option can't be used while executing child
command, mainly because we use `sleep XX` child command to implement
--duration option. By using libevent, the limit doesn't exist.
Bug: http://b/
30405638
Change-Id: Iea1953ecf3aca48e75fb74f048ed04ad5b168630
Test: run simpleperf_unit_test.
Yabin Cui [Fri, 5 Aug 2016 21:46:42 +0000 (21:46 +0000)]
Merge "simpleperf: remove cpu option tests." am:
9ec492a979 am:
768751400d am:
fb4182f3c8
am:
06c44e896c
Change-Id: I7609d893238f43c5a28b49392333cc8249d818eb
Yabin Cui [Fri, 5 Aug 2016 21:46:42 +0000 (21:46 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording." am:
4640256028 am:
0c70b9c404 am:
936870a962
am:
4873bece07
Change-Id: I6d9518e1de8bc64e60cfbd35d08c2ad949b97b63
Yabin Cui [Fri, 5 Aug 2016 20:41:14 +0000 (13:41 -0700)]
simpleperf: monitor and report cpu hotplug events.
This patch is to measure whether we need to handle cpu hotplug events.
Bug: http://b/
29245608
Test: run simpleperf_unit_test.
Change-Id: I031c6ddc99aeae66be10b4c586541accd622ceda
Yabin Cui [Fri, 5 Aug 2016 21:43:42 +0000 (21:43 +0000)]
Merge "simpleperf: remove cpu option tests." am:
9ec492a979 am:
768751400d
am:
fb4182f3c8
Change-Id: Id9c8cc8c15ac1524d52d2d2713c01184efba5b3c
Yabin Cui [Fri, 5 Aug 2016 21:43:42 +0000 (21:43 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording." am:
4640256028 am:
0c70b9c404
am:
936870a962
Change-Id: I38c74675cade62c38bf36c66234115be8af271b4
Yabin Cui [Fri, 5 Aug 2016 21:41:13 +0000 (21:41 +0000)]
Merge "simpleperf: remove cpu option tests." am:
9ec492a979
am:
768751400d
Change-Id: I94e2a2d98509932928a8f41c2379821a4032d54b
Yabin Cui [Fri, 5 Aug 2016 21:41:12 +0000 (21:41 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording." am:
4640256028
am:
0c70b9c404
Change-Id: I8328e12896e8a5742ceedecb5a9437e914c00099
Yabin Cui [Fri, 5 Aug 2016 21:38:26 +0000 (21:38 +0000)]
Merge "simpleperf: remove cpu option tests."
am:
9ec492a979
Change-Id: I9ed4fc32a7ba7030c48d4d5b7d7a905caed01e6d
Yabin Cui [Fri, 5 Aug 2016 21:38:25 +0000 (21:38 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording."
am:
4640256028
Change-Id: I55f89fb43605143e8c2f2d1931a40b4a495d1ad6
Treehugger Robot [Fri, 5 Aug 2016 21:35:49 +0000 (21:35 +0000)]
Merge "simpleperf: remove cpu option tests."
Treehugger Robot [Fri, 5 Aug 2016 21:31:29 +0000 (21:31 +0000)]
Merge "simpleperf: reduce Record construction overhead while recording."
Yabin Cui [Fri, 5 Aug 2016 20:54:42 +0000 (20:54 +0000)]
Merge "simpleperf: fix arm unwinding." am:
96bf860b97 am:
1f8b56c75a am:
194863e4f5
am:
3a934b06f6
Change-Id: I1abe5add270d692c013d5027bd1839f23c5c7398
Yabin Cui [Fri, 5 Aug 2016 19:11:26 +0000 (12:11 -0700)]
simpleperf: remove cpu option tests.
The cpu option tests are flaky because Cpu 0 can be offlined.
Bug: http://b/
30389972
Change-Id: Ie9f57dcde957be245167c957eb029ab37496471e
Test: run simpleperf cts test.
Yabin Cui [Fri, 5 Aug 2016 20:44:39 +0000 (20:44 +0000)]
Merge "simpleperf: fix arm unwinding." am:
96bf860b97 am:
1f8b56c75a
am:
194863e4f5
Change-Id: I9a8db25aa30074b1e0348cecc8b16b0417906408
Yabin Cui [Fri, 5 Aug 2016 20:41:08 +0000 (20:41 +0000)]
Merge "simpleperf: fix arm unwinding." am:
96bf860b97
am:
1f8b56c75a
Change-Id: Ie3f841bf8b34107e9667bc09a52ad1918ccd2e5a
Yabin Cui [Fri, 5 Aug 2016 20:37:44 +0000 (20:37 +0000)]
Merge "simpleperf: fix arm unwinding."
am:
96bf860b97
Change-Id: Ia652107bc88d04012d3d16bc146ff98bc3bc15cf