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

Issue 6599022: Add ARM support (Closed)

Created:
9 years, 10 months ago by sjg
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Visibility:
Public.

Description

Add ARM support Adds support for scanning ARM backtraces so that kernel crash reporting can work on ARM. BUG=chromium-os:12454 TEST=cat /sys/kernel/debug/preserved/kcrash > x crash_reporter -generate_kernel_signature x Verify that it finds a backtrace properly. FEATURES=test emerge-x86-mario crash-reporter - check all tests pass (this will run both ARM and X86 tests) Change-Id: I4dc6d7a2bae53d05883da9425ec8e9ac4a5c2bba Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=a0a089a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Tidied up architecture variations #

Total comments: 8

Patch Set 3 : Add tests for ARM #

Total comments: 22

Patch Set 4 : Refactored tests a little, var change, comments, nits #

Total comments: 6

Patch Set 5 : Further checking, renamed common function #

Patch Set 6 : Use Enable() function to check architecture #

Total comments: 4

Patch Set 7 : Removed 3 tests from ARM as they don't really test anything new #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -36 lines) Patch
M kernel_collector.h View 1 2 3 3 chunks +19 lines, -0 lines 0 comments Download
M kernel_collector.cc View 1 2 3 4 5 4 chunks +66 lines, -10 lines 0 comments Download
M kernel_collector_test.cc View 1 2 3 4 5 6 5 chunks +95 lines, -26 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
sjg
9 years, 10 months ago (2011-02-26 02:03:28 UTC) #1
kmixter1
Please add at least one ARM unit test to kernel_collector_test. http://codereview.chromium.org/6599022/diff/1/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/1/kernel_collector.cc#newcode105 ...
9 years, 9 months ago (2011-03-07 23:16:58 UTC) #2
sjg
No new version yet, just a question - thanks. http://codereview.chromium.org/6599022/diff/1/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/1/kernel_collector.cc#newcode105 kernel_collector.cc:105: ...
9 years, 9 months ago (2011-03-15 19:39:35 UTC) #3
kmixter1
http://codereview.chromium.org/6599022/diff/1/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/1/kernel_collector.cc#newcode105 kernel_collector.cc:105: "\\s+\\[<[[:xdigit:]]+>\\]" // Matches " [<7937bcee>]" On 2011/03/15 19:39:35, sjg ...
9 years, 9 months ago (2011-03-17 16:53:30 UTC) #4
sjg
PTAL thanks
9 years, 9 months ago (2011-03-24 23:50:18 UTC) #5
sjg
Here it is! Thanks for taking a look - Simon
9 years, 9 months ago (2011-03-28 23:15:23 UTC) #6
thieule
On 2011/03/28 23:15:23, sjg wrote: > Here it is! Thanks for taking a look - ...
9 years, 9 months ago (2011-03-28 23:38:56 UTC) #7
Michael Krebs
Here are my thoughts. It may be that nothing needs to be changed (other than ...
9 years, 9 months ago (2011-03-29 02:20:18 UTC) #8
sjg
PTAL thanks. http://codereview.chromium.org/6599022/diff/6001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/6001/kernel_collector.cc#newcode22 kernel_collector.cc:22: // to count towards the not be ...
9 years, 8 months ago (2011-04-01 20:04:14 UTC) #9
sjg
ping - any thoughts on this please?
9 years, 8 months ago (2011-04-04 18:21:15 UTC) #10
kmixter1
http://codereview.chromium.org/6599022/diff/16001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/16001/kernel_collector.cc#newcode28 kernel_collector.cc:28: * For ARM we see: Could you change the ...
9 years, 8 months ago (2011-04-05 00:09:26 UTC) #11
Michael Krebs
http://codereview.chromium.org/6599022/diff/6001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/6001/kernel_collector.cc#newcode180 kernel_collector.cc:180: pcrecpp::RE eip_re(kTimestampRegex + pcRegex[GetArch()], On 2011/04/01 20:04:15, sjg wrote: ...
9 years, 8 months ago (2011-04-05 00:43:56 UTC) #12
sjg
PTAL thanks http://codereview.chromium.org/6599022/diff/16001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/16001/kernel_collector.cc#newcode28 kernel_collector.cc:28: * For ARM we see: On 2011/04/05 ...
9 years, 8 months ago (2011-04-05 17:45:04 UTC) #13
kmixter1
LGTM with nits http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc#newcode49 kernel_collector.cc:49: if (arch_ == archUnknown || !s_pc_regex[arch_]) ...
9 years, 8 months ago (2011-04-05 17:56:52 UTC) #14
sjg
Updated for review comments. Had a small Q though - see comments. http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc File kernel_collector.cc ...
9 years, 8 months ago (2011-04-05 18:25:54 UTC) #15
Michael Krebs
LGTM assuming kmixter1 still approves. http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc#newcode49 kernel_collector.cc:49: if (arch_ == archUnknown ...
9 years, 8 months ago (2011-04-05 21:02:15 UTC) #16
kmixter1
http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc File kernel_collector.cc (right): http://codereview.chromium.org/6599022/diff/22001/kernel_collector.cc#newcode49 kernel_collector.cc:49: if (arch_ == archUnknown || !s_pc_regex[arch_]) On 2011/04/05 21:02:15, ...
9 years, 8 months ago (2011-04-05 21:23:56 UTC) #17
sjg
PTAL I have moved the check into Enable() and added the compiler assert.
9 years, 8 months ago (2011-04-05 22:09:45 UTC) #18
Michael Krebs
LGTM
9 years, 8 months ago (2011-04-05 23:19:04 UTC) #19
kmixter1
http://codereview.chromium.org/6599022/diff/18006/kernel_collector_test.cc File kernel_collector_test.cc (right): http://codereview.chromium.org/6599022/diff/18006/kernel_collector_test.cc#newcode252 kernel_collector_test.cc:252: const char kPCButNoStack[] = So kPCButNoStack/kPCLineTooOld/kExamplePanicOnly are still duplicated ...
9 years, 8 months ago (2011-04-05 23:29:11 UTC) #20
sjg
I think you are seeing duplications where there aren't any. Or are you suggesting parameterizing ...
9 years, 8 months ago (2011-04-06 02:02:57 UTC) #21
kmixter1
9 years, 8 months ago (2011-04-06 04:13:55 UTC) #22
LGTM - Yeah, I see now, they're different because they parenthesize
the function names for ARM and x86 differently.  Since they're just
testing edge conditions, they really don't need to be done for both
x86 and ARM.  I'd prefer if you removed those test cases from the ARM
test function and just ran the common ones.  But either way is fine.

On Tue, Apr 5, 2011 at 7:02 PM,  <sjg@chromium.org> wrote:
> I think you are seeing duplications where there aren't any. Or are you
> suggesting parameterizing the dumps?
>
> PTAL thanks
>
>
>
> http://codereview.chromium.org/6599022/diff/18006/kernel_collector_test.cc
> File kernel_collector_test.cc (right):
>
>
http://codereview.chromium.org/6599022/diff/18006/kernel_collector_test.cc#ne...
> kernel_collector_test.cc:252: const char kPCButNoStack[] =
> On 2011/04/05 23:29:11, kmixter1 wrote:
>>
>> So kPCButNoStack/kPCLineTooOld/kExamplePanicOnly are still duplicated
>
> between
>>
>> x86 and arm. CAn't they be refactored out into the ocmmon function
>
> too?
>
> They look different to me?
>
>
http://codereview.chromium.org/6599022/diff/18006/kernel_collector_test.cc#ne...
> kernel_collector_test.cc:269: // Panic without EIP line.
> On 2011/04/05 23:29:11, kmixter1 wrote:
>>
>> The EIP typo will go away if you combine these. :)
>
> Ooops, saw that a while back and forgot to fix...
>
> http://codereview.chromium.org/6599022/
>

Powered by Google App Engine
This is Rietveld 408576698