Update go to 1.17 (#2159)

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
pull/2162/head
Julien Pivotto 2021-10-03 13:35:24 +02:00 committed by GitHub
parent 68f1e952c8
commit 68a6c78c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
115 changed files with 164 additions and 61 deletions

View File

@ -9,7 +9,7 @@ executors:
# should also be updated. # should also be updated.
golang: golang:
docker: docker:
- image: circleci/golang:1.16 - image: circleci/golang:1.17
jobs: jobs:
test: test:

View File

@ -1,7 +1,7 @@
go: go:
# Whenever the Go version is updated here, .circle/config.yml and # Whenever the Go version is updated here, .circle/config.yml and
# .promu.yml should also be updated. # .promu.yml should also be updated.
version: 1.16 version: 1.17
cgo: true cgo: true
repository: repository:
path: github.com/prometheus/node_exporter path: github.com/prometheus/node_exporter

View File

@ -1,7 +1,7 @@
go: go:
# Whenever the Go version is updated here, .circle/config.yml and # Whenever the Go version is updated here, .circle/config.yml and
# .promu-cgo.yml should also be updated. # .promu-cgo.yml should also be updated.
version: 1.16 version: 1.17
repository: repository:
path: github.com/prometheus/node_exporter path: github.com/prometheus/node_exporter
build: build:

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noarp
// +build !noarp // +build !noarp
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nobcache
// +build !nobcache // +build !nobcache
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nobonding
// +build !nobonding // +build !nobonding
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (freebsd || dragonfly || (openbsd && !amd64) || netbsd || darwin) && !noboottime
// +build freebsd dragonfly openbsd,!amd64 netbsd darwin // +build freebsd dragonfly openbsd,!amd64 netbsd darwin
// +build !noboottime // +build !noboottime

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noboottime
// +build !noboottime // +build !noboottime
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build solaris //go:build solaris && !noboottime
// +build !noboottime // +build solaris,!noboottime
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nobtrfs
// +build !nobtrfs // +build !nobtrfs
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nobtrfs
// +build !nobtrfs // +build !nobtrfs
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !nobuddyinfo //go:build !nobuddyinfo && !netbsd
// +build !netbsd // +build !nobuddyinfo,!netbsd
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noconntrack
// +build !noconntrack // +build !noconntrack
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -14,6 +14,7 @@
// Based on gopsutil/cpu/cpu_darwin_cgo.go @ ae251eb which is licensed under // Based on gopsutil/cpu/cpu_darwin_cgo.go @ ae251eb which is licensed under
// BSD. See https://github.com/shirou/gopsutil/blob/master/LICENSE for details. // BSD. See https://github.com/shirou/gopsutil/blob/master/LICENSE for details.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build openbsd,!amd64 //go:build openbsd && !amd64 && !nocpu
// +build !nocpu // +build openbsd,!amd64,!nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build solaris //go:build solaris && !nocpu
// +build !nocpu // +build solaris,!nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nocpu
// +build !nocpu // +build !nocpu
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build solaris //go:build solaris && !nocpu
// +build !nocpu // +build solaris,!nocpu
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodevstat
// +build !nodevstat // +build !nodevstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodevstat
// +build !nodevstat // +build !nodevstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodiskstats && (openbsd || linux || darwin)
// +build !nodiskstats // +build !nodiskstats
// +build openbsd linux darwin // +build openbsd linux darwin

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodiskstats
// +build !nodiskstats // +build !nodiskstats
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodiskstats
// +build !nodiskstats // +build !nodiskstats
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build openbsd,!amd64 //go:build openbsd && !amd64 && !nodiskstats
// +build !nodiskstats // +build openbsd,!amd64,!nodiskstats
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodiskstats
// +build !nodiskstats // +build !nodiskstats
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nodrbd
// +build !nodrbd // +build !nodrbd
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noedac
// +build !noedac // +build !noedac
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noentropy
// +build !noentropy // +build !noentropy
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noethtool
// +build !noethtool // +build !noethtool
// The hard work of collecting data from the kernel via the ethtool interfaces is done by // The hard work of collecting data from the kernel via the ethtool interfaces is done by

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (freebsd || dragonfly) && !noexec
// +build freebsd dragonfly // +build freebsd dragonfly
// +build !noexec // +build !noexec

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build linux //go:build linux && !nofibrechannel
// +build !nofibrechannel // +build linux,!nofibrechannel
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nofilefd
// +build !nofilefd // +build !nofilefd
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build ((openbsd && !amd64) || darwin || dragonfly) && !nofilesystem
// +build openbsd,!amd64 darwin dragonfly // +build openbsd,!amd64 darwin dragonfly
// +build !nofilesystem // +build !nofilesystem

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nofilesystem && (linux || freebsd || openbsd || darwin || dragonfly)
// +build !nofilesystem // +build !nofilesystem
// +build linux freebsd openbsd darwin dragonfly // +build linux freebsd openbsd darwin dragonfly

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nofilesystem
// +build !nofilesystem // +build !nofilesystem
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nofilesystem
// +build !nofilesystem // +build !nofilesystem
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build openbsd //go:build openbsd && !nofilesystem
// +build !nofilesystem // +build openbsd,!nofilesystem
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nohwmon
// +build !nohwmon // +build !nohwmon
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build linux //go:build linux && !noinfiniband
// +build !noinfiniband // +build linux,!noinfiniband
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (linux || openbsd) && !nointerrupts
// +build linux openbsd // +build linux openbsd
// +build !nointerrupts // +build !nointerrupts

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nointerrupts
// +build !nointerrupts // +build !nointerrupts
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build openbsd,!amd64 //go:build openbsd && !amd64 && !nointerrupts
// +build !nointerrupts // +build openbsd,!amd64,!nointerrupts
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nointerrupts
// +build !nointerrupts // +build !nointerrupts
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noipvs
// +build !noipvs // +build !noipvs
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noksmd
// +build !noksmd // +build !noksmd
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nokvm && (freebsd || dragonfly)
// +build !nokvm // +build !nokvm
// +build freebsd dragonfly // +build freebsd dragonfly

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nolnstat
// +build !nolnstat // +build !nolnstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && !noloadavg
// +build darwin dragonfly freebsd linux netbsd openbsd solaris // +build darwin dragonfly freebsd linux netbsd openbsd solaris
// +build !noloadavg // +build !noloadavg

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && !noloadavg
// +build darwin dragonfly freebsd netbsd openbsd // +build darwin dragonfly freebsd netbsd openbsd
// +build !noloadavg // +build !noloadavg

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noloadavg
// +build !noloadavg // +build !noloadavg
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noloadavg
// +build !noloadavg // +build !noloadavg
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nologind
// +build !nologind // +build !nologind
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nomdadm
// +build !nomdadm // +build !nomdadm
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (darwin || linux || openbsd) && !nomeminfo
// +build darwin linux openbsd // +build darwin linux openbsd
// +build !nomeminfo // +build !nomeminfo

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nomeminfo
// +build !nomeminfo // +build !nomeminfo
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nomeminfo
// +build !nomeminfo // +build !nomeminfo
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nomeminfo_numa
// +build !nomeminfo_numa // +build !nomeminfo_numa
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build openbsd,!amd64 //go:build openbsd && !amd64 && !nomeminfo
// +build !nomeminfo // +build openbsd,!amd64,!nomeminfo
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nomeminfo
// +build !nomeminfo // +build !nomeminfo
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (freebsd || dragonfly) && !nomeminfo
// +build freebsd dragonfly // +build freebsd dragonfly
// +build !nomeminfo // +build !nomeminfo

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nomountstats
// +build !nomountstats // +build !nomountstats
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !nonetclass //go:build !nonetclass && linux
// +build linux // +build !nonetclass,linux
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonetdev && (freebsd || dragonfly)
// +build !nonetdev // +build !nonetdev
// +build freebsd dragonfly // +build freebsd dragonfly

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonetdev
// +build !nonetdev // +build !nonetdev
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonetdev
// +build !nonetdev // +build !nonetdev
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build openbsd,!amd64 //go:build openbsd && !amd64 && !nonetdev
// +build !nonetdev // +build openbsd,!amd64,!nonetdev
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonetdev
// +build !nonetdev // +build !nonetdev
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonetstat
// +build !nonetstat // +build !nonetstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonetworkroute
// +build !nonetworkroute // +build !nonetworkroute
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonfs
// +build !nonfs // +build !nonfs
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nonfsd
// +build !nonfsd // +build !nonfsd
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nontp
// +build !nontp // +build !nontp
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build linux //go:build linux && !nonvme
// +build !nonvme // +build linux,!nonvme
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noperf
// +build !noperf // +build !noperf
package collector package collector
@ -284,21 +285,30 @@ func NewPerfCollector(logger log.Logger) (Collector, error) {
for _, cpu := range cpus { for _, cpu := range cpus {
// Use -1 to profile all processes on the CPU, see: // Use -1 to profile all processes on the CPU, see:
// man perf_event_open // man perf_event_open
hwProf := perf.NewHardwareProfiler(-1, cpu) hwProf, err := perf.NewHardwareProfiler(-1, cpu)
if err != nil {
return nil, err
}
if err := hwProf.Start(); err != nil { if err := hwProf.Start(); err != nil {
return nil, err return nil, err
} }
collector.perfHwProfilers[cpu] = &hwProf collector.perfHwProfilers[cpu] = &hwProf
collector.hwProfilerCPUMap[&hwProf] = cpu collector.hwProfilerCPUMap[&hwProf] = cpu
swProf := perf.NewSoftwareProfiler(-1, cpu) swProf, err := perf.NewSoftwareProfiler(-1, cpu)
if err != nil {
return nil, err
}
if err := swProf.Start(); err != nil { if err := swProf.Start(); err != nil {
return nil, err return nil, err
} }
collector.perfSwProfilers[cpu] = &swProf collector.perfSwProfilers[cpu] = &swProf
collector.swProfilerCPUMap[&swProf] = cpu collector.swProfilerCPUMap[&swProf] = cpu
cacheProf := perf.NewCacheProfiler(-1, cpu) cacheProf, err := perf.NewCacheProfiler(-1, cpu)
if err != nil {
return nil, err
}
if err := cacheProf.Start(); err != nil { if err := cacheProf.Start(); err != nil {
return nil, err return nil, err
} }

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noprocesses
// +build !noprocesses // +build !noprocesses
package collector package collector

View File

@ -11,8 +11,8 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// +build !nopowersupplyclass //go:build !nopowersupplyclass && linux
// +build linux // +build !nopowersupplyclass,linux
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nopressure
// +build !nopressure // +build !nopressure
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noprocesses
// +build !noprocesses // +build !noprocesses
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noprocesses
// +build !noprocesses // +build !noprocesses
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noqdisc
// +build !noqdisc // +build !noqdisc
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !norunit
// +build !norunit // +build !norunit
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !noshedstat
// +build !noshedstat // +build !noshedstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nosockstat
// +build !nosockstat // +build !nosockstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nosoftnet
// +build !nosoftnet // +build !nosoftnet
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nostat
// +build !nostat // +build !nostat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nosupervisord
// +build !nosupervisord // +build !nosupervisord
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build (freebsd || dragonfly || openbsd || netbsd || darwin) && cgo
// +build freebsd dragonfly openbsd netbsd darwin // +build freebsd dragonfly openbsd netbsd darwin
// +build cgo // +build cgo

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nosystemd
// +build !nosystemd // +build !nosystemd
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !notapestats
// +build !notapestats // +build !notapestats
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !notcpstat
// +build !notcpstat // +build !notcpstat
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !notextfile
// +build !notextfile // +build !notextfile
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !nothermalzone
// +build !nothermalzone // +build !nothermalzone
package collector package collector

View File

@ -11,6 +11,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
//go:build !notime
// +build !notime // +build !notime
package collector package collector

Some files were not shown because too many files have changed in this diff Show More