mirror of
https://github.com/reactos/syzkaller.git
synced 2024-11-23 11:29:46 +00:00
pkg/host: use 'processor 0' as cpu model on s390x inside container
There is no field 'machine' in /proc/cpuinfo when we run inside a Docker container but there is a 'processor 0' field which provides the same information. Example: processor 0: version = 00, identification = 310C57, machine = 3906 Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
This commit is contained in:
parent
5a3d0ca04d
commit
8247808b71
@ -48,7 +48,7 @@ func checkCPUInfo(t *testing.T, scanner *bufio.Scanner) {
|
||||
|
||||
importantKeys := [][]string{
|
||||
{"vendor", "vendor_id", "CPU implementer"},
|
||||
{"model", "CPU part", "cpu model", "machine"},
|
||||
{"model", "CPU part", "cpu model", "machine", "processor 0"},
|
||||
{"flags", "features", "Features", "ASEs implemented", "type"},
|
||||
}
|
||||
for _, possibleNames := range importantKeys {
|
||||
|
Loading…
Reference in New Issue
Block a user