Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Issue 339853004: binary_size_tool: fix for ambiguous addr2line output (Closed)

Created:
6 years, 6 months ago by sebastianl
Modified:
6 years, 5 months ago
CC:
chromium-reviews, klundberg+watch_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, ilevy-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Project:
chromium
Visibility:
Public.

Description

binary_size_tool: fix for ambiguous addr2line output Sometimes the output of addr2line is ambiguous, example: unicode.cc:0 and does not include the absolute path of the source file. This fix is mostly a port of andrewhaydens solution to disambiguate the path. BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280303

Patch Set 1 #

Total comments: 6

Patch Set 2 : update according to andrewhaydens recommendations #

Patch Set 3 : fixed logical error in counters #

Patch Set 4 : rewrote check for ambiguous paths (now works if current working directory is not the source directo… #

Total comments: 13

Patch Set 5 : update according to primiano and andrewhaydens instructions #

Total comments: 13

Patch Set 6 : renamed disambiguation status booleans, rewrote some logic #

Total comments: 11

Patch Set 7 : changed descriptions, lookup_table => disambiguation_table rename, can now use relative paths witho… #

Total comments: 8

Patch Set 8 : updated descriptions, rebased, s/os.path.isabs/posixpath.isabs/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -12 lines) Patch
M build/android/pylib/symbols/elf_symbolizer.py View 1 2 3 4 5 6 7 7 chunks +57 lines, -3 lines 0 comments Download
M build/android/pylib/symbols/elf_symbolizer_unittest.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tools/binary_size/run_binary_size_analysis.py View 1 2 3 4 5 6 7 7 chunks +43 lines, -8 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
sebastianl
Ported andrewhaydens disambiguation solution to addr2line when addr2line returns an ambigous source path. Does it ...
6 years, 6 months ago (2014-06-17 11:20:35 UTC) #1
Andrew Hayden (chromium.org)
https://codereview.chromium.org/339853004/diff/1/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/339853004/diff/1/build/android/pylib/symbols/elf_symbolizer.py#newcode96 build/android/pylib/symbols/elf_symbolizer.py:96: Disambiguation means to resolve ambigious source_paths, ambigious -> ambiguous ...
6 years, 6 months ago (2014-06-17 11:36:27 UTC) #2
sebastianl
On 2014/06/17 11:36:27, Andrew Hayden wrote: > https://codereview.chromium.org/339853004/diff/1/build/android/pylib/symbols/elf_symbolizer.py > File build/android/pylib/symbols/elf_symbolizer.py (right): > > https://codereview.chromium.org/339853004/diff/1/build/android/pylib/symbols/elf_symbolizer.py#newcode96 ...
6 years, 6 months ago (2014-06-17 12:12:48 UTC) #3
sebastianl
The CQ bit was checked by sebastianl@opera.com
6 years, 6 months ago (2014-06-17 12:56:47 UTC) #4
sebastianl
The CQ bit was unchecked by sebastianl@opera.com
6 years, 6 months ago (2014-06-17 12:56:50 UTC) #5
sebastianl
Fixed a new version now. Please have a look and share your thoughts
6 years, 6 months ago (2014-06-18 07:21:52 UTC) #6
Andrew Hayden (chromium.org)
Minor bits only, aside from that this looks pretty good. One last patchset? https://codereview.chromium.org/339853004/diff/60001/build/android/pylib/symbols/elf_symbolizer.py File ...
6 years, 6 months ago (2014-06-18 09:10:59 UTC) #7
Primiano Tucci (use gerrit)
Besides the comments I wrote inline, I have a general doubt on elf_symbolizer. Currently, in ...
6 years, 6 months ago (2014-06-18 09:49:11 UTC) #8
Primiano Tucci (use gerrit)
https://codereview.chromium.org/339853004/diff/60001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/339853004/diff/60001/build/android/pylib/symbols/elf_symbolizer.py#newcode79 build/android/pylib/symbols/elf_symbolizer.py:79: disambiguate=False, disambiguation_source_path=''): I had a quick chat with Andrew ...
6 years, 6 months ago (2014-06-18 10:48:53 UTC) #9
sebastianl
On 2014/06/18 09:49:11, Primiano Tucci wrote: > Besides the comments I wrote inline, I have ...
6 years, 6 months ago (2014-06-18 11:02:14 UTC) #10
Andrew Hayden (chromium.org)
Just so that you guys are aware, I have been in touch with the "gold" ...
6 years, 6 months ago (2014-06-18 11:09:46 UTC) #11
sebastianl
I updated according to your instructions. Did I get it right, or did I misinterpret?
6 years, 6 months ago (2014-06-18 12:32:21 UTC) #12
Primiano Tucci (use gerrit)
Close but there are some unresolved Andrew's comments. As a general principle, keep the code ...
6 years, 6 months ago (2014-06-18 15:11:11 UTC) #13
sebastianl
> https://codereview.chromium.org/339853004/diff/80001/build/android/pylib/symbols/elf_symbolizer.py#newcode118 > build/android/pylib/symbols/elf_symbolizer.py:118: self.disambiguate = > source_root_path is not None > You don't seem ...
6 years, 6 months ago (2014-06-18 15:56:51 UTC) #14
Primiano Tucci (use gerrit)
On 2014/06/18 15:56:51, sebastianl wrote: > It is used at line 357, but the same ...
6 years, 6 months ago (2014-06-24 11:11:57 UTC) #15
Andrew Hayden (chromium.org)
On 2014/06/24 11:11:57, Primiano Tucci wrote: > https://codereview.chromium.org/339853004/diff/80001/build/android/pylib/symbols/elf_symbolizer.py#newcode354 > > > build/android/pylib/symbols/elf_symbolizer.py:354: disambiguated = False ...
6 years, 6 months ago (2014-06-24 11:18:06 UTC) #16
sebastianl
On 2014/06/24 11:18:06, Andrew Hayden wrote: > On 2014/06/24 11:11:57, Primiano Tucci wrote: > > ...
6 years, 6 months ago (2014-06-24 12:31:03 UTC) #17
Andrew Hayden (chromium.org)
On 2014/06/24 12:31:03, sebastianl wrote: > @andrewhayden: did you mean that instead of using (disambiguated, ...
6 years, 6 months ago (2014-06-24 12:48:45 UTC) #18
Primiano Tucci (use gerrit)
> > I think it's useful to count how many times we tried to disambiguate ...
6 years, 6 months ago (2014-06-24 15:29:24 UTC) #19
Andrew Hayden (chromium.org)
On 2014/06/24 15:29:24, Primiano Tucci wrote: > To be honest I feel that is exposing ...
6 years, 6 months ago (2014-06-24 15:37:13 UTC) #20
sebastianl
Using (disambiguation, was_ambiuous) instead of (disambiguation, failed_disambiguation) @primiano: I did not rename lookup_table to _lookup_table ...
6 years, 6 months ago (2014-06-25 07:14:22 UTC) #21
Primiano Tucci (use gerrit)
Cool stuff. I've just one remaining functional concern on line 350 (See comment below). For ...
6 years, 6 months ago (2014-06-25 09:02:59 UTC) #22
sebastianl
On 2014/06/25 09:02:59, Primiano Tucci wrote: > Cool stuff. > I've just one remaining functional ...
6 years, 6 months ago (2014-06-25 11:30:10 UTC) #23
Primiano Tucci (use gerrit)
LGTM % 1 nit (posixpath) and a the abspath point (see below). For the abspath ...
6 years, 6 months ago (2014-06-25 12:54:01 UTC) #24
sebastianl
On 2014/06/25 12:54:01, Primiano Tucci wrote: > LGTM % 1 nit (posixpath) and a the ...
6 years, 6 months ago (2014-06-26 08:35:20 UTC) #25
Andrew Hayden (chromium.org)
LGTM and thank you for your continued work! https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py#newcode95 build/android/pylib/symbols/elf_symbolizer.py:95: source_root_path: ...
6 years, 6 months ago (2014-06-26 09:00:11 UTC) #26
Andrew Hayden (chromium.org)
LGTM and thank you for your continued work!
6 years, 6 months ago (2014-06-26 09:01:52 UTC) #27
Daniel Bratell
On 2014/06/26 08:35:20, sebastianl wrote: > On 2014/06/25 12:54:01, Primiano Tucci wrote: > > > ...
6 years, 6 months ago (2014-06-26 09:05:17 UTC) #28
Primiano Tucci (use gerrit)
> Using posixpath.isabs instead of os.path.isabs will exclude some disambiguations > from the results (unfortunately). ...
6 years, 6 months ago (2014-06-26 09:21:41 UTC) #29
Primiano Tucci (use gerrit)
https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py#newcode343 build/android/pylib/symbols/elf_symbolizer.py:343: # In case disambiguation is on, and needed > ...
6 years, 6 months ago (2014-06-26 09:33:45 UTC) #30
Andrew Hayden (chromium.org)
On 2014/06/26 09:33:45, Primiano Tucci wrote: > https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py > File build/android/pylib/symbols/elf_symbolizer.py (right): > > https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py#newcode343 ...
6 years, 6 months ago (2014-06-26 09:36:21 UTC) #31
Andrew Hayden (chromium.org)
PS - I think an even better idea is to get this out of the ...
6 years, 6 months ago (2014-06-26 09:36:45 UTC) #32
sebastianl
On 2014/06/26 09:21:41, Primiano Tucci wrote: > > Using posixpath.isabs instead of os.path.isabs will exclude ...
6 years, 6 months ago (2014-06-26 09:40:35 UTC) #33
sebastianl
Hopefully the last patch. * I rebased to master in order to get bratells changes ...
6 years, 5 months ago (2014-06-27 08:19:40 UTC) #34
Primiano Tucci (use gerrit)
Still LGTM https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py File build/android/pylib/symbols/elf_symbolizer.py (right): https://codereview.chromium.org/339853004/diff/120001/build/android/pylib/symbols/elf_symbolizer.py#newcode104 build/android/pylib/symbols/elf_symbolizer.py:104: (i.e. s/^strip_base_path/source_root_path/). On 2014/06/26 09:00:11, Andrew Hayden ...
6 years, 5 months ago (2014-06-27 08:53:56 UTC) #35
sebastianl
The CQ bit was checked by sebastianl@opera.com
6 years, 5 months ago (2014-06-27 09:31:07 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sebastianl@opera.com/339853004/140001
6 years, 5 months ago (2014-06-27 09:32:04 UTC) #37
commit-bot: I haz the power
6 years, 5 months ago (2014-06-27 11:27:33 UTC) #38
Message was sent while issue was closed.
Change committed as 280303

Powered by Google App Engine
This is Rietveld 408576698