Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Issue 540003: Improve ARM CPU info reporting. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by digit
Modified:
11 years, 5 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
http://google-breakpad.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Improve ARM CPU info reporting.

This patch improves several things for Linux/ARM:

- Better detection of the number of CPUs on the target
  device. The content of /proc/cpuinfo only matches the
  number of "online" CPUs, which varies over time with
  recent Android devices.

- Reconstruct the CPUID and ELF hwcaps values from
  /proc/cpuinfo, this is useful to better identify
  target devices in minidumps.

- Make minidump_dump display the new information
  in useful ways.

- Write a small helper class to parse /proc/cpuinfo
  and also use it for x86/64.

- Write a small helper class to parse sysfds cpu lists.

- Add a my_memchr() implementation.

- Add unit tests.

Tested on a Nexus S (1 CPU), Galaxy Nexus (2 CPUs)
and a Nexus 4 (4 CPUs).

Patch Set 1 #

Total comments: 19

Patch Set 2 : #

Patch Set 3 : #

Total comments: 26

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M Makefile.am View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M Makefile.in View 1 2 3 4 11 chunks +44 lines, -0 lines 0 comments Download
A src/client/linux/minidump_writer/cpu_set.h View 1 1 chunk +144 lines, -0 lines 0 comments Download
A src/client/linux/minidump_writer/cpu_set_unittest.cc View 1 2 3 1 chunk +165 lines, -0 lines 0 comments Download
M src/client/linux/minidump_writer/line_reader_unittest.cc View 1 2 3 4 6 chunks +36 lines, -63 lines 0 comments Download
M src/client/linux/minidump_writer/minidump_writer.cc View 1 2 3 4 11 chunks +221 lines, -62 lines 0 comments Download
A src/client/linux/minidump_writer/proc_cpuinfo_reader.h View 1 2 3 1 chunk +130 lines, -0 lines 0 comments Download
A src/client/linux/minidump_writer/proc_cpuinfo_reader_unittest.cc View 1 2 3 1 chunk +200 lines, -0 lines 0 comments Download
M src/common/linux/linux_libc_support.cc View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download
M src/common/linux/linux_libc_support.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/common/linux/linux_libc_support_unittest.cc View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
A src/common/tests/auto_testfile.h View 1 2 3 1 chunk +127 lines, -0 lines 0 comments Download
M src/google_breakpad/common/minidump_format.h View 1 2 3 4 2 chunks +29 lines, -1 line 0 comments Download
M src/processor/minidump_processor.cc View 1 2 3 4 2 chunks +123 lines, -0 lines 0 comments Download
M src/processor/synth_minidump.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 13
digit
for the record, this is intended to be a better version of http://breakpad.appspot.com/427002/
11 years, 6 months ago #1
Mark Mentovai
Nice work. Ted may have comments too. I didn’t review the cpuinfo parsing carefully because ...
11 years, 6 months ago #2
Lei Zhang (chromium)
Do we have unit tests for the /proc/cpuinfo parsing code? I remember we had some ...
11 years, 6 months ago #3
digit
Humm, Patch Set 1 is missing several source files, including the /proc/cpuinfo parser and its ...
11 years, 6 months ago #4
Lei Zhang (chromium)
On 2013/03/21 21:32:38, digit wrote: > Humm, Patch Set 1 is missing several source files, ...
11 years, 6 months ago #5
digit
http://breakpad.appspot.com/540003/diff/1/src/client/linux/minidump_writer/minidump_writer.cc File src/client/linux/minidump_writer/minidump_writer.cc (right): http://breakpad.appspot.com/540003/diff/1/src/client/linux/minidump_writer/minidump_writer.cc#newcode69 src/client/linux/minidump_writer/minidump_writer.cc:69: #include "client/linux/minidump_writer/proc_cpuinfo_reader.h" On 2013/03/21 19:13:09, Mark Mentovai wrote: > ...
11 years, 6 months ago #6
digit
ping?
11 years, 6 months ago #7
Ted Mielczarek
Sorry, forgot about this. I only have one objection, the default CPU info in minidump_writer.cc. ...
11 years, 6 months ago #8
digit
http://breakpad.appspot.com/540003/diff/11001/src/client/linux/minidump_writer/minidump_writer.cc File src/client/linux/minidump_writer/minidump_writer.cc (right): http://breakpad.appspot.com/540003/diff/11001/src/client/linux/minidump_writer/minidump_writer.cc#newcode1307 src/client/linux/minidump_writer/minidump_writer.cc:1307: #elif defined(__ARM_EABI__) I really don't know, we can probably ...
11 years, 6 months ago #9
Ted Mielczarek
LGTM I'm not really concerned about the naming of auto_testfile.h.
11 years, 6 months ago #10
Ted Mielczarek
Doesn't look like you landed this. FYI.
11 years, 5 months ago #11
digit
Sorry, that's right. I've rebased to a more recent upstream in Patch Set 5.
11 years, 5 months ago #12
digit
11 years, 5 months ago #13
Commited as 1160
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1004:630ec63f810e-tainted