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

Issue 1796803003: Add statistics about free space to microdump format. (Closed)

Created:
4 years, 9 months ago by Tobias Sargeant
Modified:
4 years, 7 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Add statistics about free space to microdump format. When a crash occurs as a result of an allocation failure, it is useful to know approximately what regions of the virtual address space remain available, so that we know whether the crash should be attributed to memory fragmentation, or some other cause. BUG=525938 R=primiano@chromium.org Committed: https://chromium.googlesource.com/breakpad/breakpad/+/adca10c8ff9884d5c705fe60de2e0420ff9e73c6

Patch Set 1 #

Total comments: 10

Patch Set 2 : address comments; remove uses of libc/stl. #

Patch Set 3 : remove #include <algorithm> #

Total comments: 30

Patch Set 4 : #

Total comments: 1

Patch Set 5 : don't dump mapping summary on 64 bit, make NextOrdererdMapping simpler. #

Patch Set 6 : fix stupid error in Log2Floor #

Total comments: 5

Patch Set 7 : Address comments, Fix NextOrderedMapping. #

Total comments: 17

Patch Set 8 : Address PS7 comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -2 lines) Patch
M src/client/linux/microdump_writer/microdump_writer.cc View 1 2 3 4 5 6 7 5 chunks +141 lines, -2 lines 3 comments Download

Messages

