From f39f665d0749cc3db19fd01148f6c3fd031ddccd Mon Sep 17 00:00:00 2001 From: Ben Kochie Date: Wed, 10 Jun 2020 13:43:26 +0200 Subject: [PATCH] Add CPUInfo parser for mipsle Use mips CPUInfo parser for mipsle. They appear to have identical cpuinfo output. https://github.com/prometheus/node_exporter/pull/1735 Signed-off-by: Ben Kochie --- cpuinfo_mipsle.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cpuinfo_mipsle.go diff --git a/cpuinfo_mipsle.go b/cpuinfo_mipsle.go new file mode 100644 index 000000000..22d93f8ef --- /dev/null +++ b/cpuinfo_mipsle.go @@ -0,0 +1,18 @@ +// Copyright 2020 The Prometheus Authors +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// +build linux + +package procfs + +var parseCPUInfo = parseCPUInfoMips