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

Issue 1286063003: [microdump] Move microdump writes to the crash ring-buffer log (Closed)

Created:
5 years, 4 months ago by Primiano Tucci (use gerrit)
Modified:
5 years, 4 months ago
CC:
google-breakpad-dev_googlegroups.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

[microdump] Move microdump writes to the crash ring-buffer log So far the microdump_writer dumped the log in logcat using the default system log. This is simple to achieve but has some drawbacks: 1. Creates spam in the system log, pushing back other eventual useful messages. 2. There is a high chance that the microdump gets lost if some log spam storm happens immediately after a crash and before the log is collected by the feedback client. 3. Since Android L, the logger is smartly throttling messages (to reduce logcat spam). Throttling brekpad logs defeats the all point of microdumps. This change is conceptually very simple. Replace the use of __android_log_write() with __android_log_buf_write(), which takes an extra bufID argument. The main drawback is that the __android_log_buf_write is not exported in the NDK and needs to be dynamically looked up via dlsym. This choice has been discussed and advocated by Android owners. See the internal bug b/21753476. BUG=chromium:512755 R=thestig@chromium.org Committed: https://code.google.com/p/google-breakpad/source/detail?r=1490

Patch Set 1 #

Patch Set 2 : #

Total comments: 17

Patch Set 3 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -3 lines) Patch
M src/client/linux/handler/exception_handler.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/client/linux/log/log.h View 1 1 chunk +14 lines, -0 lines 0 comments Download
M src/client/linux/log/log.cc View 1 2 1 chunk +37 lines, -1 line 0 comments Download
M src/client/linux/microdump_writer/microdump_writer.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 7 (2 generated)
Primiano Tucci (use gerrit)
Lei, can I ask a review on this? Torne, would you mind give it an ...
5 years, 4 months ago (2015-08-13 11:08:37 UTC) #2
Lei Zhang
lgtm All the comments are nitty. https://codereview.chromium.org/1286063003/diff/20001/src/client/linux/log/log.cc File src/client/linux/log/log.cc (right): https://codereview.chromium.org/1286063003/diff/20001/src/client/linux/log/log.cc#newcode36 src/client/linux/log/log.cc:36: // From Android ...
5 years, 4 months ago (2015-08-13 21:07:57 UTC) #3
Primiano Tucci (use gerrit)
Thanks. simonb@ can I ask you,, as owner of all the linkers, just a quick ...
5 years, 4 months ago (2015-08-14 09:16:46 UTC) #5
Torne
On 2015/08/13 11:08:37, Primiano Tucci wrote: > Torne, would you mind give it an end-to-end ...
5 years, 4 months ago (2015-08-14 12:36:06 UTC) #6
Primiano Tucci (use gerrit)
5 years, 4 months ago (2015-08-17 10:32:34 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 1490 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698