[Bug 1673557] Re: /proc/cpuinfo should be collected

Brian Murray brian at ubuntu.com
Tue Mar 28 23:17:37 UTC 2017


Actually given that we already have /proc/cpuinfo when the report is
being created we could just collapse that down in python with something
like:

short_list = []
for item in reversed(report['ProcCpuinfo'].split('\n')):
    short_list.append(item)
    if item.startswith('processor\t:'):
        break

short_list = reversed(short_list)

report['ShortProcCpuinfo'] = '\n'.join(short_list)

This still ends up catching Hardware, Revision, and Serial from arm and
will display the greatest processor number instead of 0 which might be
nice too.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apport in Ubuntu.
https://bugs.launchpad.net/bugs/1673557

Title:
  /proc/cpuinfo should be collected

Status in apport package in Ubuntu:
  Triaged
Status in whoopsie package in Ubuntu:
  Triaged

Bug description:
  apport does not currently collect data from /proc/cpuinfo and this
  would be useful to determine how many users can only run the i386
  version of Ubuntu.

  The general Ubuntu hook, possibly add_kernel_info() could be used,
  should be modified such that the contents of /proc/cpuinfo are
  gathered.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1673557/+subscriptions



More information about the foundations-bugs mailing list