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

Issue 3179006: Collect and send kernel crash diagnostics (Closed)

Created:
10 years, 4 months ago by kmixter1
Modified:
9 years, 7 months ago
Reviewers:
petkov, hughd
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git//crash-reporter.git
Visibility:
Public.

Description

Collect and send kernel crash diagnostics BUG=1512, 1914

Patch Set 1 #

Patch Set 2 : Works #

Total comments: 37

Patch Set 3 : Respond to reviews #

Total comments: 14

Patch Set 4 : Respond to reviews #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1064 lines, -324 lines) Patch
M Makefile View 1 2 2 chunks +12 lines, -3 lines 0 comments Download
A crash_collector.h View 1 2 3 1 chunk +70 lines, -0 lines 0 comments Download
A crash_collector.cc View 1 2 1 chunk +150 lines, -0 lines 0 comments Download
A crash_collector_test.cc View 1 2 3 1 chunk +105 lines, -0 lines 0 comments Download
M crash_reporter.cc View 1 2 3 4 chunks +95 lines, -69 lines 0 comments Download
M crash_sender View 1 5 chunks +45 lines, -33 lines 0 comments Download
A kernel_collector.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A kernel_collector.cc View 1 2 1 chunk +118 lines, -0 lines 0 comments Download
A kernel_collector_test.cc View 1 2 1 chunk +186 lines, -0 lines 0 comments Download
A unclean_shutdown_collector.h View 1 chunk +39 lines, -0 lines 0 comments Download
A unclean_shutdown_collector.cc View 1 chunk +57 lines, -0 lines 0 comments Download
A unclean_shutdown_collector_test.cc View 1 chunk +103 lines, -0 lines 0 comments Download
M user_collector.h View 4 chunks +3 lines, -22 lines 0 comments Download
M user_collector.cc View 1 2 11 chunks +18 lines, -129 lines 0 comments Download
M user_collector_test.cc View 1 2 6 chunks +9 lines, -68 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
kmixter1
hughd: the code in kernel_collector.cc may be of interest to you.
10 years, 4 months ago (2010-08-17 06:40:35 UTC) #1
petkov
I think you're not sending to UMA the raw kernel crash counts. Nothing significant otherwise. ...
10 years, 4 months ago (2010-08-17 18:13:47 UTC) #2
kmixter1
PTAL. I split out an UncleanShutdownCollector to help improve testability. Otherwise, responded to all comments. ...
10 years, 4 months ago (2010-08-18 03:46:29 UTC) #3
petkov
Some minor comments/suggestions. LGTM http://codereview.chromium.org/3179006/diff/2001/3007 File kernel_collector.cc (right): http://codereview.chromium.org/3179006/diff/2001/3007#newcode95 kernel_collector.cc:95: kernel_dump.c_str(), On 2010/08/18 03:46:30, kmixter1 ...
10 years, 4 months ago (2010-08-18 17:37:51 UTC) #4
kmixter1
10 years, 4 months ago (2010-08-18 22:37:01 UTC) #5
Pushed

http://codereview.chromium.org/3179006/diff/13001/14004
File crash_collector_test.cc (right):

http://codereview.chromium.org/3179006/diff/13001/14004#newcode14
crash_collector_test.cc:14: }
On 2010/08/18 17:37:51, petkov wrote:
> How about ASSERT_TRUE(false)? Or something like that.
> 

Done.

http://codereview.chromium.org/3179006/diff/13001/14004#newcode17
crash_collector_test.cc:17: return false;
On 2010/08/18 17:37:51, petkov wrote:
> ASSERT_TRUE(false)?
> 

Done.

http://codereview.chromium.org/3179006/diff/13001/14004#newcode25
crash_collector_test.cc:25: }
On 2010/08/18 17:37:51, petkov wrote:
> Assert that the crash_count_function and feedback_allowed function pointers
are
> set correctly?
> 

Done.

http://codereview.chromium.org/3179006/diff/13001/14005
File crash_reporter.cc (right):

http://codereview.chromium.org/3179006/diff/13001/14005#newcode27
crash_reporter.cc:27: static const char kEmpty[] = "";
On 2010/08/18 17:37:51, petkov wrote:
> This has only a single use now. I suspect you may as well use "" directly in
> TouchFile.
> 

Done.

http://codereview.chromium.org/3179006/diff/13001/14005#newcode37
crash_reporter.cc:37: kCrashKindUser   = 2,
On 2010/08/18 17:37:51, petkov wrote:
> remove extra spaces before =
> 

Done.

http://codereview.chromium.org/3179006/diff/13001/14005#newcode153
crash_reporter.cc:153: user_collector.Initialize(CountUserCrash,
On 2010/08/18 17:37:51, petkov wrote:
> Can you add some comments on why user and clean shutdown collectors are always
> constructed and initialized while kernel is done only under an option? I think
> it's clear from reading the code but some text would help.

It was convenience over uniformity - so I switched it - now all three are
constructed at startup.

http://codereview.chromium.org/3179006/diff/13001/14008
File kernel_collector.h (right):

http://codereview.chromium.org/3179006/diff/13001/14008#newcode38
kernel_collector.h:38: static const char kClearingSequence[];
On 2010/08/18 17:37:51, petkov wrote:
> Not sure but I think this should be after the friend typedefs.
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698