aboutsummaryrefslogtreecommitdiff
path: root/debug_info_test/debug_info_test.py
AgeCommit message (Collapse)Author
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>
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-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-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>