fatrace autopkgtests assume access to certain CPU registers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fatrace (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
While testing a newer implementation of the ubuntu proposed-migration test infrastructure, we discovered that the fatrace autopkgtest is depending on CPU registers that may not exist on the testbed. The existing infrastructure emulates an Intel core2duo, but the cpu architecture on the new infrastructure is a Xeon E312xx. The Xeon does not have the IDA (Intel Dynamic Acceleration) support which appears to be what supplies MSR 0xe8.
The bug I am reporting is that the test should account for the possibility that the hardware support is not present and do something other then generate an error (possibly a skipped test).
'ida' support can be grepped from 'cat /proc/cpuinfo'.
[log snippet with error messages]
Preparing to take measurements
unknown op '{'
read_msr cpu0 0xe8 : Input/output error
Measurement will begin in 5 seconds. Please make sure that the
computer is idle, i. e. do not press keys, start or operate programs, and that
programs are not busy with active tasks other than the one you want to examine.
Starting measurement for 60 seconds...
Measurement complete. Generating report...
Traceback (most recent call last):
File "/usr/sbin/
main()
File "/usr/sbin/
powertop_
File "/usr/sbin/
while not lines[i]:
IndexError: list index out of range
adt-run: DBG: testbed command exited with code 1
[full log]
See fatrace-adt-run.log attached
There is no log attached, so I tried to reproduce this locally:
$ qemu-system-x86_64 -cpu help|grep Xeon
x86 SandyBridge Intel Xeon E312xx (Sandy Bridge)
$ adt-run fatrace --- qemu --qemu- options= '-cpu SandyBridge' /srv/vm/ adt-vivid- amd64-cloud. img
I get the same error.