aboutsummaryrefslogtreecommitdiff
path: root/debug_info_test
AgeCommit message (Collapse)Author
2021-05-24toolchain-utils: Remove uses of "readelf --debug-dump=info"Caroline Tice
Now that we have switched to DWARF v5, using 'readelf --debug-dump=info' no longer works. This CL replaces such uses with llvm-dwarfdump instead. BUG=b:186027147 TEST=Verified manually that the commands are equivalent. Change-Id: Ib9ced19aad729c6e24bf5b0714b53c761f55d868 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2914600 Reviewed-by: Jordan R Abrahams <ajordanr@google.com> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: Caroline Tice <cmtice@chromium.org> Auto-Submit: Caroline Tice <cmtice@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
2020-06-25debug_info_test: fix up namingGeorge Burgess IV
This replaces 'whitelist' with 'allowlist' in debug_info_test's file names, as a follow up to the previous NFC CL's cleanups. BUG=chromium:1099035 TEST=CQ+1 Change-Id: I0e99fa230a78251a6a555941db6f4758d0cf9367 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2265050 Reviewed-by: Tiancong Wang <tcwang@google.com> Tested-by: George Burgess <gbiv@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org>
2020-06-25debug_info_test: replace whitelist with allowlistGeorge Burgess IV
This CL tweaks language to better reflect the intent that's meant to be conveyed, per go/chromium-project-code-inclusion . This change is meant to trivially be a local, functional nop; renaming extensions will be a later CL. BUG=chromium:1099035 TEST=CQ+1 Change-Id: Iaee8b96c54660b4ebb4363a230e768c3da3f885a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2265049 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: George Burgess <gbiv@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org>
2020-02-13toolchain-utils: migrate all in-use projects to python 3Zhizhou Yang
This patch migrates all in-use projects left to python 3. BUG=chromium:1011676 TEST=Passed unittests and launched scripts manually. Change-Id: I7f2de4e1131c05bacfac80667f3064da8adaebfd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2051397 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Zhizhou Yang <zhizhouy@google.com> Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
2019-10-09set shebangs to python2Mike Frysinger
These scripts aren't ported to python3, so set the shebang to python2. BUG=chromium:1011676 TEST=CQ passes Change-Id: I192b50bc8b4d682fd562c75b479b68bffa9eab61 Reviewed-on: https://chromium-review.googlesource.com/1843911 Tested-by: Mike Frysinger <vapier@chromium.org> Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org>
2019-07-18DebugInfoTest: Whitelist fw_parserManoj Gupta
This is a binary from Intel. So whitelist to avoid errors from DebugInfoTest. BUG=chromium:984749 TEST=No more complains about fw_parser Change-Id: I808e3972e635e52a406d2e2a4c8ce673530e72d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1706398 Tested-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Zhizhou Yang <zhizhouy@google.com> Commit-Queue: Manoj Gupta <manojgupta@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
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>