OSDN Git Service
Yabin Cui [Thu, 16 Aug 2018 23:40:35 +0000 (16:40 -0700)]
python: run tests for both python and python3.
This is to reduce failures like
https://github.com/android-ndk/ndk/issues/740.
Also fix some places for python3.
Bug: none
Test: run test.py.
Change-Id: I751ccbc9940efa8727ec7b19710d452896049762
Yabin Cui [Thu, 16 Aug 2018 17:48:42 +0000 (17:48 +0000)]
Merge "simpleperf: fix binary_cache_builder.py."
Tianjie Xu [Thu, 16 Aug 2018 02:38:23 +0000 (02:38 +0000)]
Merge "Convert mkuserimg_mke2fs.sh to python"
Yabin Cui [Thu, 16 Aug 2018 00:01:18 +0000 (17:01 -0700)]
simpleperf: fix binary_cache_builder.py.
libc.so/libart.so on device has .symtab but not .debug_line. In this
case, we still want to replace it with the unstripped binary.
Bug: none
Test: run test.py.
Change-Id: I0308e7fafe1f41c2e57870cf72355dc8151ed9fd
Treehugger Robot [Thu, 16 Aug 2018 00:15:40 +0000 (00:15 +0000)]
Merge "simpleperf: support pids in app_profiler.py."
Tianjie Xu [Thu, 9 Aug 2018 07:19:10 +0000 (00:19 -0700)]
Convert mkuserimg_mke2fs.sh to python
The mkuserimg_mke2fs.sh was a shell script, which expects all the
arguments in order. This cl changes the script to python which leverages
python's argumentparser and unittest modules.
The script usage is unchanged; and this tool will be packed into the
otatools.zip in the follow up cls. Then we'll change the caller site
gradually; and remove the old shell script after that.
Bug:
112555072
Bug:
63866463
Test: run unit tests & build a userdata image
Change-Id: Ie6b687da3de31a3481363f01d2b5c12df91ca5ce
Yabin Cui [Wed, 15 Aug 2018 17:21:36 +0000 (10:21 -0700)]
simpleperf: support pids in app_profiler.py.
In app_profiler.py, add --pid option to monitor native processes,
add --tid option to monitor native threads, add --system_wide
option to monitor system wide.
Switch inferno.py to use --pid option in app_profiler.py. Because
the previous way of converting pid to program name doesn't work
well on system_server process.
Add tests in test.py.
Bug:
112146809
Test: run test.py.
Change-Id: Ifd6d9f50ed025f1aeed482cb92679de348f6af59
Yabin Cui [Wed, 15 Aug 2018 17:30:13 +0000 (17:30 +0000)]
Merge "simpleperf: add pid argument to inferno"
Wei Wang [Thu, 2 Aug 2018 19:26:10 +0000 (12:26 -0700)]
simpleperf: add pid argument to inferno
Bug:
112146809
Test: inferno.sh --pid 620
Change-Id: I99afe432a194bb8799e4633f0a651ff1be2354f5
(cherry picked from commit
6db1fa95d3d4e25c49d3e7b0224df45f521f1f90)
Chih-hung Hsieh [Wed, 15 Aug 2018 17:05:43 +0000 (17:05 +0000)]
Merge "Suppress google-runtime-int warning."
Treehugger Robot [Wed, 15 Aug 2018 00:40:28 +0000 (00:40 +0000)]
Merge "simpleperf: fix removing ART frames."
Yabin Cui [Tue, 14 Aug 2018 00:42:25 +0000 (17:42 -0700)]
simpleperf: fix removing ART frames.
ART frames can also exist before or after JITed Java methods.
Bug: none
Test: run report_html.py manually, and check that ART frames
Test: near JITed Java methods are removed.
Change-Id: I771cb7503bb62e8d0fc71167bfd887abe069554f
Treehugger Robot [Tue, 14 Aug 2018 19:35:46 +0000 (19:35 +0000)]
Merge "simpleperf: set kernel resources used for profiling on Android >=Q."
Treehugger Robot [Tue, 14 Aug 2018 18:12:07 +0000 (18:12 +0000)]
Merge "Enable -Wimplicit-fallthrough"
Yabin Cui [Mon, 13 Aug 2018 22:58:25 +0000 (15:58 -0700)]
simpleperf: set kernel resources used for profiling on Android >=Q.
On Android >=Q, some debug system properties are used to set max
sample freq, cpu percentage and kernel buffer size used for recording.
This patches uses these debug properties to set needed kernel resources.
To set cpu percentage used for recording, add --cpu-percent option.
Bug:
110706031
Test: run simpleperf_unit_test.
Change-Id: I532ce417099c5a39ae89bdadfe76e512241904dd
Tao Bao [Tue, 14 Aug 2018 17:42:52 +0000 (17:42 +0000)]
Merge "libfec: Use commonly used shared libraries."
Tao Bao [Tue, 14 Aug 2018 05:42:55 +0000 (22:42 -0700)]
libfec: Use commonly used shared libraries.
This helps reduce the size of libfec.so and the overall size of recovery
image, as those libs are already installed on device.
Bug:
112494634
Test: `m dist` with aosp_taimen-userdebug
Test: `m -j bootimage` with aosp_taimen-userdebug. Check the size of
`recovery/system/lib64/libfec.so`.
Change-Id: I1c82ba6dcbb6f184fd9826b838af665cbfc06891
George Burgess IV [Tue, 14 Aug 2018 05:41:12 +0000 (22:41 -0700)]
Enable -Wimplicit-fallthrough
We're trying to enable -Wimplicit-fallthrough throughout Android. This
warning requires an explicit annotation every time we fall through
intentionally.
Thank you for explicitly commenting your fallthroughs :)
Bug:
112564944
Test: Builds
Change-Id: Iae8081a9776562330dd4b94d1091893086c984ad
Treehugger Robot [Tue, 14 Aug 2018 00:54:55 +0000 (00:54 +0000)]
Merge "simpleperf: don't pull JIT symfiles on host."
Treehugger Robot [Mon, 13 Aug 2018 23:33:48 +0000 (23:33 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build
4949434."
Yabin Cui [Mon, 13 Aug 2018 23:26:19 +0000 (16:26 -0700)]
simpleperf: don't pull JIT symfiles on host.
Because they have been deleted at the end of recording.
Bug: none
Test: run binary_cache_builder.py manually.
Change-Id: I7eaa2596ab697b1e8c6dee3e5b9dc96ebc9037fe
Christopher Ferris [Mon, 13 Aug 2018 22:11:46 +0000 (22:11 +0000)]
Merge "Delete micro_bench."
Chih-Hung Hsieh [Mon, 13 Aug 2018 20:48:11 +0000 (13:48 -0700)]
Suppress google-runtime-int warning.
Bug:
112478838
Test: build with WITH_TIDY=1
Change-Id: I66c70192a0729243d99d1462fb3dcf59d6636212
Treehugger Robot [Mon, 13 Aug 2018 19:05:30 +0000 (19:05 +0000)]
Merge "Replace short with int16_t."
Yabin Cui [Mon, 13 Aug 2018 18:07:12 +0000 (11:07 -0700)]
simpleperf: update simpleperf prebuilts to build
4949434.
Taken from branch aosp-master.
Bug: none
Test: run test.py on linux.
Change-Id: I21893c9a88ae3bbd2182a847b0768090357ed07f
Chih-Hung Hsieh [Mon, 13 Aug 2018 17:31:02 +0000 (10:31 -0700)]
Replace short with int16_t.
Bug:
112478838
Test: build with WITH_TIDY=1
Change-Id: I6618efb1b005dd4194c010da9101d7899c40d30d
Treehugger Robot [Fri, 10 Aug 2018 15:24:29 +0000 (15:24 +0000)]
Merge "simpleperf: fix a type error."
Yabin Cui [Fri, 10 Aug 2018 01:16:53 +0000 (18:16 -0700)]
simpleperf: fix a type error.
Bug: none
Test: run simpleperf_unit_test on arm.
Change-Id: I7586810e84574e9beee38fd69c63497c24946da5
Treehugger Robot [Thu, 9 Aug 2018 20:23:06 +0000 (20:23 +0000)]
Merge "simpleperf: fix reading dynmaic symbols."
Yabin Cui [Thu, 9 Aug 2018 19:06:10 +0000 (12:06 -0700)]
simpleperf: fix reading dynmaic symbols.
Add a missing check when looking for a symbol's associated section.
Bug:
112405524
Test: manually add log in ReadSymbolTable() to make sure the
Test: section_end case works.
Test: run simpleperf_unit_test.
Change-Id: Ie75d3791086cf3d14dab0a763cfa92b4e73f82c5
Mathieu Chartier [Wed, 8 Aug 2018 17:39:48 +0000 (17:39 +0000)]
Merge "Move to using ClassAccessor"
Treehugger Robot [Wed, 8 Aug 2018 17:21:47 +0000 (17:21 +0000)]
Merge "perfprofd: Fix get_charging logic"
Mathieu Chartier [Wed, 8 Aug 2018 01:32:31 +0000 (18:32 -0700)]
Move to using ClassAccessor
In preparation for removal of ClassDataItemIterator.
Bug:
79758018
Test: make
Change-Id: I6c9e9e5eabcfcb785595d6c892b4167853823ebe
Yifan Hong [Tue, 7 Aug 2018 00:09:19 +0000 (17:09 -0700)]
perfprofd: Fix get_charging logic
getChargeStatus() can also return FULL for charging, so
test for that as well.
Change-Id: I611b687cfd9b65ef4ab2e0103d38116c9a893164
Fixes:
112184119
Test: perfprofd_test() has no errors related to get_charging()
Treehugger Robot [Tue, 7 Aug 2018 21:11:51 +0000 (21:11 +0000)]
Merge "Revert "Support Speck encryption.""
Christopher Ferris [Mon, 6 Aug 2018 18:14:27 +0000 (11:14 -0700)]
Delete micro_bench.
Bionic benchmarks (bionic/benchmarks) has replaced micro_bench.
Micro bench of memset:
micro_bench memset 8192 1
Bionic benchmarks equivalent:
bionic-benchmarks --bionic_extra="BM_string_memset AT_ONEBUF_MANUAL_ALIGN_0_SIZE_8192"
Micro bench of memcpy:
micro_bench memcpy 8192 1
Bionic benchmarks equivalent:
bionic-benchmarks --bionic_extra="BM_string_memcpy AT_TWOBUF_MANUAL_ALIGN1_0_ALIGN2_0_SIZE_8192"
Note that you will need to run the 32 bit or 64 bit version of bionic
benchmarks depending on what version of the library routines you are
benchmarking.
Bug:
26928775
Test: Builds.
Change-Id: I463151e9ed3dc722c201aa07728ec0a48ebcf15e
Greg Kaiser [Wed, 1 Aug 2018 19:47:48 +0000 (12:47 -0700)]
Revert "Support Speck encryption."
This is a partial revert of
commit
6a0fa62dc71157f85b24ed15e39ada277f9b5201.
Remove the Speck encryption support. It was eventually
decided not to allow Speck in Android P, so this code
is no longer needed and wasn't used outside of testing.
We retain the e4crypt_get_policy_flags() changes from original
commit, though.
Bug:
112009351
Test: Confirmed AES continues to work with FBE.
Change-Id: I53b091dd4c5392de7a00a8c168919fb55e527eaf
Xin Li [Tue, 7 Aug 2018 16:51:27 +0000 (16:51 +0000)]
Merge "Merge Android Pie into master"
Treehugger Robot [Tue, 7 Aug 2018 04:40:58 +0000 (04:40 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build
4934367."
Treehugger Robot [Tue, 7 Aug 2018 01:55:52 +0000 (01:55 +0000)]
Merge "simpleperf: use Addr2Nearestline in annotate.py."
Xin Li [Tue, 7 Aug 2018 00:27:10 +0000 (17:27 -0700)]
Merge Android Pie into master
Bug:
112104996
Change-Id: I8402a013c2121613d154a84655bc42d0ae7150bf
Yabin Cui [Mon, 6 Aug 2018 23:36:55 +0000 (16:36 -0700)]
simpleperf: update simpleperf prebuilts to build
4934367.
Taken from branch aosp-master.
Test: run test.py.
Change-Id: If0c2d3c95b9dd43d21997dab42f42483dbe0a456
Treehugger Robot [Mon, 6 Aug 2018 23:58:52 +0000 (23:58 +0000)]
Merge "simpleperf: add test for a kernel bug making zero dyn_size."
Yabin Cui [Mon, 6 Aug 2018 23:18:23 +0000 (16:18 -0700)]
simpleperf: use Addr2Nearestline in annotate.py.
It contains below changes:
1. Move SourceFileSearcher from report_html.py to utils.py.
2. Use Addr2Nearestline and SourceFileSearcher to replace code finding
source lines and files in annotate.py.
3. Use Addr2Nearestline to replace code finding source lines in
pprof_proto_generator.py.
4. Update tests for SourceFileSearcher and Addr2Nearestline.
5. Add options to run selected tests.
Bug: none
Test: run test.py.
Change-Id: Ifed8b798b243f344ac9baab478862ac8b3bb56f4
Neil Fuller [Sun, 5 Aug 2018 15:12:52 +0000 (08:12 -0700)]
Merge "Make host targets use non-repackaged targets"
am:
6ba2231930
Change-Id: I0c03213cd351080d6bf7cbab4e6e49b83bc2d2b9
Treehugger Robot [Sun, 5 Aug 2018 15:05:48 +0000 (15:05 +0000)]
Merge "Make host targets use non-repackaged targets"
Yabin Cui [Fri, 3 Aug 2018 23:09:18 +0000 (16:09 -0700)]
Merge "simpleperf: make scripts executable."
am:
41f7122918
Change-Id: I35247feb71d016aba762b98bf6cbaa5780110d40
Yabin Cui [Fri, 3 Aug 2018 23:03:35 +0000 (16:03 -0700)]
Merge "simpleperf: remove an improper error message."
am:
d8dd8edbd6
Change-Id: I47eb9cf0ade388ee7aaf4be9655ddbbea52e3d92
Treehugger Robot [Fri, 3 Aug 2018 21:54:15 +0000 (21:54 +0000)]
Merge "simpleperf: make scripts executable."
Treehugger Robot [Fri, 3 Aug 2018 21:51:07 +0000 (21:51 +0000)]
Merge "simpleperf: remove an improper error message."
Yabin Cui [Fri, 3 Aug 2018 21:16:51 +0000 (14:16 -0700)]
simpleperf: add test for a kernel bug making zero dyn_size.
Also fix a tiny problem in support_mmap2 test.
Bug:
22612370
Test: run simpleperf_unit_test, it successes on walleye,
Test: and fails on bullhead (which has 3.10 kernel).
Change-Id: I1af69a05446ddb61af6c24b34dc689afac8ee71d
Andreas Gampe [Fri, 3 Aug 2018 19:51:46 +0000 (12:51 -0700)]
Merge "Perfprofd: Add option dump"
am:
d4e3b2199b
Change-Id: Icda6762aa4551ce1fb3038ffa2e0905d701780d5
Treehugger Robot [Fri, 3 Aug 2018 19:40:58 +0000 (19:40 +0000)]
Merge "Perfprofd: Add option dump"
Yabin Cui [Fri, 3 Aug 2018 18:59:55 +0000 (11:59 -0700)]
simpleperf: make scripts executable.
To run scripts using `./xxx.py` instead of `python xxx.py`.
Bug: none
Test: run scripts using `./xxx.py`.
Change-Id: I0fab340ca92a6345c01474c0de2ff3a0047177c5
Yabin Cui [Fri, 3 Aug 2018 18:47:23 +0000 (11:47 -0700)]
simpleperf: remove an improper error message.
Parsing a map using extracted classes.dex in apk file triggers the
error message. But it isn't an error.
Bug: none
Test: run simpleperf_unit_test.
Change-Id: I6658ab410579cc95d40d6383a761035444437561
Elliott Hughes [Fri, 3 Aug 2018 17:54:29 +0000 (10:54 -0700)]
Merge "fgetc(3) returns int."
am:
3dafe0b635
Change-Id: I68145812813f157121f6f9ca17a14edba0d4fafe
Sami Tolvanen [Fri, 3 Aug 2018 17:54:03 +0000 (10:54 -0700)]
Merge "libfec: fix a check for read-only mode"
am:
497886ab9f
Change-Id: I9e09aa7e38a6b16222cd4ecbbf14fbb23d0c6dca
Treehugger Robot [Fri, 3 Aug 2018 17:52:57 +0000 (17:52 +0000)]
Merge "fgetc(3) returns int."
Treehugger Robot [Fri, 3 Aug 2018 17:42:10 +0000 (17:42 +0000)]
Merge "libfec: fix a check for read-only mode"
Tianjie Xu [Fri, 3 Aug 2018 17:41:19 +0000 (10:41 -0700)]
Merge "Change the interface parameter from off_t to uint64_t"
am:
ec4e2d2667
Change-Id: Ib75623509ca990b46bb5040fd4aeba6c5b8698c7
Tianjie Xu [Fri, 3 Aug 2018 17:26:55 +0000 (17:26 +0000)]
Merge "Change the interface parameter from off_t to uint64_t"
Sami Tolvanen [Thu, 2 Aug 2018 18:13:15 +0000 (11:13 -0700)]
libfec: fix a check for read-only mode
O_RDONLY is defined as zero, which makes the test for it incorrect. As
we don't allow O_WRONLY when opening files, it's sufficient to test for
O_RDWR instead.
Bug:
112147169
Test: tested that corrupt zero blocks are not read without O_RDWR
Change-Id: I2328cda4285f4c9daf98dffa2a6602c9db5ad539
Elliott Hughes [Thu, 2 Aug 2018 23:29:22 +0000 (16:29 -0700)]
fgetc(3) returns int.
The real WTF here might be that we copy an entire file byte-by-byte if
we ever take this path...
Bug: http://b/
112146629
Bug: https://www.viva64.com/en/b/0579/
Test: builds
Change-Id: I8bfe6befa3851a839b499ac222c30d26a82bc075
Tianjie Xu [Thu, 2 Aug 2018 00:06:01 +0000 (17:06 -0700)]
Change the interface parameter from off_t to uint64_t
Therefore, users won't need to set the FILE_OFFSET_BITS=64
Test: unit tests pass
Change-Id: I6dbd756d598ee16282b10ae554ca852d61a6b809
David Anderson [Thu, 2 Aug 2018 19:31:29 +0000 (12:31 -0700)]
Merge "lpmake: Pass the block size to MetadataBuilder."
am:
1b184b4451
Change-Id: I947f809c536ff35d392e8d925bb280ea1dce61ce
Treehugger Robot [Thu, 2 Aug 2018 19:20:58 +0000 (19:20 +0000)]
Merge "lpmake: Pass the block size to MetadataBuilder."
Yabin Cui [Thu, 2 Aug 2018 17:10:08 +0000 (10:10 -0700)]
Merge "simpleperf: add test for a kernel bug."
am:
604b95c653
Change-Id: I23bad6ab69665da04307afeda47529a3e38f78db
Yabin Cui [Thu, 2 Aug 2018 17:01:07 +0000 (17:01 +0000)]
Merge "simpleperf: add test for a kernel bug."
David Anderson [Thu, 2 Aug 2018 16:44:50 +0000 (09:44 -0700)]
lpmake: Pass the block size to MetadataBuilder.
Bug:
79173901
Test: lpmake builds
Change-Id: I6e7e5f24c5819250f82d100f47aa15938f7cb039
David Anderson [Thu, 2 Aug 2018 16:13:10 +0000 (09:13 -0700)]
Merge "partition_tools: Use ResizePartition instead of GrowPartition."
am:
ab785445ce
Change-Id: Ie9c5e62684050dae71eef03d5b306d7826f8bdeb
Treehugger Robot [Thu, 2 Aug 2018 16:01:24 +0000 (16:01 +0000)]
Merge "partition_tools: Use ResizePartition instead of GrowPartition."
David Anderson [Wed, 1 Aug 2018 17:04:22 +0000 (10:04 -0700)]
partition_tools: Use ResizePartition instead of GrowPartition.
Bug:
79173901
Test: N/A
Change-Id: I1b13883f5089a00e7c4637ebb2e5bdb44a50d11e
Sandeep Patil [Wed, 1 Aug 2018 02:17:52 +0000 (19:17 -0700)]
Merge "libfec: skip over verity tree when reading metadata from filesystem."
am:
b9d29fa84b
Change-Id: Ia0701405840739cd8b0537cc15c272f3a24be3b5
Treehugger Robot [Wed, 1 Aug 2018 02:09:23 +0000 (02:09 +0000)]
Merge "libfec: skip over verity tree when reading metadata from filesystem."
Yabin Cui [Tue, 31 Jul 2018 23:43:18 +0000 (16:43 -0700)]
simpleperf: add test for a kernel bug.
Bug:
111520437
Test: run simpleperf_unit_test, it was passed on
Test: on walleye, and caused kernel panic on bullhead and angler.
Change-Id: I848943e9a49b15d69940f5a1615c76bd336d95c4
Sandeep Patil [Tue, 31 Jul 2018 20:54:28 +0000 (13:54 -0700)]
libfec: skip over verity tree when reading metadata from filesystem.
If partition size > filesystem image, we must skip over the verity
tree appended to the filesystem image when trying to find the verity
metadata.
Bug:
112046449
Test: Enable verity for hikey960 (system partition size = ~2 x
filesystem size) and boot.
Change-Id: Ia6cdbc0f35a98fdfa1fb4677951ae5c829cabb0f
Signed-off-by: Sandeep Patil <sspatil@google.com>
Andreas Gampe [Mon, 30 Jul 2018 18:26:24 +0000 (11:26 -0700)]
Perfprofd: Add option dump
Dump an active profiling configuration in cmd perfprofd dump.
Bug:
73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I6f285b1d246126efd196ec26ef556d0415fb4373
David Anderson [Sat, 28 Jul 2018 22:57:59 +0000 (15:57 -0700)]
Merge "Build partition_tools with liblp as a shared library."
am:
fde6f72cf0
Change-Id: Ic0b5642d21ecbff28683c3f2d6a9b82c1e6fce8d
Treehugger Robot [Sat, 28 Jul 2018 22:52:23 +0000 (22:52 +0000)]
Merge "Build partition_tools with liblp as a shared library."
Andreas Gampe [Sat, 28 Jul 2018 18:06:45 +0000 (11:06 -0700)]
Merge "Perfprofd: Only pick up FUNC symbols"
am:
e1bd9e74b0
Change-Id: Ib8fe308a46c0a5e93a09c75892b995b9ade5661e
Treehugger Robot [Sat, 28 Jul 2018 17:59:35 +0000 (17:59 +0000)]
Merge "Perfprofd: Only pick up FUNC symbols"
Andreas Gampe [Sat, 28 Jul 2018 00:46:38 +0000 (17:46 -0700)]
Perfprofd: Only pick up FUNC symbols
Lately, more marker symbols are emitted, and mess up general
handling. Only pick up FUNC symbols.
Bug:
73175642
Test: mmma system/extras/perfprofd
Test: perfprofd_test
Change-Id: I9d3c533aaa396aa8a2a46a65ea703eb498985ce8
David Anderson [Fri, 27 Jul 2018 23:14:36 +0000 (16:14 -0700)]
Build partition_tools with liblp as a shared library.
Bug:
79173901
Test: mmm partition_tools builds
Change-Id: Ib96867aeb0a2a3ad777c5017fbc882adeb41a129
Yabin Cui [Thu, 26 Jul 2018 19:50:08 +0000 (12:50 -0700)]
Merge "simpleperf: enforce clockid support in Android Q."
am:
8d81763715
Change-Id: Iec5fb44da069fe38968ccc5e91893091e2329d89
Yabin Cui [Thu, 26 Jul 2018 17:48:50 +0000 (17:48 +0000)]
Merge "simpleperf: enforce clockid support in Android Q."
Yabin Cui [Thu, 26 Jul 2018 00:20:52 +0000 (17:20 -0700)]
simpleperf: enforce clockid support in Android Q.
It is needed to merge JIT symfiles into records precisely.
Bug:
110923759
Test: run simpleperf_unit_test.
Change-Id: I676dc5ca40f12145760d59cd786e9ee538abd728
Yabin Cui [Wed, 25 Jul 2018 22:02:11 +0000 (15:02 -0700)]
Merge "simpleperf: support long callchain in report_html.py."
am:
0e5c69a63f
Change-Id: Ic7088f77cfcc79b5b1f24b9d48a0debf4c6219d9
Yabin Cui [Wed, 25 Jul 2018 21:53:52 +0000 (21:53 +0000)]
Merge "simpleperf: support long callchain in report_html.py."
Tianjie Xu [Wed, 25 Jul 2018 20:05:03 +0000 (13:05 -0700)]
Merge "Export headers for libverity_tree"
am:
e5cf16f9d3
Change-Id: I251b4b889a50d7c0b45944804dea481c44ef7b5a
Tianjie Xu [Wed, 25 Jul 2018 19:54:01 +0000 (19:54 +0000)]
Merge "Export headers for libverity_tree"
Yabin Cui [Wed, 25 Jul 2018 18:16:24 +0000 (11:16 -0700)]
simpleperf: support long callchain in report_html.py.
Support callchains with max length 750 in report_html.py, and
cut callchains longer than that to avoid max recursion depth exception.
Bug: none
Test: run test.py TestReportHtml.test_long_callchain.
Change-Id: I9ca278ba4e13a89bcaa4898a5e9c9794b033b604
Tianjie Xu [Mon, 23 Jul 2018 22:11:23 +0000 (15:11 -0700)]
Export headers for libverity_tree
Also factor out a function to convert a hex string to the byte array.
Bug:
25170618
Test: unit tests pass
Change-Id: Id9252d58d8de065bce332e806e2302dd18a54a8c
Yabin Cui [Wed, 25 Jul 2018 00:43:47 +0000 (17:43 -0700)]
Merge "simpleperf: add --binary_filter option in report_html.py."
am:
f2307ae2a0
Change-Id: I5f9e6ad5f57f697b9d55bc1870523b9f2a0672a1
Yabin Cui [Wed, 25 Jul 2018 00:36:25 +0000 (00:36 +0000)]
Merge "simpleperf: add --binary_filter option in report_html.py."
Yabin Cui [Tue, 24 Jul 2018 23:38:44 +0000 (16:38 -0700)]
Merge "simpleperf: use libunwindstack directly for unwinding."
am:
148a756acd
Change-Id: I45c16f9271d2640d2c6ef0fc265b621ac6f85059
Yabin Cui [Tue, 24 Jul 2018 23:28:16 +0000 (23:28 +0000)]
Merge "simpleperf: use libunwindstack directly for unwinding."
Tianjie Xu [Tue, 24 Jul 2018 22:03:39 +0000 (15:03 -0700)]
Merge "Add support of more hash algorithms for verity tree builder"
am:
bdb1bfde6e
Change-Id: Ifbcb3f07ed8445b682e8e3a93d02bf651ceed66a
Tianjie Xu [Tue, 24 Jul 2018 21:52:40 +0000 (21:52 +0000)]
Merge "Add support of more hash algorithms for verity tree builder"
Yabin Cui [Tue, 24 Jul 2018 19:50:47 +0000 (12:50 -0700)]
simpleperf: add --binary_filter option in report_html.py.
Since disassemble binary is slow, and it is not useful to disassemble
all binaries, add --binary_filter option to disassemble and add source
code only for selected binaries.
Also add is_elf_file() in utils.py to avoid the warning message of
running readelf on files not in elf format.
Also fix two small errors in report_html.js.
Bug: none
Test: run test.py TestExampleWithNative.test_report_html.
Change-Id: I115543c30a409dc2d11c76491614804d097326b1
Tianjie Xu [Tue, 26 Jun 2018 18:57:13 +0000 (11:57 -0700)]
Add support of more hash algorithms for verity tree builder
Currently, verified boot 1.0 is using SHA256 to compute the hash tree
while AVB is using SHA1. We should support at least these two hash
functionss in the HashTreeBuilder and command line parser. And we can
potentially add more algorithms in the future.
Bug:
25170618
Test: unit tests pass
Change-Id: I5f6dc8a545c0cef75acbbc2044959e8100f9f842