pkg/host: use 'machine' field as cpu model on IBM/Z

Use the field 'machine' in /proc/cpuinfo on IBM/Z
to find out the "CPU model".

Signed-off-by: Alexander Egorenkov <Alexander.Egorenkov@ibm.com>
This commit is contained in:
Alexander Egorenkov 2020-09-15 11:49:33 +02:00 committed by Dmitry Vyukov
parent 6989d6f61d
commit 3b5eb29afb

View File

@ -48,7 +48,7 @@ func checkCPUInfo(t *testing.T, scanner *bufio.Scanner) {
importantKeys := [][]string{
{"vendor", "vendor_id", "CPU implementer"},
{"model", "CPU part", "cpu model"},
{"model", "CPU part", "cpu model", "machine"},
{"flags", "features", "Features", "ASEs implemented", "type"},
}
for _, possibleNames := range importantKeys {