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

Issue 1398163003: Handle EAGAIN error for the mincore syscall used (Closed)

Created:
5 years, 2 months ago by ssid
Modified:
5 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, tracing+reviews_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@resident
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Handle EAGAIN error for the mincore syscall used EAGAIN error case was not handled for mincore sys call used. This CL fixes this issue and changes the CountResidentBytes method to return false on failures. BUG=542503 Committed: https://crrev.com/999ca54e61026ee8e68bdc4f69cc0f47eb21cf38 Cr-Commit-Position: refs/heads/master@{#354275}

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Rebase. #

Total comments: 14

Patch Set 4 : Add comment. #

Patch Set 5 : Fixes. #

Patch Set 6 : Ignore error in release builds. #

Total comments: 6

Patch Set 7 : Fixes. #

Total comments: 6

Patch Set 8 : Return 0 on error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -4 lines) Patch
M base/trace_event/process_memory_dump.cc View 1 2 3 4 5 6 7 3 chunks +20 lines, -4 lines 0 comments Download

Messages

Total messages: 40 (8 generated)
ssid
PTAL, Thanks.
5 years, 2 months ago (2015-10-14 11:17:17 UTC) #2
Primiano Tucci (use gerrit)
lgtm https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode67 base/trace_event/process_memory_dump.cc:67: } while (res == -1 && errno == ...
5 years, 2 months ago (2015-10-14 11:27:08 UTC) #3
ssid
+avi : Please take a look. This is change to reflect the base api change. ...
5 years, 2 months ago (2015-10-14 12:09:24 UTC) #5
reveman
https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode65 base/trace_event/process_memory_dump.cc:65: do { why do we allow retries here but ...
5 years, 2 months ago (2015-10-14 12:31:29 UTC) #7
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode65 base/trace_event/process_memory_dump.cc:65: do { On 2015/10/14 12:31:28, reveman wrote: > why ...
5 years, 2 months ago (2015-10-14 12:41:34 UTC) #8
ssid
https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode65 base/trace_event/process_memory_dump.cc:65: do { On 2015/10/14 12:41:33, Primiano Tucci wrote: > ...
5 years, 2 months ago (2015-10-14 12:44:29 UTC) #9
reveman
https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode65 base/trace_event/process_memory_dump.cc:65: do { On 2015/10/14 at 12:41:33, Primiano Tucci wrote: ...
5 years, 2 months ago (2015-10-14 13:03:53 UTC) #10
ssid
made changes. https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode65 base/trace_event/process_memory_dump.cc:65: do { On 2015/10/14 13:03:53, reveman wrote: ...
5 years, 2 months ago (2015-10-14 13:35:55 UTC) #11
reveman
https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode67 base/trace_event/process_memory_dump.cc:67: } while (res == -1 && errno == EAGAIN ...
5 years, 2 months ago (2015-10-14 14:17:11 UTC) #12
ssid
On 2015/10/14 14:17:11, reveman wrote: > https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc > File base/trace_event/process_memory_dump.cc (right): > > https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode67 > ...
5 years, 2 months ago (2015-10-14 14:37:20 UTC) #13
ssid
On 2015/10/14 14:17:11, reveman wrote: > https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc > File base/trace_event/process_memory_dump.cc (right): > > https://codereview.chromium.org/1398163003/diff/40001/base/trace_event/process_memory_dump.cc#newcode67 > ...
5 years, 2 months ago (2015-10-14 14:37:20 UTC) #14
Lei Zhang
On 2015/10/14 14:37:20, ssid wrote: > The mincore call can also fail because of other ...
5 years, 2 months ago (2015-10-14 16:35:47 UTC) #15
reveman
On 2015/10/14 at 16:35:47, thestig wrote: > On 2015/10/14 14:37:20, ssid wrote: > > The ...
5 years, 2 months ago (2015-10-14 16:42:31 UTC) #16
ssid
On 2015/10/14 16:42:31, reveman wrote: > On 2015/10/14 at 16:35:47, thestig wrote: > > On ...
5 years, 2 months ago (2015-10-14 16:47:41 UTC) #17
reveman
On 2015/10/14 at 16:47:41, ssid wrote: > On 2015/10/14 16:42:31, reveman wrote: > > On ...
5 years, 2 months ago (2015-10-14 17:12:30 UTC) #18
Primiano Tucci (use gerrit)
On 2015/10/14 17:12:30, reveman wrote: > DHCECK and return 0 sgtm. Hmm how do we ...
5 years, 2 months ago (2015-10-14 17:25:26 UTC) #19
reveman
On 2015/10/14 at 17:25:26, primiano wrote: > On 2015/10/14 17:12:30, reveman wrote: > > DHCECK ...
5 years, 2 months ago (2015-10-14 17:52:10 UTC) #20
Primiano Tucci (use gerrit)
On 2015/10/14 17:52:10, reveman wrote: > On 2015/10/14 at 17:25:26, primiano wrote: > > On ...
5 years, 2 months ago (2015-10-14 18:07:54 UTC) #21
ssid
Made changes PTAL thanks. -avi
5 years, 2 months ago (2015-10-15 10:47:23 UTC) #23
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc#newcode59 base/trace_event/process_memory_dump.cc:59: << "Mincore call failed. The resident size may not ...
5 years, 2 months ago (2015-10-15 11:20:18 UTC) #24
ssid
https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc#newcode59 base/trace_event/process_memory_dump.cc:59: << "Mincore call failed. The resident size may not ...
5 years, 2 months ago (2015-10-15 11:23:43 UTC) #25
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc#newcode76 base/trace_event/process_memory_dump.cc:76: << "Mincore call failed. The resident size may not ...
5 years, 2 months ago (2015-10-15 11:27:13 UTC) #26
ssid
made changes. https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/100001/base/trace_event/process_memory_dump.cc#newcode76 base/trace_event/process_memory_dump.cc:76: << "Mincore call failed. The resident size ...
5 years, 2 months ago (2015-10-15 11:39:30 UTC) #28
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1398163003/diff/140001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/140001/base/trace_event/process_memory_dump.cc#newcode58 base/trace_event/process_memory_dump.cc:58: continue; I wouldn't bother giving partials results really. If ...
5 years, 2 months ago (2015-10-15 11:44:07 UTC) #29
ssid
done. https://codereview.chromium.org/1398163003/diff/140001/base/trace_event/process_memory_dump.cc File base/trace_event/process_memory_dump.cc (right): https://codereview.chromium.org/1398163003/diff/140001/base/trace_event/process_memory_dump.cc#newcode58 base/trace_event/process_memory_dump.cc:58: continue; On 2015/10/15 11:44:07, Primiano Tucci wrote: > ...
5 years, 2 months ago (2015-10-15 13:28:22 UTC) #30
Primiano Tucci (use gerrit)
lgtm
5 years, 2 months ago (2015-10-15 13:35:10 UTC) #31
reveman
lgtm
5 years, 2 months ago (2015-10-15 14:02:12 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398163003/160001
5 years, 2 months ago (2015-10-15 14:17:13 UTC) #34
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 2 months ago (2015-10-15 15:21:39 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1398163003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1398163003/160001
5 years, 2 months ago (2015-10-15 15:22:44 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 2 months ago (2015-10-15 15:26:48 UTC) #39
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 15:27:51 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/999ca54e61026ee8e68bdc4f69cc0f47eb21cf38
Cr-Commit-Position: refs/heads/master@{#354275}

Powered by Google App Engine
This is Rietveld 408576698