Total messages: 24 (2 generated)
Tobias Sargeant
PTAL. It was a bit more complicated to collect these stats than initially expected, because: ...
4 years, 9 months ago (2016-03-14 12:32:30 UTC) #2
Primiano Tucci (use gerrit)
On 2016/03/14 12:32:30, Tobias Sargeant wrote: > PTAL. It was a bit more complicated to ...
4 years, 9 months ago (2016-03-15 15:45:19 UTC) #3
Tobias Sargeant
> Apologies for the lateness. I am hyper-backlogged, didn't forget about this one. > Will ...
4 years, 8 months ago (2016-04-06 10:18:51 UTC) #4
Primiano Tucci (use gerrit)
On 2016/04/06 10:18:51, Tobias Sargeant wrote: > > Apologies for the lateness. I am hyper-backlogged, ...
4 years, 8 months ago (2016-04-06 16:50:26 UTC) #5
Primiano Tucci (use gerrit)
First attempt, sorry for the huge delay. Didn't have time yet to check the math/logic. ...
4 years, 8 months ago (2016-04-07 18:07:39 UTC) #6
Tobias Sargeant
I think I matched your delay with my own. https://codereview.chromium.org/1796803003/diff/1/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/1/src/client/linux/microdump_writer/microdump_writer.cc#newcode34 src/client/linux/microdump_writer/microdump_writer.cc:34: ...
4 years, 7 months ago (2016-05-03 13:43:19 UTC) #7
Primiano Tucci (use gerrit)
Ok the logic here makes sense to me. Not sure about the load-bias part. I ...
4 years, 7 months ago (2016-05-06 11:07:57 UTC) #8
Torne
https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc#newcode500 src/client/linux/microdump_writer/microdump_writer.cc:500: for (unsigned int i = 0; i < HBITS; ...
4 years, 7 months ago (2016-05-06 11:13:36 UTC) #9
Tobias Sargeant
https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc#newcode74 src/client/linux/microdump_writer/microdump_writer.cc:74: size_t NextOrderedMapping( On 2016/05/06 11:07:56, Primiano Tucci wrote: > ...
4 years, 7 months ago (2016-05-06 11:33:45 UTC) #10
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc#newcode74 src/client/linux/microdump_writer/microdump_writer.cc:74: size_t NextOrderedMapping( On 2016/05/06 11:33:45, Tobias Sargeant wrote: > ...
4 years, 7 months ago (2016-05-06 13:29:24 UTC) #11
Tobias Sargeant
https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc#newcode64 src/client/linux/microdump_writer/microdump_writer.cc:64: // Because of load biasing, we can end up ...
4 years, 7 months ago (2016-05-06 13:29:31 UTC) #12
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc#newcode64 src/client/linux/microdump_writer/microdump_writer.cc:64: // Because of load biasing, we can end up ...
4 years, 7 months ago (2016-05-06 13:58:38 UTC) #13
Tobias Sargeant
> I just tested this out of curiosity (sorry I am a super paranoid person ...
4 years, 7 months ago (2016-05-06 14:08:19 UTC) #14
Primiano Tucci (use gerrit)
OK Looks good, just some final comments. Also plz check sure that $ make check ...
4 years, 7 months ago (2016-05-10 16:20:49 UTC) #15
Tobias Sargeant
https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/40001/src/client/linux/microdump_writer/microdump_writer.cc#newcode74 src/client/linux/microdump_writer/microdump_writer.cc:74: size_t NextOrderedMapping( On 2016/05/06 13:29:23, Primiano Tucci wrote: > ...
4 years, 7 months ago (2016-05-13 16:16:54 UTC) #16
Primiano Tucci (use gerrit)
LGTM % final comments https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc#newcode81 src/client/linux/microdump_writer/microdump_writer.cc:81: bool MappingsAreAdjacent(const MappingInfo* a, const ...
4 years, 7 months ago (2016-05-20 15:18:22 UTC) #17
Tobias Sargeant
https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc#newcode477 src/client/linux/microdump_writer/microdump_writer.cc:477: while (curr != mappings.size() - 1 && On 2016/05/20 ...
4 years, 7 months ago (2016-05-20 15:32:55 UTC) #18
Primiano Tucci (use gerrit)
https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc#newcode477 src/client/linux/microdump_writer/microdump_writer.cc:477: while (curr != mappings.size() - 1 && On 2016/05/20 ...
4 years, 7 months ago (2016-05-20 17:52:48 UTC) #19
Tobias Sargeant
https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/120001/src/client/linux/microdump_writer/microdump_writer.cc#newcode81 src/client/linux/microdump_writer/microdump_writer.cc:81: bool MappingsAreAdjacent(const MappingInfo* a, const MappingInfo* b) { On ...
4 years, 7 months ago (2016-05-23 10:51:59 UTC) #20
Primiano Tucci (use gerrit)
PS8 LGTM https://codereview.chromium.org/1796803003/diff/140001/src/client/linux/microdump_writer/microdump_writer.cc File src/client/linux/microdump_writer/microdump_writer.cc (right): https://codereview.chromium.org/1796803003/diff/140001/src/client/linux/microdump_writer/microdump_writer.cc#newcode527 src/client/linux/microdump_writer/microdump_writer.cc:527: LogAppend(saturated_cast<uint8_t>(hole_histogram[i])); On 2016/05/23 10:51:59, Tobias Sargeant wrote: ...
4 years, 7 months ago (2016-05-23 14:15:46 UTC) #21
Primiano Tucci (use gerrit)
Committed patchset #8 (id:140001) manually as adca10c8ff9884d5c705fe60de2e0420ff9e73c6 (presubmit successful).
4 years, 7 months ago (2016-05-23 15:06:32 UTC) #23
Primiano Tucci (use gerrit)
4 years, 7 months ago (2016-05-24 13:23:13 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/1796803003/diff/140001/src/client/linux/micro...
File src/client/linux/microdump_writer/microdump_writer.cc (right):

https://codereview.chromium.org/1796803003/diff/140001/src/client/linux/micro...
src/client/linux/microdump_writer/microdump_writer.cc:501: int log2_hole_sz =
Log2Floor(hole_sz);
Somebody just reported that this variable is unused and cause some compilation
warnings.

see
https://github.com/google/breakpad/commit/adca10c8ff9884d5c705fe60de2e0420ff9...

Powered by Google App Engine
This is Rietveld 408576698