This commit refactors the `main()` function, cleans up several
indentation or spacing errors, and rewrites some code in Pythonic way.
Test: ./tests/test.py
Test: ./utils/create_reference_dumps.py
Change-Id: Ie654187bff5b5c49b421814efab0e8f308c93fa8
addr2line may abort and "result" may be incomplete. This leads to
"index out of range" exceptions. Enclose this in a try & except block
and on exception, default to function:location = ---:---
Test: "python native_heapdump_viewer_tests.py" (after CL:780974)
passes.
BUG: 117306194
Change-Id: I4fd5c784949f279550aec95b68045df4a671da74
This commit adds an option to generate ABI dumps without compressing
them with gzip.
Bug: 111376916
Test: ./create_reference_dumps.py
Test: ./create_reference_dumps.py --compress
Change-Id: I1ad0781744a9ba6ff34ffed9418576986daeb67d
The retry routines are added for testing purpose (aosp/730971).
We may now remove this because it has no effect to remove the flaky
build errors.
Bug: 112250435
Test: build_mixed system_dir device_dir out_dir
Change-Id: Ibdefb7da3188ce42b6cd2deb5e40ad777c2fe5b0
fca3084 introduced an additional argument to ParseNativeHeap().
This CL updates the test to reflect the same.
Test: "python native_heapdump_viewer_tests.py" executes without
any errors.
Change-Id: I6c196205ead2cb6abd4a646a3ac53e62ae3e5038
Enable mixed_build script to use prebuilt otatools for packaging
image files. If we have otatools.zip file, use '-t' option to use
the prebuilt tools instead of building them in mixed branches.
Bug: 112732863
Test: run mixed_build with otatools using the command below:
$ development/vndk/tools/build_mixed -v 9 \
-m development/vndk/tools/modify_system_img.sh \
-p out/prebuilt_cached/artifacts/system/vbmeta.img \
-t out/prebuilt_cached/artifacts/system/otatools.zip \
out/prebuilt_cached/artifacts/system \
out/prebuilt_cached/artifacts/taimen \
dist \
out/prebuilt_cached/artifacts/system/checkvintf
Change-Id: I7891a2bad2f4e471baffb987149a39bbbd57f26e
This feature tells the image where to find vendor's
partition. It replaces the fwdata driver which we
retired.
Bug: 116663979
Test: run emulator
Change-Id: I00e081a1e929de0277cb7d559b6f20fb6307e689
Signed-off-by: Roman Kiryanov <rkir@google.com>
- Add a test that compares protobuf and JSON dumps.
- Add input-format=Json to header-abi-linker and diff.
Bug: 112877706
Test: ./test.py
Change-Id: Ic9be304b565a2ac58ed76e1a0fcc96530395b750
- Add JsonToIRReader which uses jsoncpp to convert JSON to IR.
- Move IsPresentInExportedHeaders to class TextFormatToIRReader.
Bug: 112877706
Test: ./test.py
Change-Id: Ib4382a8d4aa67ec4640cecd1fa433ffdf88a365a