diff options
| author | Alexander Egorenkov <Alexander.Egorenkov@ibm.com> | 2020-09-16 17:31:11 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-09-16 21:15:40 +0200 |
| commit | 8247808b71d540d96d8c28ea2854f1c5d1afb8ba (patch) | |
| tree | 7d95c9ca7daa8bb6ea7383fcc74bf57da3bae7c7 /pkg/host/machine_info_linux_test.go | |
| parent | 5a3d0ca04dace7da1d5b6c75a4fbd73cb5fb7a81 (diff) | |
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>
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 6cd3ca4f3..e70c62a59 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", "machine"}, + {"model", "CPU part", "cpu model", "machine", "processor 0"}, {"flags", "features", "Features", "ASEs implemented", "type"}, } for _, possibleNames := range importantKeys { |
