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

Issue 18178015: Implement /proc/self/maps/ parsing code. (Closed)

Created:
7 years, 5 months ago by scherkus (not reviewing)
Modified:
7 years, 5 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, digit1
Visibility:
Public.

Description

Implement /proc/self/maps parsing code. This will be used to implement stack traces on Android by printing relocatable addresses. BUG=248784 R=mark@chromium.org, satorux@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209855

Patch Set 1 #

Total comments: 10

Patch Set 2 : added permissions and tests #

Patch Set 3 : rebase #

Total comments: 3

Patch Set 4 : fix compile errors #

Patch Set 5 : add link #

Total comments: 52

Patch Set 6 : fixes #

Total comments: 3

Patch Set 7 : eliminated copy and added test for 'S' #

Total comments: 6

Patch Set 8 : fixes #

Patch Set 9 : rebase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+424 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M base/base.gypi View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
A base/debug/proc_maps_linux.h View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
A base/debug/proc_maps_linux.cc View 1 2 3 4 5 6 7 1 chunk +101 lines, -0 lines 0 comments Download
A base/debug/proc_maps_linux_unittest.cc View 1 2 3 4 5 6 7 1 chunk +258 lines, -0 lines 2 comments Download

Messages

Total messages: 21 (0 generated)
scherkus (not reviewing)
satorux: can you review? As discussed offline and in https://codereview.chromium.org/16770006/ I've decided that a simple ...
7 years, 5 months ago (2013-06-28 23:45:24 UTC) #1
satorux1
Part of me thinks this code should be written in async-signal-safe fashion but the other ...
7 years, 5 months ago (2013-07-01 03:59:56 UTC) #2
scherkus (not reviewing)
PTAL https://codereview.chromium.org/18178015/diff/1/base/debug/proc_maps.cc File base/debug/proc_maps.cc (right): https://codereview.chromium.org/18178015/diff/1/base/debug/proc_maps.cc#newcode34 base/debug/proc_maps.cc:34: static const char kProcMapFormat[] = On 2013/07/01 03:59:56, ...
7 years, 5 months ago (2013-07-01 21:59:45 UTC) #3
scherkus (not reviewing)
cc'ing digit@ for question about Bionic's stdint.h vs. inttypes.h https://codereview.chromium.org/18178015/diff/17001/base/debug/proc_maps.cc File base/debug/proc_maps.cc (right): https://codereview.chromium.org/18178015/diff/17001/base/debug/proc_maps.cc#newcode14 base/debug/proc_maps.cc:14: ...
7 years, 5 months ago (2013-07-01 22:01:01 UTC) #4
satorux1
LGTM
7 years, 5 months ago (2013-07-02 00:41:41 UTC) #5
scherkus (not reviewing)
mark / mmentovai: please review for base/ OWNERS
7 years, 5 months ago (2013-07-02 06:00:35 UTC) #6
digit
https://codereview.chromium.org/18178015/diff/17001/base/debug/proc_maps.cc File base/debug/proc_maps.cc (right): https://codereview.chromium.org/18178015/diff/17001/base/debug/proc_maps.cc#newcode14 base/debug/proc_maps.cc:14: #define SCNxPTR "x" Looks like a real bug. I ...
7 years, 5 months ago (2013-07-02 09:24:18 UTC) #7
scherkus (not reviewing)
jar: base/ OWNERS review (I think mark is OOO) https://codereview.chromium.org/18178015/diff/17001/base/debug/proc_maps.cc File base/debug/proc_maps.cc (right): https://codereview.chromium.org/18178015/diff/17001/base/debug/proc_maps.cc#newcode14 base/debug/proc_maps.cc:14: ...
7 years, 5 months ago (2013-07-02 18:21:00 UTC) #8
Mark Mentovai
https://codereview.chromium.org/18178015/diff/41001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/18178015/diff/41001/base/base.gypi#newcode136 base/base.gypi:136: 'debug/proc_maps.cc', You need to name this “proc_maps_linux.cc” or something ...
7 years, 5 months ago (2013-07-02 19:36:57 UTC) #9
jar (doing other things)
Mark looks like he jumped all over this when you asked... so this is just ...
7 years, 5 months ago (2013-07-02 19:58:57 UTC) #10
scherkus (not reviewing)
thanks for the review! PTAL https://codereview.chromium.org/18178015/diff/41001/base/base.gypi File base/base.gypi (right): https://codereview.chromium.org/18178015/diff/41001/base/base.gypi#newcode136 base/base.gypi:136: 'debug/proc_maps.cc', On 2013/07/02 19:36:57, ...
7 years, 5 months ago (2013-07-02 21:43:00 UTC) #11
scherkus (not reviewing)
https://codereview.chromium.org/18178015/diff/53001/base/debug/proc_maps_linux.cc File base/debug/proc_maps_linux.cc (right): https://codereview.chromium.org/18178015/diff/53001/base/debug/proc_maps_linux.cc#newcode91 base/debug/proc_maps_linux.cc:91: regions.push_back(region); hrmm.. I guess I could cut down on ...
7 years, 5 months ago (2013-07-02 21:48:38 UTC) #12
scherkus (not reviewing)
https://codereview.chromium.org/18178015/diff/53001/base/debug/proc_maps_linux.cc File base/debug/proc_maps_linux.cc (right): https://codereview.chromium.org/18178015/diff/53001/base/debug/proc_maps_linux.cc#newcode91 base/debug/proc_maps_linux.cc:91: regions.push_back(region); On 2013/07/02 21:48:38, scherkus wrote: > hrmm.. I ...
7 years, 5 months ago (2013-07-02 22:04:34 UTC) #13
Mark Mentovai
LGTM https://codereview.chromium.org/18178015/diff/41001/base/debug/proc_maps.h File base/debug/proc_maps.h (right): https://codereview.chromium.org/18178015/diff/41001/base/debug/proc_maps.h#newcode26 base/debug/proc_maps.h:26: PRIVATE = 1 << 3, // If set, ...
7 years, 5 months ago (2013-07-02 22:21:35 UTC) #14
scherkus (not reviewing)
https://codereview.chromium.org/18178015/diff/41001/base/debug/proc_maps_unittest.cc File base/debug/proc_maps_unittest.cc (right): https://codereview.chromium.org/18178015/diff/41001/base/debug/proc_maps_unittest.cc#newcode159 base/debug/proc_maps_unittest.cc:159: for (size_t i = 0; kTestCases[i].input != NULL; ++i) ...
7 years, 5 months ago (2013-07-02 23:07:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/18178015/48002
7 years, 5 months ago (2013-07-02 23:08:27 UTC) #16
commit-bot: I haz the power
Retried try job too often on win7_aura for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win7_aura&number=56290
7 years, 5 months ago (2013-07-03 01:33:11 UTC) #17
scherkus (not reviewing)
Committed patchset #9 manually as r209855 (presubmit successful).
7 years, 5 months ago (2013-07-03 02:02:53 UTC) #18
Mark Mentovai
LGTM-post-facto https://codereview.chromium.org/18178015/diff/48002/base/debug/proc_maps_linux_unittest.cc File base/debug/proc_maps_linux_unittest.cc (right): https://codereview.chromium.org/18178015/diff/48002/base/debug/proc_maps_linux_unittest.cc#newcode200 base/debug/proc_maps_linux_unittest.cc:200: found_exe = true; EXPECT_FALSE(found_exe) before this line.
7 years, 5 months ago (2013-07-03 13:26:36 UTC) #19
Mark Mentovai
Oh, never mind, you’ll have multiple sections mapped.
7 years, 5 months ago (2013-07-03 13:28:08 UTC) #20
scherkus (not reviewing)
7 years, 5 months ago (2013-07-04 01:26:07 UTC) #21
Message was sent while issue was closed.
https://codereview.chromium.org/18178015/diff/48002/base/debug/proc_maps_linu...
File base/debug/proc_maps_linux_unittest.cc (right):

https://codereview.chromium.org/18178015/diff/48002/base/debug/proc_maps_linu...
base/debug/proc_maps_linux_unittest.cc:200: found_exe = true;
On 2013/07/03 13:26:36, Mark Mentovai wrote:
> EXPECT_FALSE(found_exe) before this line.

Addressed in https://codereview.chromium.org/18328027/

Powered by Google App Engine
This is Rietveld 408576698