diff options
| author | Alexander Egorenkov <Alexander.Egorenkov@ibm.com> | 2020-09-15 11:49:33 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-15 15:06:24 +0200 |
| commit | 3b5eb29afbe5b6441b69128679b387440942fdf9 (patch) | |
| tree | 766b51e68b96752d98504391fa04ab6d72cc031d /pkg/host/machine_info_linux_test.go | |
| parent | 6989d6f61d7d7db02083998790f6dd247d8d7307 (diff) | |
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>
Diffstat (limited to 'pkg/host/machine_info_linux_test.go')
| -rw-r--r-- | pkg/host/machine_info_linux_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/host/machine_info_linux_test.go b/pkg/host/machine_info_linux_test.go index a96ca232f..6cd3ca4f3 100644 --- a/pkg/host/machine_info_linux_test.go +++ b/pkg/host/machine_info_linux_test.go @@ -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 { |
