aboutsummaryrefslogtreecommitdiff
path: root/debug_info_test
AgeCommit message (Collapse)Author
2018-05-12debug_info_test: check that chrome was built with ICF enabledRahul Chaudhry
For both amd64 and arm, when ICF (Identical Code Folding) is enabled, there is >60,000 drop in the number of unique addresses of text symbols. We check here that the drop is at least 10,000. See https://crbug.com/813272#c18 for details. BUG=chromium:813272 TEST='./debug_info_test.py /build/chell/usr/lib/debug/opt/google/chrome/chrome.debug' TEST='./debug_info_test.py /build/elm/usr/lib/debug/opt/google/chrome/chrome.debug' Change-Id: I23d1b48e6547bf3042096bed1c566ec50c5b2d66 Reviewed-on: https://chromium-review.googlesource.com/1053388 Commit-Ready: Rahul Chaudhry <rahulchaudhry@chromium.org> Tested-by: Rahul Chaudhry <rahulchaudhry@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
2018-05-06[toolchain-utils] Whitelist update for debug_info_testZhizhou Yang
This CL updates the whitelist for debug_info_test stage, when checking whether DebugInfo session exists or not. We do not care about the debug info in autotest, so whitelisted this directory. BUG=chromium:813271 TEST=debug_info_test /build/kip/usr/lib/debug with -nousepkg build Change-Id: I1ccd845462d07b0be58eb811550a00a2986a5086 Reviewed-on: https://chromium-review.googlesource.com/1044756 Commit-Ready: Zhizhou Yang <zhizhouy@chromium.org> Tested-by: Zhizhou Yang <zhizhouy@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
2018-04-27debug_info_test: add a test to check DW_AT_producerZhizhou Yang
This patch introduces two tests, one to check whether debug info section exists in the elf file, the other to check whether DW_AT_producer exists in each compile unit of debug info. BUG=chromium:813271 TEST=debug_info_test /build/kip/usr/lib/debug Change-Id: I3c207abe05c55182ddcc1910073c15a40b0844bf Reviewed-on: https://chromium-review.googlesource.com/1007968 Commit-Ready: Zhizhou Yang <zhizhouy@chromium.org> Tested-by: Zhizhou Yang <zhizhouy@chromium.org> Reviewed-by: Ting-Yuan Huang <laszio@chromium.org>
2018-03-26[toolchain-utils] Fix DebugInfoTest stage for x30evb.Caroline Tice
Fix a new DebugInfoTest stage failure. BUG=824857 TEST=x30evb release tryjob passed the DebugInfoTest stage. Change-Id: I92b6e5513f7eb678efd1faff5a3c74e5e42a3187 Reviewed-on: https://chromium-review.googlesource.com/981074 Commit-Ready: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
2018-03-23[toolchain-utils] Fix final DebugInfoTest corner cases.Caroline Tice
There are still a few release builders that are not passing the DebugInfoTest stage. This CL should fix all of those. BUG=chromium:824857 TEST=DebugInfoTest stage now passes, in the following tryjobs: capri-release, cobblepot-release, guado-macrophage-release, lakitu-nc-release, lakitu-st-release, lasilla-ground-release, lassen-release, macchiato-release. Change-Id: Ice7c051f67598df94b0d0ee6f6329bc139f9baef Reviewed-on: https://chromium-review.googlesource.com/976863 Commit-Ready: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
2018-03-18[toolchain-utils] More whitelist updates.Caroline Tice
We found a few more packages/files that need to be built with GCC and are adding them to our debug_info_test whitelists. BUG=chromium:813268 TEST=Tested with remote tryjobs: lakitu-release, gale-release, rainier-release, beaglebone-relase, fizz-release, cave-release. All passed the DebugInfoTest stage. Change-Id: I012d1620a85180f946c2ad2c8bbb175f5ef23e49 Reviewed-on: https://chromium-review.googlesource.com/967455 Commit-Ready: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
2018-03-15[toolchain-utils] Update whitelists for debug_info_test stage.Caroline Tice
The debug_info_test stage verifies that everything that is supposed to be built with LLVM is actually being built with LLVM. We have to whitelist a few files/packages that must continue to be built with GCC. This CL updates the whitelists to make this stage pass on AMD64. BUG=chromium:817648 TEST= debug_info_test.py passed on my local terra build, with these changes. DebugInfoTest stage passed on cros tryjob fizz-llvm-toolchain-tryjob. Change-Id: Ia9c79b5f13663d1f8a0e2b948f03a532b46d270b Reviewed-on: https://chromium-review.googlesource.com/964590 Commit-Ready: Caroline Tice <cmtice@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Reviewed-by: Ting-Yuan Huang <laszio@chromium.org>
2018-03-05debug_info_test: test !gcc rather than clang.Ting-Yuan Huang
There are other producers: gnu as, go, etc. Also update the whitelist. BUG=chromium:817648 TEST=debug_info_test Change-Id: Idc1ded503ed926fc85fbd55a97543583584468bd Reviewed-on: https://chromium-review.googlesource.com/947883 Commit-Ready: Ting-Yuan Huang <laszio@chromium.org> Tested-by: Ting-Yuan Huang <laszio@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@chromium.org>
2018-03-02debug_info_test: Run tests based on debug infoTing-Yuan Huang
debug_info_test calls tests on the given ELF files. When a directory is supplied, all ELFs will be searched and tested recursively. BUG=chromium:817648 TEST=debug_info_test /build/kip/usr/lib/debug Change-Id: Ibcb1ac2de19df9227eb6e242d611ec841d4b589f Reviewed-on: https://chromium-review.googlesource.com/942465 Commit-Ready: Ting-Yuan Huang <laszio@chromium.org> Tested-by: Ting-Yuan Huang <laszio@chromium.org> Reviewed-by: Ting-Yuan Huang <laszio@chromium.org> Reviewed-by: Yunlian Jiang <yunlian@chromium.org>