aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gier <pgier@redhat.com>2019-05-06 23:38:21 -0500
committerBen Kochie <superq@gmail.com>2019-05-07 06:38:21 +0200
commit86f907942939fac63fb4bf6c8cabae8ca4f3b975 (patch)
treebb20217234eb5df9221ded08cd9925291b791981
parentc7abeae816a8170ed8e78c68dc15ee3c10eef2ef (diff)
downloadprometheus_node_collector-86f907942939fac63fb4bf6c8cabae8ca4f3b975.tar.bz2
prometheus_node_collector-86f907942939fac63fb4bf6c8cabae8ca4f3b975.tar.xz
prometheus_node_collector-86f907942939fac63fb4bf6c8cabae8ca4f3b975.zip
update procfs to latest (#1335)
Updates for procfs refactoring Signed-off-by: Paul Gier <pgier@redhat.com>
-rw-r--r--collector/bcache_linux.go7
-rw-r--r--collector/nfs_linux.go7
-rw-r--r--collector/nfsd_linux.go7
-rw-r--r--collector/xfs_linux.go7
-rw-r--r--go.mod4
-rw-r--r--go.sum8
-rw-r--r--vendor/github.com/prometheus/procfs/.golangci.yml6
-rw-r--r--vendor/github.com/prometheus/procfs/Makefile10
-rw-r--r--vendor/github.com/prometheus/procfs/Makefile.common140
-rw-r--r--vendor/github.com/prometheus/procfs/bcache/get.go46
-rw-r--r--vendor/github.com/prometheus/procfs/buddyinfo.go2
-rw-r--r--vendor/github.com/prometheus/procfs/fixtures.ttar1414
-rw-r--r--vendor/github.com/prometheus/procfs/fs.go67
-rw-r--r--vendor/github.com/prometheus/procfs/internal/fs/fs.go52
-rw-r--r--vendor/github.com/prometheus/procfs/internal/util/sysreadfile.go (renamed from vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go)2
-rw-r--r--vendor/github.com/prometheus/procfs/internal/util/sysreadfile_compat.go26
-rw-r--r--vendor/github.com/prometheus/procfs/ipvs.go4
-rw-r--r--vendor/github.com/prometheus/procfs/mdstat.go2
-rw-r--r--vendor/github.com/prometheus/procfs/net_dev.go2
-rw-r--r--vendor/github.com/prometheus/procfs/nfs/nfs.go50
-rw-r--r--vendor/github.com/prometheus/procfs/proc.go16
-rw-r--r--vendor/github.com/prometheus/procfs/proc_psi.go2
-rw-r--r--vendor/github.com/prometheus/procfs/proc_stat.go9
-rw-r--r--vendor/github.com/prometheus/procfs/stat.go2
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go188
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/class_thermal.go2
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar1048
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/fs.go87
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/net_class.go35
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/system_cpu.go8
-rw-r--r--vendor/github.com/prometheus/procfs/xfrm.go2
-rw-r--r--vendor/github.com/prometheus/procfs/xfs/xfs.go81
-rw-r--r--vendor/modules.txt5
33 files changed, 1966 insertions, 1382 deletions
diff --git a/collector/bcache_linux.go b/collector/bcache_linux.go
index 56383f9..c406c11 100644
--- a/collector/bcache_linux.go
+++ b/collector/bcache_linux.go
@@ -21,7 +21,6 @@ import (
21 // https://godoc.org/github.com/prometheus/client_golang/prometheus 21 // https://godoc.org/github.com/prometheus/client_golang/prometheus
22 "github.com/prometheus/client_golang/prometheus" 22 "github.com/prometheus/client_golang/prometheus"
23 "github.com/prometheus/procfs/bcache" 23 "github.com/prometheus/procfs/bcache"
24 "github.com/prometheus/procfs/sysfs"
25) 24)
26 25
27func init() { 26func init() {
@@ -30,13 +29,13 @@ func init() {
30 29
31// A bcacheCollector is a Collector which gathers metrics from Linux bcache. 30// A bcacheCollector is a Collector which gathers metrics from Linux bcache.
32type bcacheCollector struct { 31type bcacheCollector struct {
33 fs sysfs.FS 32 fs bcache.FS
34} 33}
35 34
36// NewBcacheCollector returns a newly allocated bcacheCollector. 35// NewBcacheCollector returns a newly allocated bcacheCollector.
37// It exposes a number of Linux bcache statistics. 36// It exposes a number of Linux bcache statistics.
38func NewBcacheCollector() (Collector, error) { 37func NewBcacheCollector() (Collector, error) {
39 fs, err := sysfs.NewFS(*sysPath) 38 fs, err := bcache.NewFS(*sysPath)
40 if err != nil { 39 if err != nil {
41 return nil, fmt.Errorf("failed to open sysfs: %v", err) 40 return nil, fmt.Errorf("failed to open sysfs: %v", err)
42 } 41 }
@@ -49,7 +48,7 @@ func NewBcacheCollector() (Collector, error) {
49// Update reads and exposes bcache stats. 48// Update reads and exposes bcache stats.
50// It implements the Collector interface. 49// It implements the Collector interface.
51func (c *bcacheCollector) Update(ch chan<- prometheus.Metric) error { 50func (c *bcacheCollector) Update(ch chan<- prometheus.Metric) error {
52 stats, err := c.fs.BcacheStats() 51 stats, err := c.fs.Stats()
53 if err != nil { 52 if err != nil {
54 return fmt.Errorf("failed to retrieve bcache stats: %v", err) 53 return fmt.Errorf("failed to retrieve bcache stats: %v", err)
55 } 54 }
diff --git a/collector/nfs_linux.go b/collector/nfs_linux.go
index 074a8c2..b5f6c64 100644
--- a/collector/nfs_linux.go
+++ b/collector/nfs_linux.go
@@ -20,7 +20,6 @@ import (
20 20
21 "github.com/prometheus/client_golang/prometheus" 21 "github.com/prometheus/client_golang/prometheus"
22 "github.com/prometheus/common/log" 22 "github.com/prometheus/common/log"
23 "github.com/prometheus/procfs"
24 "github.com/prometheus/procfs/nfs" 23 "github.com/prometheus/procfs/nfs"
25) 24)
26 25
@@ -29,7 +28,7 @@ const (
29) 28)
30 29
31type nfsCollector struct { 30type nfsCollector struct {
32 fs procfs.FS 31 fs nfs.FS
33 nfsNetReadsDesc *prometheus.Desc 32 nfsNetReadsDesc *prometheus.Desc
34 nfsNetConnectionsDesc *prometheus.Desc 33 nfsNetConnectionsDesc *prometheus.Desc
35 nfsRPCOperationsDesc *prometheus.Desc 34 nfsRPCOperationsDesc *prometheus.Desc
@@ -44,7 +43,7 @@ func init() {
44 43
45// NewNfsCollector returns a new Collector exposing NFS statistics. 44// NewNfsCollector returns a new Collector exposing NFS statistics.
46func NewNfsCollector() (Collector, error) { 45func NewNfsCollector() (Collector, error) {
47 fs, err := procfs.NewFS(*procPath) 46 fs, err := nfs.NewFS(*procPath)
48 if err != nil { 47 if err != nil {
49 return nil, fmt.Errorf("failed to open procfs: %v", err) 48 return nil, fmt.Errorf("failed to open procfs: %v", err)
50 } 49 }
@@ -91,7 +90,7 @@ func NewNfsCollector() (Collector, error) {
91} 90}
92 91
93func (c *nfsCollector) Update(ch chan<- prometheus.Metric) error { 92func (c *nfsCollector) Update(ch chan<- prometheus.Metric) error {
94 stats, err := c.fs.NFSClientRPCStats() 93 stats, err := c.fs.ClientRPCStats()
95 if err != nil { 94 if err != nil {
96 if os.IsNotExist(err) { 95 if os.IsNotExist(err) {
97 log.Debugf("Not collecting NFS metrics: %s", err) 96 log.Debugf("Not collecting NFS metrics: %s", err)
diff --git a/collector/nfsd_linux.go b/collector/nfsd_linux.go
index fd2be58..fe6ff71 100644
--- a/collector/nfsd_linux.go
+++ b/collector/nfsd_linux.go
@@ -19,14 +19,13 @@ import (
19 19
20 "github.com/prometheus/client_golang/prometheus" 20 "github.com/prometheus/client_golang/prometheus"
21 "github.com/prometheus/common/log" 21 "github.com/prometheus/common/log"
22 "github.com/prometheus/procfs"
23 "github.com/prometheus/procfs/nfs" 22 "github.com/prometheus/procfs/nfs"
24) 23)
25 24
26// A nfsdCollector is a Collector which gathers metrics from /proc/net/rpc/nfsd. 25// A nfsdCollector is a Collector which gathers metrics from /proc/net/rpc/nfsd.
27// See: https://www.svennd.be/nfsd-stats-explained-procnetrpcnfsd/ 26// See: https://www.svennd.be/nfsd-stats-explained-procnetrpcnfsd/
28type nfsdCollector struct { 27type nfsdCollector struct {
29 fs procfs.FS 28 fs nfs.FS
30 requestsDesc *prometheus.Desc 29 requestsDesc *prometheus.Desc
31} 30}
32 31
@@ -40,7 +39,7 @@ const (
40 39
41// NewNFSdCollector returns a new Collector exposing /proc/net/rpc/nfsd statistics. 40// NewNFSdCollector returns a new Collector exposing /proc/net/rpc/nfsd statistics.
42func NewNFSdCollector() (Collector, error) { 41func NewNFSdCollector() (Collector, error) {
43 fs, err := procfs.NewFS(*procPath) 42 fs, err := nfs.NewFS(*procPath)
44 if err != nil { 43 if err != nil {
45 return nil, fmt.Errorf("failed to open procfs: %v", err) 44 return nil, fmt.Errorf("failed to open procfs: %v", err)
46 } 45 }
@@ -57,7 +56,7 @@ func NewNFSdCollector() (Collector, error) {
57 56
58// Update implements Collector. 57// Update implements Collector.
59func (c *nfsdCollector) Update(ch chan<- prometheus.Metric) error { 58func (c *nfsdCollector) Update(ch chan<- prometheus.Metric) error {
60 stats, err := c.fs.NFSdServerRPCStats() 59 stats, err := c.fs.ServerRPCStats()
61 if err != nil { 60 if err != nil {
62 if os.IsNotExist(err) { 61 if os.IsNotExist(err) {
63 log.Debugf("Not collecting NFSd metrics: %s", err) 62 log.Debugf("Not collecting NFSd metrics: %s", err)
diff --git a/collector/xfs_linux.go b/collector/xfs_linux.go
index d1e2399..34228b3 100644
--- a/collector/xfs_linux.go
+++ b/collector/xfs_linux.go
@@ -17,13 +17,12 @@ import (
17 "fmt" 17 "fmt"
18 18
19 "github.com/prometheus/client_golang/prometheus" 19 "github.com/prometheus/client_golang/prometheus"
20 "github.com/prometheus/procfs/sysfs"
21 "github.com/prometheus/procfs/xfs" 20 "github.com/prometheus/procfs/xfs"
22) 21)
23 22
24// An xfsCollector is a Collector which gathers metrics from XFS filesystems. 23// An xfsCollector is a Collector which gathers metrics from XFS filesystems.
25type xfsCollector struct { 24type xfsCollector struct {
26 fs sysfs.FS 25 fs xfs.FS
27} 26}
28 27
29func init() { 28func init() {
@@ -32,7 +31,7 @@ func init() {
32 31
33// NewXFSCollector returns a new Collector exposing XFS statistics. 32// NewXFSCollector returns a new Collector exposing XFS statistics.
34func NewXFSCollector() (Collector, error) { 33func NewXFSCollector() (Collector, error) {
35 fs, err := sysfs.NewFS(*sysPath) 34 fs, err := xfs.NewFS(*procPath, *sysPath)
36 if err != nil { 35 if err != nil {
37 return nil, fmt.Errorf("failed to open sysfs: %v", err) 36 return nil, fmt.Errorf("failed to open sysfs: %v", err)
38 } 37 }
@@ -44,7 +43,7 @@ func NewXFSCollector() (Collector, error) {
44 43
45// Update implements Collector. 44// Update implements Collector.
46func (c *xfsCollector) Update(ch chan<- prometheus.Metric) error { 45func (c *xfsCollector) Update(ch chan<- prometheus.Metric) error {
47 stats, err := c.fs.XFSStats() 46 stats, err := c.fs.SysStats()
48 if err != nil { 47 if err != nil {
49 return fmt.Errorf("failed to retrieve XFS stats: %v", err) 48 return fmt.Errorf("failed to retrieve XFS stats: %v", err)
50 } 49 }
diff --git a/go.mod b/go.mod
index d9e7939..b3630e9 100644
--- a/go.mod
+++ b/go.mod
@@ -16,13 +16,13 @@ require (
16 github.com/prometheus/client_golang v0.9.2 16 github.com/prometheus/client_golang v0.9.2
17 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 17 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
18 github.com/prometheus/common v0.2.0 18 github.com/prometheus/common v0.2.0
19 github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd 19 github.com/prometheus/procfs v0.0.0-20190503130316-740c07785007
20 github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 20 github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745
21 github.com/sirupsen/logrus v1.4.1 // indirect 21 github.com/sirupsen/logrus v1.4.1 // indirect
22 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a 22 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a
23 github.com/stretchr/testify v1.3.0 // indirect 23 github.com/stretchr/testify v1.3.0 // indirect
24 golang.org/x/net v0.0.0-20190328230028-74de082e2cca // indirect 24 golang.org/x/net v0.0.0-20190328230028-74de082e2cca // indirect
25 golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 // indirect 25 golang.org/x/sync v0.0.0-20190423024810-112230192c58 // indirect
26 golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c 26 golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c
27 gopkg.in/alecthomas/kingpin.v2 v2.2.6 27 gopkg.in/alecthomas/kingpin.v2 v2.2.6
28) 28)
diff --git a/go.sum b/go.sum
index 5e592b3..661ae5b 100644
--- a/go.sum
+++ b/go.sum
@@ -61,8 +61,8 @@ github.com/prometheus/common v0.2.0 h1:kUZDBDTdBVBYBj5Tmh2NZLlF60mfjA27rM34b+cVw
61github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= 61github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
62github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 62github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
63github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 63github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
64github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd h1:pi7bGw6n4tfgHQtWDxJBBLYVdFr1GlfQEsDOyCDDFMM= 64github.com/prometheus/procfs v0.0.0-20190503130316-740c07785007 h1:gT4PpkbWSQM4J8fup/aXeQhY5jLDyHuPq8y2dHspqFw=
65github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 65github.com/prometheus/procfs v0.0.0-20190503130316-740c07785007/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
66github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA= 66github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA=
67github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8= 67github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8=
68github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 68github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
@@ -86,8 +86,8 @@ golang.org/x/sync v0.0.0-20181108010431-42b317875d0f h1:Bl/8QSvNqXvPGPGXa2z5xUTm
86golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 86golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
87golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= 87golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw=
88golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 88golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
89golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 h1:bjcUS9ztw9kFmmIxJInhon/0Is3p+EHBKNgquIzo1OI= 89golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
90golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 90golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
91golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 91golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
92golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 92golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
93golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 93golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
diff --git a/vendor/github.com/prometheus/procfs/.golangci.yml b/vendor/github.com/prometheus/procfs/.golangci.yml
new file mode 100644
index 0000000..438ca92
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/.golangci.yml
@@ -0,0 +1,6 @@
1# Run only staticcheck for now. Additional linters will be enabled one-by-one.
2linters:
3 enable:
4 - staticcheck
5 - govet
6 disable-all: true
diff --git a/vendor/github.com/prometheus/procfs/Makefile b/vendor/github.com/prometheus/procfs/Makefile
index 947d7d8..314d1ba 100644
--- a/vendor/github.com/prometheus/procfs/Makefile
+++ b/vendor/github.com/prometheus/procfs/Makefile
@@ -17,14 +17,12 @@ include Makefile.common
17 ./ttar -C $(dir $*) -x -f $*.ttar 17 ./ttar -C $(dir $*) -x -f $*.ttar
18 touch $@ 18 touch $@
19 19
20update_fixtures: fixtures.ttar sysfs/fixtures.ttar 20update_fixtures:
21 21 rm -vf fixtures/.unpacked
22%fixtures.ttar: %/fixtures 22 ./ttar -c -f fixtures.ttar fixtures/
23 rm -v $(dir $*)fixtures/.unpacked
24 ./ttar -C $(dir $*) -c -f $*fixtures.ttar fixtures/
25 23
26.PHONY: build 24.PHONY: build
27build: 25build:
28 26
29.PHONY: test 27.PHONY: test
30test: fixtures/.unpacked sysfs/fixtures/.unpacked common-test 28test: fixtures/.unpacked common-test
diff --git a/vendor/github.com/prometheus/procfs/Makefile.common b/vendor/github.com/prometheus/procfs/Makefile.common
index 741579e..73052b3 100644
--- a/vendor/github.com/prometheus/procfs/Makefile.common
+++ b/vendor/github.com/prometheus/procfs/Makefile.common
@@ -29,12 +29,15 @@ GO ?= go
29GOFMT ?= $(GO)fmt 29GOFMT ?= $(GO)fmt
30FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) 30FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH)))
31GOOPTS ?= 31GOOPTS ?=
32GOHOSTOS ?= $(shell $(GO) env GOHOSTOS)
33GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH)
32 34
33GO_VERSION ?= $(shell $(GO) version) 35GO_VERSION ?= $(shell $(GO) version)
34GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) 36GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION))
35PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') 37PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.')
36 38
37unexport GOVENDOR 39GOVENDOR :=
40GO111MODULE :=
38ifeq (, $(PRE_GO_111)) 41ifeq (, $(PRE_GO_111))
39 ifneq (,$(wildcard go.mod)) 42 ifneq (,$(wildcard go.mod))
40 # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI). 43 # Enforce Go modules support just in case the directory is inside GOPATH (and for Travis CI).
@@ -55,32 +58,56 @@ $(warning Some recipes may not work as expected as the current Go runtime is '$(
55 # This repository isn't using Go modules (yet). 58 # This repository isn't using Go modules (yet).
56 GOVENDOR := $(FIRST_GOPATH)/bin/govendor 59 GOVENDOR := $(FIRST_GOPATH)/bin/govendor
57 endif 60 endif
58
59 unexport GO111MODULE
60endif 61endif
61PROMU := $(FIRST_GOPATH)/bin/promu 62PROMU := $(FIRST_GOPATH)/bin/promu
62STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck
63pkgs = ./... 63pkgs = ./...
64 64
65GO_VERSION ?= $(shell $(GO) version) 65ifeq (arm, $(GOHOSTARCH))
66GO_BUILD_PLATFORM ?= $(subst /,-,$(lastword $(GO_VERSION))) 66 GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM)
67 GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM)
68else
69 GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)
70endif
67 71
68PROMU_VERSION ?= 0.2.0 72PROMU_VERSION ?= 0.3.0
69PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz 73PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz
70 74
75GOLANGCI_LINT :=
76GOLANGCI_LINT_VERSION ?= v1.16.0
77# golangci-lint only supports linux, darwin and windows platforms on i386/amd64.
78# windows isn't included here because of the path separator being different.
79ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin))
80 ifeq ($(GOHOSTARCH),$(filter $(GOHOSTARCH),amd64 i386))
81 GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint
82 endif
83endif
84
71PREFIX ?= $(shell pwd) 85PREFIX ?= $(shell pwd)
72BIN_DIR ?= $(shell pwd) 86BIN_DIR ?= $(shell pwd)
73DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) 87DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD))
74DOCKER_REPO ?= prom 88DOCKER_REPO ?= prom
75 89
76.PHONY: all 90DOCKER_ARCHS ?= amd64
77all: precheck style staticcheck unused build test 91
92BUILD_DOCKER_ARCHS = $(addprefix common-docker-,$(DOCKER_ARCHS))
93PUBLISH_DOCKER_ARCHS = $(addprefix common-docker-publish-,$(DOCKER_ARCHS))
94TAG_DOCKER_ARCHS = $(addprefix common-docker-tag-latest-,$(DOCKER_ARCHS))
95
96ifeq ($(GOHOSTARCH),amd64)
97 ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows))
98 # Only supported on amd64
99 test-flags := -race
100 endif
101endif
78 102
79# This rule is used to forward a target like "build" to "common-build". This 103# This rule is used to forward a target like "build" to "common-build". This
80# allows a new "build" target to be defined in a Makefile which includes this 104# allows a new "build" target to be defined in a Makefile which includes this
81# one and override "common-build" without override warnings. 105# one and override "common-build" without override warnings.
82%: common-% ; 106%: common-% ;
83 107
108.PHONY: common-all
109common-all: precheck style check_license lint unused build test
110
84.PHONY: common-style 111.PHONY: common-style
85common-style: 112common-style:
86 @echo ">> checking code style" 113 @echo ">> checking code style"
@@ -102,6 +129,15 @@ common-check_license:
102 exit 1; \ 129 exit 1; \
103 fi 130 fi
104 131
132.PHONY: common-deps
133common-deps:
134 @echo ">> getting dependencies"
135ifdef GO111MODULE
136 GO111MODULE=$(GO111MODULE) $(GO) mod download
137else
138 $(GO) get $(GOOPTS) -t ./...
139endif
140
105.PHONY: common-test-short 141.PHONY: common-test-short
106common-test-short: 142common-test-short:
107 @echo ">> running short tests" 143 @echo ">> running short tests"
@@ -110,26 +146,35 @@ common-test-short:
110.PHONY: common-test 146.PHONY: common-test
111common-test: 147common-test:
112 @echo ">> running all tests" 148 @echo ">> running all tests"
113 GO111MODULE=$(GO111MODULE) $(GO) test -race $(GOOPTS) $(pkgs) 149 GO111MODULE=$(GO111MODULE) $(GO) test $(test-flags) $(GOOPTS) $(pkgs)
114 150
115.PHONY: common-format 151.PHONY: common-format
116common-format: 152common-format:
117 @echo ">> formatting code" 153 @echo ">> formatting code"
118 GO111MODULE=$(GO111MODULE) $(GO) fmt $(GOOPTS) $(pkgs) 154 GO111MODULE=$(GO111MODULE) $(GO) fmt $(pkgs)
119 155
120.PHONY: common-vet 156.PHONY: common-vet
121common-vet: 157common-vet:
122 @echo ">> vetting code" 158 @echo ">> vetting code"
123 GO111MODULE=$(GO111MODULE) $(GO) vet $(GOOPTS) $(pkgs) 159 GO111MODULE=$(GO111MODULE) $(GO) vet $(GOOPTS) $(pkgs)
124 160
125.PHONY: common-staticcheck 161.PHONY: common-lint
126common-staticcheck: $(STATICCHECK) 162common-lint: $(GOLANGCI_LINT)
127 @echo ">> running staticcheck" 163ifdef GOLANGCI_LINT
164 @echo ">> running golangci-lint"
128ifdef GO111MODULE 165ifdef GO111MODULE
129 GO111MODULE=$(GO111MODULE) $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" -checks "SA*" $(pkgs) 166# 'go list' needs to be executed before staticcheck to prepopulate the modules cache.
167# Otherwise staticcheck might fail randomly for some reason not yet explained.
168 GO111MODULE=$(GO111MODULE) $(GO) list -e -compiled -test=true -export=false -deps=true -find=false -tags= -- ./... > /dev/null
169 GO111MODULE=$(GO111MODULE) $(GOLANGCI_LINT) run $(pkgs)
130else 170else
131 $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs) 171 $(GOLANGCI_LINT) run $(pkgs)
132endif 172endif
173endif
174
175# For backward-compatibility.
176.PHONY: common-staticcheck
177common-staticcheck: lint
133 178
134.PHONY: common-unused 179.PHONY: common-unused
135common-unused: $(GOVENDOR) 180common-unused: $(GOVENDOR)
@@ -140,8 +185,9 @@ else
140ifdef GO111MODULE 185ifdef GO111MODULE
141 @echo ">> running check for unused/missing packages in go.mod" 186 @echo ">> running check for unused/missing packages in go.mod"
142 GO111MODULE=$(GO111MODULE) $(GO) mod tidy 187 GO111MODULE=$(GO111MODULE) $(GO) mod tidy
188ifeq (,$(wildcard vendor))
143 @git diff --exit-code -- go.sum go.mod 189 @git diff --exit-code -- go.sum go.mod
144ifneq (,$(wildcard vendor)) 190else
145 @echo ">> running check for unused packages in vendor/" 191 @echo ">> running check for unused packages in vendor/"
146 GO111MODULE=$(GO111MODULE) $(GO) mod vendor 192 GO111MODULE=$(GO111MODULE) $(GO) mod vendor
147 @git diff --exit-code -- go.sum go.mod vendor/ 193 @git diff --exit-code -- go.sum go.mod vendor/
@@ -159,45 +205,48 @@ common-tarball: promu
159 @echo ">> building release tarball" 205 @echo ">> building release tarball"
160 $(PROMU) tarball --prefix $(PREFIX) $(BIN_DIR) 206 $(PROMU) tarball --prefix $(PREFIX) $(BIN_DIR)
161 207
162.PHONY: common-docker 208.PHONY: common-docker $(BUILD_DOCKER_ARCHS)
163common-docker: 209common-docker: $(BUILD_DOCKER_ARCHS)
164 docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" . 210$(BUILD_DOCKER_ARCHS): common-docker-%:
165 211 docker build -t "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" \
166.PHONY: common-docker-publish 212 --build-arg ARCH="$*" \
167common-docker-publish: 213 --build-arg OS="linux" \
168 docker push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)" 214 .
169 215
170.PHONY: common-docker-tag-latest 216.PHONY: common-docker-publish $(PUBLISH_DOCKER_ARCHS)
171common-docker-tag-latest: 217common-docker-publish: $(PUBLISH_DOCKER_ARCHS)
172 docker tag "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):latest" 218$(PUBLISH_DOCKER_ARCHS): common-docker-publish-%:
219 docker push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)"
220
221.PHONY: common-docker-tag-latest $(TAG_DOCKER_ARCHS)
222common-docker-tag-latest: $(TAG_DOCKER_ARCHS)
223$(TAG_DOCKER_ARCHS): common-docker-tag-latest-%:
224 docker tag "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:$(DOCKER_IMAGE_TAG)" "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$*:latest"
225
226.PHONY: common-docker-manifest
227common-docker-manifest:
228 DOCKER_CLI_EXPERIMENTAL=enabled docker manifest create -a "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)" $(foreach ARCH,$(DOCKER_ARCHS),$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME)-linux-$(ARCH):$(DOCKER_IMAGE_TAG))
229 DOCKER_CLI_EXPERIMENTAL=enabled docker manifest push "$(DOCKER_REPO)/$(DOCKER_IMAGE_NAME):$(DOCKER_IMAGE_TAG)"
173 230
174.PHONY: promu 231.PHONY: promu
175promu: $(PROMU) 232promu: $(PROMU)
176 233
177$(PROMU): 234$(PROMU):
178 curl -s -L $(PROMU_URL) | tar -xvz -C /tmp 235 $(eval PROMU_TMP := $(shell mktemp -d))
179 mkdir -v -p $(FIRST_GOPATH)/bin 236 curl -s -L $(PROMU_URL) | tar -xvzf - -C $(PROMU_TMP)
180 cp -v /tmp/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM)/promu $(PROMU) 237 mkdir -p $(FIRST_GOPATH)/bin
238 cp $(PROMU_TMP)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM)/promu $(FIRST_GOPATH)/bin/promu
239 rm -r $(PROMU_TMP)
181 240
182.PHONY: proto 241.PHONY: proto
183proto: 242proto:
184 @echo ">> generating code from proto files" 243 @echo ">> generating code from proto files"
185 @./scripts/genproto.sh 244 @./scripts/genproto.sh
186 245
187.PHONY: $(STATICCHECK) 246ifdef GOLANGCI_LINT
188$(STATICCHECK): 247$(GOLANGCI_LINT):
189ifdef GO111MODULE 248 mkdir -p $(FIRST_GOPATH)/bin
190# Get staticcheck from a temporary directory to avoid modifying the local go.{mod,sum}. 249 curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(FIRST_GOPATH)/bin $(GOLANGCI_LINT_VERSION)
191# See https://github.com/golang/go/issues/27643.
192# For now, we are using the next branch of staticcheck because master isn't compatible yet with Go modules.
193 tmpModule=$$(mktemp -d 2>&1) && \
194 mkdir -p $${tmpModule}/staticcheck && \
195 cd "$${tmpModule}"/staticcheck && \
196 GO111MODULE=on $(GO) mod init example.com/staticcheck && \
197 GO111MODULE=on GOOS= GOARCH= $(GO) get -u honnef.co/go/tools/cmd/staticcheck@next && \
198 rm -rf $${tmpModule};
199else
200 GOOS= GOARCH= GO111MODULE=off $(GO) get -u honnef.co/go/tools/cmd/staticcheck
201endif 250endif
202 251
203ifdef GOVENDOR 252ifdef GOVENDOR
@@ -212,7 +261,6 @@ precheck::
212define PRECHECK_COMMAND_template = 261define PRECHECK_COMMAND_template =
213precheck:: $(1)_precheck 262precheck:: $(1)_precheck
214 263
215
216PRECHECK_COMMAND_$(1) ?= $(1) $$(strip $$(PRECHECK_OPTIONS_$(1))) 264PRECHECK_COMMAND_$(1) ?= $(1) $$(strip $$(PRECHECK_OPTIONS_$(1)))
217.PHONY: $(1)_precheck 265.PHONY: $(1)_precheck
218$(1)_precheck: 266$(1)_precheck:
diff --git a/vendor/github.com/prometheus/procfs/bcache/get.go b/vendor/github.com/prometheus/procfs/bcache/get.go
index b6d97de..8d404bd 100644
--- a/vendor/github.com/prometheus/procfs/bcache/get.go
+++ b/vendor/github.com/prometheus/procfs/bcache/get.go
@@ -22,8 +22,54 @@ import (
22 "path/filepath" 22 "path/filepath"
23 "strconv" 23 "strconv"
24 "strings" 24 "strings"
25
26 "github.com/prometheus/procfs/internal/fs"
25) 27)
26 28
29// FS represents the pseudo-filesystem proc, which provides an interface to
30// kernel data structures.
31type FS struct {
32 sys *fs.FS
33}
34
35// NewFS returns a new Bcache using the given sys fs mount point. It will error
36// if the mount point can't be read.
37func NewFS(mountPoint string) (FS, error) {
38 if strings.TrimSpace(mountPoint) == "" {
39 mountPoint = fs.DefaultSysMountPoint
40 }
41 fs, err := fs.NewFS(mountPoint)
42 if err != nil {
43 return FS{}, err
44 }
45 return FS{&fs}, nil
46}
47
48// Stats retrieves bcache runtime statistics for each bcache.
49func (fs FS) Stats() ([]*Stats, error) {
50 matches, err := filepath.Glob(fs.sys.Path("fs/bcache/*-*"))
51 if err != nil {
52 return nil, err
53 }
54
55 stats := make([]*Stats, 0, len(matches))
56 for _, uuidPath := range matches {
57 // "*-*" in glob above indicates the name of the bcache.
58 name := filepath.Base(uuidPath)
59
60 // stats
61 s, err := GetStats(uuidPath)
62 if err != nil {
63 return nil, err
64 }
65
66 s.Name = name
67 stats = append(stats, s)
68 }
69
70 return stats, nil
71}
72
27// ParsePseudoFloat parses the peculiar format produced by bcache's bch_hprint. 73// ParsePseudoFloat parses the peculiar format produced by bcache's bch_hprint.
28func parsePseudoFloat(str string) (float64, error) { 74func parsePseudoFloat(str string) (float64, error) {
29 ss := strings.Split(str, ".") 75 ss := strings.Split(str, ".")
diff --git a/vendor/github.com/prometheus/procfs/buddyinfo.go b/vendor/github.com/prometheus/procfs/buddyinfo.go
index d3a8268..5cd22a8 100644
--- a/vendor/github.com/prometheus/procfs/buddyinfo.go
+++ b/vendor/github.com/prometheus/procfs/buddyinfo.go
@@ -43,7 +43,7 @@ func NewBuddyInfo() ([]BuddyInfo, error) {
43 43
44// NewBuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem. 44// NewBuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem.
45func (fs FS) NewBuddyInfo() ([]BuddyInfo, error) { 45func (fs FS) NewBuddyInfo() ([]BuddyInfo, error) {
46 file, err := os.Open(fs.Path("buddyinfo")) 46 file, err := os.Open(fs.proc.Path("buddyinfo"))
47 if err != nil { 47 if err != nil {
48 return nil, err 48 return nil, err
49 } 49 }
diff --git a/vendor/github.com/prometheus/procfs/fixtures.ttar b/vendor/github.com/prometheus/procfs/fixtures.ttar
index d2256f2..f7f84ef 100644
--- a/vendor/github.com/prometheus/procfs/fixtures.ttar
+++ b/vendor/github.com/prometheus/procfs/fixtures.ttar
@@ -1,45 +1,48 @@
1# Archive created by ttar -c -f fixtures.ttar fixtures/ 1# Archive created by ttar -c -f fixtures.ttar fixtures/
2Directory: fixtures 2Directory: fixtures
3Mode: 775
4# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5Directory: fixtures/proc
3Mode: 755 6Mode: 755
4# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5Directory: fixtures/26231 8Directory: fixtures/proc/26231
6Mode: 755 9Mode: 755
7# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 10# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
8Path: fixtures/26231/cmdline 11Path: fixtures/proc/26231/cmdline
9Lines: 1 12Lines: 1
10vimNULLBYTEtest.goNULLBYTE+10NULLBYTEEOF 13vimNULLBYTEtest.goNULLBYTE+10NULLBYTEEOF
11Mode: 644 14Mode: 644
12# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 15# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
13Path: fixtures/26231/comm 16Path: fixtures/proc/26231/comm
14Lines: 1 17Lines: 1
15vim 18vim
16Mode: 644 19Mode: 644
17# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 20# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
18Path: fixtures/26231/cwd 21Path: fixtures/proc/26231/cwd
19SymlinkTo: /usr/bin 22SymlinkTo: /usr/bin
20# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 23# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
21Path: fixtures/26231/exe 24Path: fixtures/proc/26231/exe
22SymlinkTo: /usr/bin/vim 25SymlinkTo: /usr/bin/vim
23# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 26# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
24Directory: fixtures/26231/fd 27Directory: fixtures/proc/26231/fd
25Mode: 755 28Mode: 755
26# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 29# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
27Path: fixtures/26231/fd/0 30Path: fixtures/proc/26231/fd/0
28SymlinkTo: ../../symlinktargets/abc 31SymlinkTo: ../../symlinktargets/abc
29# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 32# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30Path: fixtures/26231/fd/1 33Path: fixtures/proc/26231/fd/1
31SymlinkTo: ../../symlinktargets/def 34SymlinkTo: ../../symlinktargets/def
32# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 35# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
33Path: fixtures/26231/fd/10 36Path: fixtures/proc/26231/fd/10
34SymlinkTo: ../../symlinktargets/xyz 37SymlinkTo: ../../symlinktargets/xyz
35# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 38# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
36Path: fixtures/26231/fd/2 39Path: fixtures/proc/26231/fd/2
37SymlinkTo: ../../symlinktargets/ghi 40SymlinkTo: ../../symlinktargets/ghi
38# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 41# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39Path: fixtures/26231/fd/3 42Path: fixtures/proc/26231/fd/3
40SymlinkTo: ../../symlinktargets/uvw 43SymlinkTo: ../../symlinktargets/uvw
41# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 44# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
42Path: fixtures/26231/io 45Path: fixtures/proc/26231/io
43Lines: 7 46Lines: 7
44rchar: 750339 47rchar: 750339
45wchar: 818609 48wchar: 818609
@@ -50,7 +53,7 @@ write_bytes: 2048
50cancelled_write_bytes: -1024 53cancelled_write_bytes: -1024
51Mode: 644 54Mode: 644
52# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 55# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
53Path: fixtures/26231/limits 56Path: fixtures/proc/26231/limits
54Lines: 17 57Lines: 17
55Limit Soft Limit Hard Limit Units 58Limit Soft Limit Hard Limit Units
56Max cpu time unlimited unlimited seconds 59Max cpu time unlimited unlimited seconds
@@ -71,7 +74,7 @@ Max realtime priority 0 0
71Max realtime timeout unlimited unlimited us 74Max realtime timeout unlimited unlimited us
72Mode: 644 75Mode: 644
73# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 76# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
74Path: fixtures/26231/mountstats 77Path: fixtures/proc/26231/mountstats
75Lines: 19 78Lines: 19
76device rootfs mounted on / with fstype rootfs 79device rootfs mounted on / with fstype rootfs
77device sysfs mounted on /sys with fstype sysfs 80device sysfs mounted on /sys with fstype sysfs
@@ -94,10 +97,10 @@ device 192.168.1.1:/srv/test mounted on /mnt/nfs/test with fstype nfs4 statvers=
94 97
95Mode: 644 98Mode: 644
96# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 99# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
97Directory: fixtures/26231/net 100Directory: fixtures/proc/26231/net
98Mode: 755 101Mode: 755
99# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 102# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
100Path: fixtures/26231/net/dev 103Path: fixtures/proc/26231/net/dev
101Lines: 4 104Lines: 4
102Inter-| Receive | Transmit 105Inter-| Receive | Transmit
103 face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed 106 face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
@@ -105,57 +108,57 @@ Inter-| Receive | Transmit
105 eth0: 438 5 0 0 0 0 0 0 648 8 0 0 0 0 0 0 108 eth0: 438 5 0 0 0 0 0 0 648 8 0 0 0 0 0 0
106Mode: 644 109Mode: 644
107# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 110# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
108Directory: fixtures/26231/ns 111Directory: fixtures/proc/26231/ns
109Mode: 755 112Mode: 755
110# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 113# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
111Path: fixtures/26231/ns/mnt 114Path: fixtures/proc/26231/ns/mnt
112SymlinkTo: mnt:[4026531840] 115SymlinkTo: mnt:[4026531840]
113# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 116# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
114Path: fixtures/26231/ns/net 117Path: fixtures/proc/26231/ns/net
115SymlinkTo: net:[4026531993] 118SymlinkTo: net:[4026531993]
116# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 119# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
117Path: fixtures/26231/root 120Path: fixtures/proc/26231/root
118SymlinkTo: / 121SymlinkTo: /
119# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 122# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
120Path: fixtures/26231/stat 123Path: fixtures/proc/26231/stat
121Lines: 1 124Lines: 1
12226231 (vim) R 5392 7446 5392 34835 7446 4218880 32533 309516 26 82 1677 44 158 99 20 0 1 0 82375 56274944 1981 18446744073709551615 4194304 6294284 140736914091744 140736914087944 139965136429984 0 0 12288 1870679807 0 0 0 17 0 0 0 31 0 0 8391624 8481048 16420864 140736914093252 140736914093279 140736914093279 140736914096107 0 12526231 (vim) R 5392 7446 5392 34835 7446 4218880 32533 309516 26 82 1677 44 158 99 20 0 1 0 82375 56274944 1981 18446744073709551615 4194304 6294284 140736914091744 140736914087944 139965136429984 0 0 12288 1870679807 0 0 0 17 0 0 0 31 0 0 8391624 8481048 16420864 140736914093252 140736914093279 140736914093279 140736914096107 0
123Mode: 644 126Mode: 644
124# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 127# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
125Directory: fixtures/26232 128Directory: fixtures/proc/26232
126Mode: 755 129Mode: 755
127# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 130# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
128Path: fixtures/26232/cmdline 131Path: fixtures/proc/26232/cmdline
129Lines: 0 132Lines: 0
130Mode: 644 133Mode: 644
131# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 134# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
132Path: fixtures/26232/comm 135Path: fixtures/proc/26232/comm
133Lines: 1 136Lines: 1
134ata_sff 137ata_sff
135Mode: 644 138Mode: 644
136# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 139# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
137Path: fixtures/26232/cwd 140Path: fixtures/proc/26232/cwd
138SymlinkTo: /does/not/exist 141SymlinkTo: /does/not/exist
139# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 142# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
140Directory: fixtures/26232/fd 143Directory: fixtures/proc/26232/fd
141Mode: 755 144Mode: 755
142# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 145# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
143Path: fixtures/26232/fd/0 146Path: fixtures/proc/26232/fd/0
144SymlinkTo: ../../symlinktargets/abc 147SymlinkTo: ../../symlinktargets/abc
145# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 148# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
146Path: fixtures/26232/fd/1 149Path: fixtures/proc/26232/fd/1
147SymlinkTo: ../../symlinktargets/def 150SymlinkTo: ../../symlinktargets/def
148# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 151# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
149Path: fixtures/26232/fd/2 152Path: fixtures/proc/26232/fd/2
150SymlinkTo: ../../symlinktargets/ghi 153SymlinkTo: ../../symlinktargets/ghi
151# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 154# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
152Path: fixtures/26232/fd/3 155Path: fixtures/proc/26232/fd/3
153SymlinkTo: ../../symlinktargets/uvw 156SymlinkTo: ../../symlinktargets/uvw
154# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 157# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
155Path: fixtures/26232/fd/4 158Path: fixtures/proc/26232/fd/4
156SymlinkTo: ../../symlinktargets/xyz 159SymlinkTo: ../../symlinktargets/xyz
157# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 160# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
158Path: fixtures/26232/limits 161Path: fixtures/proc/26232/limits
159Lines: 17 162Lines: 17
160Limit Soft Limit Hard Limit Units 163Limit Soft Limit Hard Limit Units
161Max cpu time unlimited unlimited seconds 164Max cpu time unlimited unlimited seconds
@@ -176,71 +179,98 @@ Max realtime priority 0 0
176Max realtime timeout unlimited unlimited us 179Max realtime timeout unlimited unlimited us
177Mode: 644 180Mode: 644
178# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 181# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
179Path: fixtures/26232/root 182Path: fixtures/proc/26232/root
180SymlinkTo: /does/not/exist 183SymlinkTo: /does/not/exist
181# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 184# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
182Path: fixtures/26232/stat 185Path: fixtures/proc/26232/stat
183Lines: 1 186Lines: 1
18433 (ata_sff) S 2 0 0 0 -1 69238880 0 0 0 0 0 0 0 0 0 -20 1 0 5 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744073709551615 0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0 18733 (ata_sff) S 2 0 0 0 -1 69238880 0 0 0 0 0 0 0 0 0 -20 1 0 5 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744073709551615 0 0 17 1 0 0 0 0 0 0 0 0 0 0 0 0 0
185Mode: 644 188Mode: 644
186# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 189# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
187Directory: fixtures/26233 190Directory: fixtures/proc/26233
188Mode: 755 191Mode: 755
189# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 192# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
190Path: fixtures/26233/cmdline 193Path: fixtures/proc/26233/cmdline
191Lines: 1 194Lines: 1
192com.github.uiautomatorNULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTEEOF 195com.github.uiautomatorNULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTEEOF
193Mode: 644 196Mode: 644
194# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 197# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
195Directory: fixtures/584 198Directory: fixtures/proc/584
196Mode: 755 199Mode: 755
197# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 200# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
198Path: fixtures/584/stat 201Path: fixtures/proc/584/stat
199Lines: 2 202Lines: 2
2001020 ((a b ) ( c d) ) R 28378 1020 28378 34842 1020 4218880 286 0 0 0 0 0 0 0 20 0 1 0 10839175 10395648 155 18446744073709551615 4194304 4238788 140736466511168 140736466511168 140609271124624 0 0 0 0 0 0 0 17 5 0 0 0 0 0 6336016 6337300 25579520 140736466515030 140736466515061 140736466515061 140736466518002 0 2031020 ((a b ) ( c d) ) R 28378 1020 28378 34842 1020 4218880 286 0 0 0 0 0 0 0 20 0 1 0 10839175 10395648 155 18446744073709551615 4194304 4238788 140736466511168 140736466511168 140609271124624 0 0 0 0 0 0 0 17 5 0 0 0 0 0 6336016 6337300 25579520 140736466515030 140736466515061 140736466515061 140736466518002 0
201#!/bin/cat /proc/self/stat 204#!/bin/cat /proc/self/stat
202Mode: 644 205Mode: 644
203# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 206# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
204Directory: fixtures/buddyinfo 207Path: fixtures/proc/buddyinfo
205Mode: 755
206# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
207Directory: fixtures/buddyinfo/short
208Mode: 755
209# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
210Path: fixtures/buddyinfo/short/buddyinfo
211Lines: 3
212Node 0, zone
213Node 0, zone
214Node 0, zone
215Mode: 644
216# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
217Directory: fixtures/buddyinfo/sizemismatch
218Mode: 755
219# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
220Path: fixtures/buddyinfo/sizemismatch/buddyinfo
221Lines: 3
222Node 0, zone DMA 1 0 1 0 2 1 1 0 1 1 3
223Node 0, zone DMA32 759 572 791 475 194 45 12 0 0 0 0 0
224Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0
225Mode: 644
226# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
227Directory: fixtures/buddyinfo/valid
228Mode: 755
229# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
230Path: fixtures/buddyinfo/valid/buddyinfo
231Lines: 3 208Lines: 3
232Node 0, zone DMA 1 0 1 0 2 1 1 0 1 1 3 209Node 0, zone DMA 1 0 1 0 2 1 1 0 1 1 3
233Node 0, zone DMA32 759 572 791 475 194 45 12 0 0 0 0 210Node 0, zone DMA32 759 572 791 475 194 45 12 0 0 0 0
234Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 0 211Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 0
235Mode: 644 212Mode: 644
236# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 213# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
237Directory: fixtures/fs 214Path: fixtures/proc/diskstats
215Lines: 49
216 1 0 ram0 0 0 0 0 0 0 0 0 0 0 0
217 1 1 ram1 0 0 0 0 0 0 0 0 0 0 0
218 1 2 ram2 0 0 0 0 0 0 0 0 0 0 0
219 1 3 ram3 0 0 0 0 0 0 0 0 0 0 0
220 1 4 ram4 0 0 0 0 0 0 0 0 0 0 0
221 1 5 ram5 0 0 0 0 0 0 0 0 0 0 0
222 1 6 ram6 0 0 0 0 0 0 0 0 0 0 0
223 1 7 ram7 0 0 0 0 0 0 0 0 0 0 0
224 1 8 ram8 0 0 0 0 0 0 0 0 0 0 0
225 1 9 ram9 0 0 0 0 0 0 0 0 0 0 0
226 1 10 ram10 0 0 0 0 0 0 0 0 0 0 0
227 1 11 ram11 0 0 0 0 0 0 0 0 0 0 0
228 1 12 ram12 0 0 0 0 0 0 0 0 0 0 0
229 1 13 ram13 0 0 0 0 0 0 0 0 0 0 0
230 1 14 ram14 0 0 0 0 0 0 0 0 0 0 0
231 1 15 ram15 0 0 0 0 0 0 0 0 0 0 0
232 7 0 loop0 0 0 0 0 0 0 0 0 0 0 0
233 7 1 loop1 0 0 0 0 0 0 0 0 0 0 0
234 7 2 loop2 0 0 0 0 0 0 0 0 0 0 0
235 7 3 loop3 0 0 0 0 0 0 0 0 0 0 0
236 7 4 loop4 0 0 0 0 0 0 0 0 0 0 0
237 7 5 loop5 0 0 0 0 0 0 0 0 0 0 0
238 7 6 loop6 0 0 0 0 0 0 0 0 0 0 0
239 7 7 loop7 0 0 0 0 0 0 0 0 0 0 0
240 8 0 sda 25354637 34367663 1003346126 18492372 28444756 11134226 505697032 63877960 0 9653880 82621804
241 8 1 sda1 250 0 2000 36 0 0 0 0 0 36 36
242 8 2 sda2 246 0 1968 32 0 0 0 0 0 32 32
243 8 3 sda3 340 13 2818 52 11 8 152 8 0 56 60
244 8 4 sda4 25353629 34367650 1003337964 18492232 27448755 11134218 505696880 61593380 0 7576432 80332428
245 252 0 dm-0 59910002 0 1003337218 46229572 39231014 0 505696880 1158557800 0 11325968 1206301256
246 252 1 dm-1 388 0 3104 84 74 0 592 0 0 76 84
247 252 2 dm-2 11571 0 308350 6536 153522 0 5093416 122884 0 65400 129416
248 252 3 dm-3 3870 0 3870 104 0 0 0 0 0 16 104
249 252 4 dm-4 392 0 1034 28 38 0 137 16 0 24 44
250 252 5 dm-5 3729 0 84279 924 98918 0 1151688 104684 0 58848 105632
251 179 0 mmcblk0 192 3 1560 156 0 0 0 0 0 136 156
252 179 1 mmcblk0p1 17 3 160 24 0 0 0 0 0 24 24
253 179 2 mmcblk0p2 95 0 760 68 0 0 0 0 0 68 68
254 2 0 fd0 2 0 16 80 0 0 0 0 0 80 80
255 254 0 vda 1775784 15386 32670882 8655768 6038856 20711856 213637440 2069221364 0 41614592 2077872228
256 254 1 vda1 668 85 5984 956 207 4266 35784 32772 0 8808 33720
257 254 2 vda2 1774936 15266 32663262 8654692 5991028 20707590 213601656 2069152216 0 41607628 2077801992
258 11 0 sr0 0 0 0 0 0 0 0 0 0 0 0
259 259 0 nvme0n1 47114 4 4643973 21650 1078320 43950 39451633 1011053 0 222766 1032546
260 259 1 nvme0n1p1 1140 0 9370 16 1 0 1 0 0 16 16
261 259 2 nvme0n1p2 45914 4 4631243 21626 1036885 43950 39451632 919480 0 131580 940970
262 8 0 sdb 326552 841 9657779 84 41822 2895 1972905 5007 0 60730 67070 68851 0 1925173784 11130
263 8 1 sdb1 231 3 34466 4 24 23 106 0 0 64 64 0 0 0 0
264 8 2 sdb2 326310 838 9622281 67 40726 2872 1972799 4924 0 58250 64567 68851 0 1925173784 11130
265Mode: 664
266# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
267Directory: fixtures/proc/fs
238Mode: 755 268Mode: 755
239# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 269# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
240Directory: fixtures/fs/xfs 270Directory: fixtures/proc/fs/xfs
241Mode: 755 271Mode: 755
242# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 272# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
243Path: fixtures/fs/xfs/stat 273Path: fixtures/proc/fs/xfs/stat
244Lines: 23 274Lines: 23
245extent_alloc 92447 97589 92448 93751 275extent_alloc 92447 97589 92448 93751
246abt 0 0 0 0 276abt 0 0 0 0
@@ -267,7 +297,7 @@ xpc 399724544 92823103 86219234
267debug 0 297debug 0
268Mode: 644 298Mode: 644
269# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 299# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
270Path: fixtures/mdstat 300Path: fixtures/proc/mdstat
271Lines: 26 301Lines: 26
272Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 302Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
273md3 : active raid6 sda1[8] sdh1[7] sdg1[6] sdf1[5] sde1[11] sdd1[3] sdc1[10] sdb1[9] 303md3 : active raid6 sda1[8] sdh1[7] sdg1[6] sdf1[5] sde1[11] sdd1[3] sdc1[10] sdb1[9]
@@ -297,10 +327,10 @@ md7 : active raid6 sdb1[0] sde1[3] sdd1[2] sdc1[1]
297unused devices: <none> 327unused devices: <none>
298Mode: 644 328Mode: 644
299# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 329# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
300Directory: fixtures/net 330Directory: fixtures/proc/net
301Mode: 755 331Mode: 755
302# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 332# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
303Path: fixtures/net/dev 333Path: fixtures/proc/net/dev
304Lines: 6 334Lines: 6
305Inter-| Receive | Transmit 335Inter-| Receive | Transmit
306 face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed 336 face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
@@ -310,7 +340,7 @@ docker0: 2568 38 0 0 0 0 0 0 438
310 eth0: 874354587 1036395 0 0 0 0 0 0 563352563 732147 0 0 0 0 0 0 340 eth0: 874354587 1036395 0 0 0 0 0 0 563352563 732147 0 0 0 0 0 0
311Mode: 644 341Mode: 644
312# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 342# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
313Path: fixtures/net/ip_vs 343Path: fixtures/proc/net/ip_vs
314Lines: 21 344Lines: 21
315IP Virtual Server version 1.2.1 (size=4096) 345IP Virtual Server version 1.2.1 (size=4096)
316Prot LocalAddress:Port Scheduler Flags 346Prot LocalAddress:Port Scheduler Flags
@@ -335,7 +365,7 @@ FWM 10001000 wlc
335 -> C0A83215:0CEA Route 0 0 2 365 -> C0A83215:0CEA Route 0 0 2
336Mode: 644 366Mode: 644
337# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 367# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
338Path: fixtures/net/ip_vs_stats 368Path: fixtures/proc/net/ip_vs_stats
339Lines: 6 369Lines: 6
340 Total Incoming Outgoing Incoming Outgoing 370 Total Incoming Outgoing Incoming Outgoing
341 Conns Packets Packets Bytes Bytes 371 Conns Packets Packets Bytes Bytes
@@ -345,10 +375,10 @@ Lines: 6
345 4 1FB3C 0 1282A8F 0 375 4 1FB3C 0 1282A8F 0
346Mode: 644 376Mode: 644
347# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 377# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
348Directory: fixtures/net/rpc 378Directory: fixtures/proc/net/rpc
349Mode: 755 379Mode: 755
350# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 380# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
351Path: fixtures/net/rpc/nfs 381Path: fixtures/proc/net/rpc/nfs
352Lines: 5 382Lines: 5
353net 18628 0 18628 6 383net 18628 0 18628 6
354rpc 4329785 0 4338291 384rpc 4329785 0 4338291
@@ -357,7 +387,7 @@ proc3 22 1 4084749 29200 94754 32580 186 47747 7981 8639 0 6356 0 6962 0 7958 0
357proc4 61 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 387proc4 61 1 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
358Mode: 644 388Mode: 644
359# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 389# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
360Path: fixtures/net/rpc/nfsd 390Path: fixtures/proc/net/rpc/nfsd
361Lines: 11 391Lines: 11
362rc 0 6 18622 392rc 0 6 18622
363fh 0 0 0 0 0 393fh 0 0 0 0 0
@@ -372,7 +402,7 @@ proc4 2 2 10853
372proc4ops 72 0 0 0 1098 2 0 0 0 0 8179 5896 0 0 0 0 5900 0 0 2 0 2 0 9609 0 2 150 1272 0 0 0 1236 0 0 0 0 3 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 402proc4ops 72 0 0 0 1098 2 0 0 0 0 8179 5896 0 0 0 0 5900 0 0 2 0 2 0 9609 0 2 150 1272 0 0 0 1236 0 0 0 0 3 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
373Mode: 644 403Mode: 644
374# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 404# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
375Path: fixtures/net/xfrm_stat 405Path: fixtures/proc/net/xfrm_stat
376Lines: 28 406Lines: 28
377XfrmInError 1 407XfrmInError 1
378XfrmInBufferError 2 408XfrmInBufferError 2
@@ -404,30 +434,30 @@ XfrmOutStateInvalid 28765
404XfrmAcquireError 24532 434XfrmAcquireError 24532
405Mode: 644 435Mode: 644
406# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 436# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
407Directory: fixtures/pressure 437Directory: fixtures/proc/pressure
408Mode: 755 438Mode: 755
409# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 439# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
410Path: fixtures/pressure/cpu 440Path: fixtures/proc/pressure/cpu
411Lines: 1 441Lines: 1
412some avg10=0.10 avg60=2.00 avg300=3.85 total=15 442some avg10=0.10 avg60=2.00 avg300=3.85 total=15
413Mode: 644 443Mode: 644
414# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 444# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
415Path: fixtures/pressure/io 445Path: fixtures/proc/pressure/io
416Lines: 2 446Lines: 2
417some avg10=0.10 avg60=2.00 avg300=3.85 total=15 447some avg10=0.10 avg60=2.00 avg300=3.85 total=15
418full avg10=0.20 avg60=3.00 avg300=4.95 total=25 448full avg10=0.20 avg60=3.00 avg300=4.95 total=25
419Mode: 644 449Mode: 644
420# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 450# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
421Path: fixtures/pressure/memory 451Path: fixtures/proc/pressure/memory
422Lines: 2 452Lines: 2
423some avg10=0.10 avg60=2.00 avg300=3.85 total=15 453some avg10=0.10 avg60=2.00 avg300=3.85 total=15
424full avg10=0.20 avg60=3.00 avg300=4.95 total=25 454full avg10=0.20 avg60=3.00 avg300=4.95 total=25
425Mode: 644 455Mode: 644
426# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 456# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
427Path: fixtures/self 457Path: fixtures/proc/self
428SymlinkTo: 26231 458SymlinkTo: 26231
429# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 459# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
430Path: fixtures/stat 460Path: fixtures/proc/stat
431Lines: 16 461Lines: 16
432cpu 301854 612 111922 8979004 3552 2 3944 0 0 0 462cpu 301854 612 111922 8979004 3552 2 3944 0 0 0
433cpu0 44490 19 21045 1087069 220 1 3410 0 0 0 463cpu0 44490 19 21045 1087069 220 1 3410 0 0 0
@@ -447,36 +477,1238 @@ procs_blocked 1
447softirq 5057579 250191 1481983 1647 211099 186066 0 1783454 622196 12499 508444 477softirq 5057579 250191 1481983 1647 211099 186066 0 1783454 622196 12499 508444
448Mode: 644 478Mode: 644
449# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 479# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
450Directory: fixtures/symlinktargets 480Directory: fixtures/proc/symlinktargets
451Mode: 755 481Mode: 755
452# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 482# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
453Path: fixtures/symlinktargets/README 483Path: fixtures/proc/symlinktargets/README
454Lines: 2 484Lines: 2
455This directory contains some empty files that are the symlinks the files in the "fd" directory point to. 485This directory contains some empty files that are the symlinks the files in the "fd" directory point to.
456They are otherwise ignored by the tests 486They are otherwise ignored by the tests
457Mode: 644 487Mode: 644
458# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 488# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
459Path: fixtures/symlinktargets/abc 489Path: fixtures/proc/symlinktargets/abc
460Lines: 0 490Lines: 0
461Mode: 644 491Mode: 644
462# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 492# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
463Path: fixtures/symlinktargets/def 493Path: fixtures/proc/symlinktargets/def
464Lines: 0 494Lines: 0
465Mode: 644 495Mode: 644
466# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 496# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
467Path: fixtures/symlinktargets/ghi 497Path: fixtures/proc/symlinktargets/ghi
468Lines: 0 498Lines: 0
469Mode: 644 499Mode: 644
470# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 500# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
471Path: fixtures/symlinktargets/uvw 501Path: fixtures/proc/symlinktargets/uvw
472Lines: 0 502Lines: 0
473Mode: 644 503Mode: 644
474# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 504# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
475Path: fixtures/symlinktargets/xyz 505Path: fixtures/proc/symlinktargets/xyz
476Lines: 0 506Lines: 0
477Mode: 644 507Mode: 644
478# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 508# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
479Path: fixtures/.unpacked 509Directory: fixtures/sys
510Mode: 755
511# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
512Directory: fixtures/sys/block
513Mode: 775
514# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
515Directory: fixtures/sys/block/dm-0
516Mode: 775
517# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
518Path: fixtures/sys/block/dm-0/stat
519Lines: 1
5206447303 0 710266738 1529043 953216 0 31201176 4557464 0 796160 6088971
521Mode: 664
522# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
523Directory: fixtures/sys/block/sda
524Mode: 775
525# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
526Path: fixtures/sys/block/sda/stat
527Lines: 1
5289652963 396792 759304206 412943 8422549 6731723 286915323 13947418 0 5658367 19174573 1 2 3 12
529Mode: 664
530# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
531Directory: fixtures/sys/class
532Mode: 775
533# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
534Directory: fixtures/sys/class/net
535Mode: 775
536# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
537Directory: fixtures/sys/class/net/eth0
538Mode: 755
539# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
540Path: fixtures/sys/class/net/eth0/addr_assign_type
541Lines: 1
5423
543Mode: 644
544# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
545Path: fixtures/sys/class/net/eth0/addr_len
546Lines: 1
5476
548Mode: 644
549# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
550Path: fixtures/sys/class/net/eth0/address
551Lines: 1
55201:01:01:01:01:01
553Mode: 644
554# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
555Path: fixtures/sys/class/net/eth0/broadcast
556Lines: 1
557ff:ff:ff:ff:ff:ff
558Mode: 644
559# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
560Path: fixtures/sys/class/net/eth0/carrier
561Lines: 1
5621
563Mode: 644
564# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
565Path: fixtures/sys/class/net/eth0/carrier_changes
566Lines: 1
5672
568Mode: 644
569# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
570Path: fixtures/sys/class/net/eth0/carrier_down_count
571Lines: 1
5721
573Mode: 644
574# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
575Path: fixtures/sys/class/net/eth0/carrier_up_count
576Lines: 1
5771
578Mode: 644
579# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
580Path: fixtures/sys/class/net/eth0/dev_id
581Lines: 1
5820x20
583Mode: 644
584# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
585Path: fixtures/sys/class/net/eth0/dormant
586Lines: 1
5871
588Mode: 644
589# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
590Path: fixtures/sys/class/net/eth0/duplex
591Lines: 1
592full
593Mode: 644
594# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
595Path: fixtures/sys/class/net/eth0/flags
596Lines: 1
5970x1303
598Mode: 644
599# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
600Path: fixtures/sys/class/net/eth0/ifalias
480Lines: 0 601Lines: 0
481Mode: 644 602Mode: 644
482# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 603# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
604Path: fixtures/sys/class/net/eth0/ifindex
605Lines: 1
6062
607Mode: 644
608# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
609Path: fixtures/sys/class/net/eth0/iflink
610Lines: 1
6112
612Mode: 644
613# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
614Path: fixtures/sys/class/net/eth0/link_mode
615Lines: 1
6161
617Mode: 644
618# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
619Path: fixtures/sys/class/net/eth0/mtu
620Lines: 1
6211500
622Mode: 644
623# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
624Path: fixtures/sys/class/net/eth0/name_assign_type
625Lines: 1
6262
627Mode: 644
628# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
629Path: fixtures/sys/class/net/eth0/netdev_group
630Lines: 1
6310
632Mode: 644
633# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
634Path: fixtures/sys/class/net/eth0/operstate
635Lines: 1
636up
637Mode: 644
638# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
639Path: fixtures/sys/class/net/eth0/phys_port_id
640Lines: 0
641Mode: 644
642# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
643Path: fixtures/sys/class/net/eth0/phys_port_name
644Lines: 0
645Mode: 644
646# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
647Path: fixtures/sys/class/net/eth0/phys_switch_id
648Lines: 0
649Mode: 644
650# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
651Path: fixtures/sys/class/net/eth0/speed
652Lines: 1
6531000
654Mode: 644
655# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
656Path: fixtures/sys/class/net/eth0/tx_queue_len
657Lines: 1
6581000
659Mode: 644
660# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
661Path: fixtures/sys/class/net/eth0/type
662Lines: 1
6631
664Mode: 644
665# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
666Directory: fixtures/sys/class/power_supply
667Mode: 755
668# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
669Directory: fixtures/sys/class/power_supply/AC
670Mode: 755
671# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
672Path: fixtures/sys/class/power_supply/AC/online
673Lines: 1
6740
675Mode: 444
676# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
677Path: fixtures/sys/class/power_supply/AC/type
678Lines: 1
679Mains
680Mode: 444
681# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
682Path: fixtures/sys/class/power_supply/AC/uevent
683Lines: 2
684POWER_SUPPLY_NAME=AC
685POWER_SUPPLY_ONLINE=0
686Mode: 644
687# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
688Directory: fixtures/sys/class/power_supply/BAT0
689Mode: 755
690# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
691Path: fixtures/sys/class/power_supply/BAT0/alarm
692Lines: 1
6932503000
694Mode: 644
695# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
696Path: fixtures/sys/class/power_supply/BAT0/capacity
697Lines: 1
69898
699Mode: 444
700# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
701Path: fixtures/sys/class/power_supply/BAT0/capacity_level
702Lines: 1
703Normal
704Mode: 444
705# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
706Path: fixtures/sys/class/power_supply/BAT0/charge_start_threshold
707Lines: 1
70895
709Mode: 644
710# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
711Path: fixtures/sys/class/power_supply/BAT0/charge_stop_threshold
712Lines: 1
713100
714Mode: 644
715# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
716Path: fixtures/sys/class/power_supply/BAT0/cycle_count
717Lines: 1
7180
719Mode: 444
720# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
721Path: fixtures/sys/class/power_supply/BAT0/energy_full
722Lines: 1
72350060000
724Mode: 444
725# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
726Path: fixtures/sys/class/power_supply/BAT0/energy_full_design
727Lines: 1
72847520000
729Mode: 444
730# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
731Path: fixtures/sys/class/power_supply/BAT0/energy_now
732Lines: 1
73349450000
734Mode: 444
735# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
736Path: fixtures/sys/class/power_supply/BAT0/manufacturer
737Lines: 1
738LGC
739Mode: 444
740# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
741Path: fixtures/sys/class/power_supply/BAT0/model_name
742Lines: 1
743LNV-45N1
744Mode: 444
745# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
746Path: fixtures/sys/class/power_supply/BAT0/power_now
747Lines: 1
7484830000
749Mode: 444
750# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
751Path: fixtures/sys/class/power_supply/BAT0/present
752Lines: 1
7531
754Mode: 444
755# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
756Path: fixtures/sys/class/power_supply/BAT0/serial_number
757Lines: 1
75838109
759Mode: 444
760# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
761Path: fixtures/sys/class/power_supply/BAT0/status
762Lines: 1
763Discharging
764Mode: 444
765# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
766Path: fixtures/sys/class/power_supply/BAT0/technology
767Lines: 1
768Li-ion
769Mode: 444
770# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
771Path: fixtures/sys/class/power_supply/BAT0/type
772Lines: 1
773Battery
774Mode: 444
775# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
776Path: fixtures/sys/class/power_supply/BAT0/uevent
777Lines: 16
778POWER_SUPPLY_NAME=BAT0
779POWER_SUPPLY_STATUS=Discharging
780POWER_SUPPLY_PRESENT=1
781POWER_SUPPLY_TECHNOLOGY=Li-ion
782POWER_SUPPLY_CYCLE_COUNT=0
783POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
784POWER_SUPPLY_VOLTAGE_NOW=12229000
785POWER_SUPPLY_POWER_NOW=4830000
786POWER_SUPPLY_ENERGY_FULL_DESIGN=47520000
787POWER_SUPPLY_ENERGY_FULL=50060000
788POWER_SUPPLY_ENERGY_NOW=49450000
789POWER_SUPPLY_CAPACITY=98
790POWER_SUPPLY_CAPACITY_LEVEL=Normal
791POWER_SUPPLY_MODEL_NAME=LNV-45N1
792POWER_SUPPLY_MANUFACTURER=LGC
793POWER_SUPPLY_SERIAL_NUMBER=38109
794Mode: 644
795# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
796Path: fixtures/sys/class/power_supply/BAT0/voltage_min_design
797Lines: 1
79810800000
799Mode: 444
800# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
801Path: fixtures/sys/class/power_supply/BAT0/voltage_now
802Lines: 1
80312229000
804Mode: 444
805# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
806Directory: fixtures/sys/class/thermal
807Mode: 775
808# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
809Directory: fixtures/sys/class/thermal/thermal_zone0
810Mode: 775
811# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
812Path: fixtures/sys/class/thermal/thermal_zone0/policy
813Lines: 1
814step_wise
815Mode: 664
816# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
817Path: fixtures/sys/class/thermal/thermal_zone0/temp
818Lines: 1
81949925
820Mode: 664
821# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
822Path: fixtures/sys/class/thermal/thermal_zone0/type
823Lines: 1
824bcm2835_thermal
825Mode: 664
826# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
827Directory: fixtures/sys/class/thermal/thermal_zone1
828Mode: 755
829# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
830Path: fixtures/sys/class/thermal/thermal_zone1/mode
831Lines: 1
832enabled
833Mode: 664
834# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
835Path: fixtures/sys/class/thermal/thermal_zone1/passive
836Lines: 1
8370
838Mode: 664
839# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
840Path: fixtures/sys/class/thermal/thermal_zone1/policy
841Lines: 1
842step_wise
843Mode: 664
844# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
845Path: fixtures/sys/class/thermal/thermal_zone1/temp
846Lines: 1
84744000
848Mode: 664
849# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
850Path: fixtures/sys/class/thermal/thermal_zone1/type
851Lines: 1
852acpitz
853Mode: 664
854# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
855Directory: fixtures/sys/devices
856Mode: 755
857# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
858Directory: fixtures/sys/devices/pci0000:00
859Mode: 755
860# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
861Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0
862Mode: 755
863# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
864Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4
865Mode: 755
866# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
867Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3
868Mode: 755
869# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
870Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0
871Mode: 755
872# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
873Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0
874Mode: 755
875# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
876Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block
877Mode: 755
878# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
879Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb
880Mode: 755
881# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
882Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache
883Mode: 755
884# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
885Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/dirty_data
886Lines: 1
8870
888Mode: 644
889# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
890Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day
891Mode: 755
892# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
893Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/bypassed
894Lines: 1
8950
896Mode: 644
897# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
898Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_bypass_hits
899Lines: 1
9000
901Mode: 644
902# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
903Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_bypass_misses
904Lines: 1
9050
906Mode: 644
907# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
908Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_hit_ratio
909Lines: 1
910100
911Mode: 644
912# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
913Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_hits
914Lines: 1
915289
916Mode: 644
917# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
918Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_miss_collisions
919Lines: 1
9200
921Mode: 644
922# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
923Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_misses
924Lines: 1
9250
926Mode: 644
927# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
928Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_readaheads
929Lines: 1
9300
931Mode: 644
932# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
933Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute
934Mode: 755
935# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
936Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/bypassed
937Lines: 1
9380
939Mode: 644
940# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
941Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_bypass_hits
942Lines: 1
9430
944Mode: 644
945# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
946Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_bypass_misses
947Lines: 1
9480
949Mode: 644
950# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
951Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_hit_ratio
952Lines: 1
9530
954Mode: 644
955# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
956Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_hits
957Lines: 1
9580
959Mode: 644
960# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
961Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_miss_collisions
962Lines: 1
9630
964Mode: 644
965# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
966Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_misses
967Lines: 1
9680
969Mode: 644
970# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
971Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_readaheads
972Lines: 1
9730
974Mode: 644
975# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
976Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour
977Mode: 755
978# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
979Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/bypassed
980Lines: 1
9810
982Mode: 644
983# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
984Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_bypass_hits
985Lines: 1
9860
987Mode: 644
988# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
989Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_bypass_misses
990Lines: 1
9910
992Mode: 644
993# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
994Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_hit_ratio
995Lines: 1
9960
997Mode: 644
998# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
999Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_hits
1000Lines: 1
10010
1002Mode: 644
1003# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1004Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_miss_collisions
1005Lines: 1
10060
1007Mode: 644
1008# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1009Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_misses
1010Lines: 1
10110
1012Mode: 644
1013# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1014Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_readaheads
1015Lines: 1
10160
1017Mode: 644
1018# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1019Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total
1020Mode: 755
1021# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1022Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/bypassed
1023Lines: 1
10240
1025Mode: 644
1026# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1027Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_bypass_hits
1028Lines: 1
10290
1030Mode: 644
1031# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1032Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_bypass_misses
1033Lines: 1
10340
1035Mode: 644
1036# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1037Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_hit_ratio
1038Lines: 1
1039100
1040Mode: 644
1041# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1042Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_hits
1043Lines: 1
1044546
1045Mode: 644
1046# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1047Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_miss_collisions
1048Lines: 1
10490
1050Mode: 644
1051# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1052Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_misses
1053Lines: 1
10540
1055Mode: 644
1056# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1057Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_readaheads
1058Lines: 1
10590
1060Mode: 644
1061# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1062Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5
1063Mode: 755
1064# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1065Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4
1066Mode: 755
1067# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1068Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0
1069Mode: 755
1070# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1071Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0
1072Mode: 755
1073# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1074Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block
1075Mode: 755
1076# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1077Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc
1078Mode: 755
1079# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1080Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache
1081Mode: 755
1082# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1083Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/io_errors
1084Lines: 1
10850
1086Mode: 644
1087# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1088Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/metadata_written
1089Lines: 1
1090512
1091Mode: 644
1092# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1093Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/priority_stats
1094Lines: 5
1095Unused: 99%
1096Metadata: 0%
1097Average: 10473
1098Sectors per Q: 64
1099Quantiles: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946]
1100Mode: 644
1101# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1102Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/written
1103Lines: 1
11040
1105Mode: 644
1106# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1107Directory: fixtures/sys/devices/system
1108Mode: 775
1109# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1110Directory: fixtures/sys/devices/system/cpu
1111Mode: 775
1112# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1113Directory: fixtures/sys/devices/system/cpu/cpu0
1114Mode: 775
1115# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1116Path: fixtures/sys/devices/system/cpu/cpu0/cpufreq
1117SymlinkTo: ../cpufreq/policy0
1118# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1119Directory: fixtures/sys/devices/system/cpu/cpu1
1120Mode: 775
1121# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1122Directory: fixtures/sys/devices/system/cpu/cpu1/cpufreq
1123Mode: 775
1124# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1125Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
1126Lines: 1
11271200195
1128Mode: 400
1129# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1130Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
1131Lines: 1
11323300000
1133Mode: 664
1134# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1135Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
1136Lines: 1
11371200000
1138Mode: 664
1139# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1140Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency
1141Lines: 1
11424294967295
1143Mode: 664
1144# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1145Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/related_cpus
1146Lines: 1
11471
1148Mode: 664
1149# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1150Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors
1151Lines: 1
1152performance powersave
1153Mode: 664
1154# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1155Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver
1156Lines: 1
1157intel_pstate
1158Mode: 664
1159# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1160Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
1161Lines: 1
1162powersave
1163Mode: 664
1164# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1165Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
1166Lines: 1
11673300000
1168Mode: 664
1169# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1170Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
1171Lines: 1
11721200000
1173Mode: 664
1174# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1175Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_setspeed
1176Lines: 1
1177<unsupported>
1178Mode: 664
1179# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1180Directory: fixtures/sys/devices/system/cpu/cpufreq
1181Mode: 775
1182# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1183Directory: fixtures/sys/devices/system/cpu/cpufreq/policy0
1184Mode: 775
1185# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1186Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/affected_cpus
1187Lines: 1
11880
1189Mode: 444
1190# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1191Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq
1192Lines: 1
11932400000
1194Mode: 444
1195# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1196Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq
1197Lines: 1
1198800000
1199Mode: 444
1200# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1201Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency
1202Lines: 1
12030
1204Mode: 444
1205# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1206Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/related_cpus
1207Lines: 1
12080
1209Mode: 444
1210# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1211Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors
1212Lines: 1
1213performance powersave
1214Mode: 444
1215# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1216Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq
1217Lines: 1
12181219917
1219Mode: 444
1220# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1221Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_driver
1222Lines: 1
1223intel_pstate
1224Mode: 444
1225# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1226Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_governor
1227Lines: 1
1228powersave
1229Mode: 644
1230# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1231Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq
1232Lines: 1
12332400000
1234Mode: 644
1235# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1236Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq
1237Lines: 1
1238800000
1239Mode: 644
1240# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1241Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed
1242Lines: 1
1243<unsupported>
1244Mode: 644
1245# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1246Directory: fixtures/sys/devices/system/cpu/cpufreq/policy1
1247Mode: 755
1248# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1249Directory: fixtures/sys/fs
1250Mode: 755
1251# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1252Directory: fixtures/sys/fs/bcache
1253Mode: 755
1254# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1255Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74
1256Mode: 755
1257# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1258Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/average_key_size
1259Lines: 1
12600
1261Mode: 644
1262# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1263Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0
1264Mode: 777
1265# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1266Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/dirty_data
1267Lines: 1
12680
1269Mode: 644
1270# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1271Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day
1272Mode: 755
1273# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1274Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/bypassed
1275Lines: 1
12760
1277Mode: 644
1278# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1279Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_hits
1280Lines: 1
12810
1282Mode: 644
1283# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1284Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_misses
1285Lines: 1
12860
1287Mode: 644
1288# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1289Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hit_ratio
1290Lines: 1
1291100
1292Mode: 644
1293# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1294Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hits
1295Lines: 1
1296289
1297Mode: 644
1298# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1299Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_miss_collisions
1300Lines: 1
13010
1302Mode: 644
1303# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1304Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_misses
1305Lines: 1
13060
1307Mode: 644
1308# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1309Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_readaheads
1310Lines: 1
13110
1312Mode: 644
1313# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1314Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute
1315Mode: 755
1316# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1317Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/bypassed
1318Lines: 1
13190
1320Mode: 644
1321# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1322Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_hits
1323Lines: 1
13240
1325Mode: 644
1326# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1327Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_misses
1328Lines: 1
13290
1330Mode: 644
1331# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1332Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hit_ratio
1333Lines: 1
13340
1335Mode: 644
1336# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1337Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hits
1338Lines: 1
13390
1340Mode: 644
1341# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1342Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_miss_collisions
1343Lines: 1
13440
1345Mode: 644
1346# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1347Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_misses
1348Lines: 1
13490
1350Mode: 644
1351# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1352Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_readaheads
1353Lines: 1
13540
1355Mode: 644
1356# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1357Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour
1358Mode: 755
1359# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1360Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/bypassed
1361Lines: 1
13620
1363Mode: 644
1364# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1365Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_hits
1366Lines: 1
13670
1368Mode: 644
1369# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1370Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_misses
1371Lines: 1
13720
1373Mode: 644
1374# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1375Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hit_ratio
1376Lines: 1
13770
1378Mode: 644
1379# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1380Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hits
1381Lines: 1
13820
1383Mode: 644
1384# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1385Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_miss_collisions
1386Lines: 1
13870
1388Mode: 644
1389# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1390Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_misses
1391Lines: 1
13920
1393Mode: 644
1394# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1395Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_readaheads
1396Lines: 1
13970
1398Mode: 644
1399# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1400Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total
1401Mode: 755
1402# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1403Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/bypassed
1404Lines: 1
14050
1406Mode: 644
1407# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1408Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_hits
1409Lines: 1
14100
1411Mode: 644
1412# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1413Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_misses
1414Lines: 1
14150
1416Mode: 644
1417# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1418Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hit_ratio
1419Lines: 1
1420100
1421Mode: 644
1422# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1423Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hits
1424Lines: 1
1425546
1426Mode: 644
1427# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1428Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_miss_collisions
1429Lines: 1
14300
1431Mode: 644
1432# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1433Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_misses
1434Lines: 1
14350
1436Mode: 644
1437# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1438Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_readaheads
1439Lines: 1
14400
1441Mode: 644
1442# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1443Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/btree_cache_size
1444Lines: 1
14450
1446Mode: 644
1447# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1448Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0
1449Mode: 777
1450# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1451Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/io_errors
1452Lines: 1
14530
1454Mode: 644
1455# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1456Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/metadata_written
1457Lines: 1
1458512
1459Mode: 644
1460# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1461Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/priority_stats
1462Lines: 5
1463Unused: 99%
1464Metadata: 0%
1465Average: 10473
1466Sectors per Q: 64
1467Quantiles: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946]
1468Mode: 644
1469# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1470Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/written
1471Lines: 1
14720
1473Mode: 644
1474# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1475Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache_available_percent
1476Lines: 1
1477100
1478Mode: 644
1479# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1480Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/congested
1481Lines: 1
14820
1483Mode: 644
1484# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1485Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal
1486Mode: 755
1487# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1488Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/active_journal_entries
1489Lines: 1
14901
1491Mode: 644
1492# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1493Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_nodes
1494Lines: 1
14950
1496Mode: 644
1497# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1498Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_read_average_duration_us
1499Lines: 1
15001305
1501Mode: 644
1502# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1503Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/cache_read_races
1504Lines: 1
15050
1506Mode: 644
1507# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1508Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/root_usage_percent
1509Lines: 1
15100
1511Mode: 644
1512# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1513Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day
1514Mode: 755
1515# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1516Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/bypassed
1517Lines: 1
15180
1519Mode: 644
1520# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1521Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_hits
1522Lines: 1
15230
1524Mode: 644
1525# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1526Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_misses
1527Lines: 1
15280
1529Mode: 644
1530# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1531Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hit_ratio
1532Lines: 1
1533100
1534Mode: 644
1535# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1536Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hits
1537Lines: 1
1538289
1539Mode: 644
1540# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1541Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_miss_collisions
1542Lines: 1
15430
1544Mode: 644
1545# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1546Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_misses
1547Lines: 1
15480
1549Mode: 644
1550# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1551Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_readaheads
1552Lines: 1
15530
1554Mode: 644
1555# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1556Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute
1557Mode: 755
1558# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1559Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/bypassed
1560Lines: 1
15610
1562Mode: 644
1563# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1564Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_hits
1565Lines: 1
15660
1567Mode: 644
1568# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1569Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_misses
1570Lines: 1
15710
1572Mode: 644
1573# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1574Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hit_ratio
1575Lines: 1
15760
1577Mode: 644
1578# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1579Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hits
1580Lines: 1
15810
1582Mode: 644
1583# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1584Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_miss_collisions
1585Lines: 1
15860
1587Mode: 644
1588# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1589Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_misses
1590Lines: 1
15910
1592Mode: 644
1593# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1594Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_readaheads
1595Lines: 1
15960
1597Mode: 644
1598# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1599Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour
1600Mode: 755
1601# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1602Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/bypassed
1603Lines: 1
16040
1605Mode: 644
1606# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1607Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_hits
1608Lines: 1
16090
1610Mode: 644
1611# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1612Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_misses
1613Lines: 1
16140
1615Mode: 644
1616# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1617Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hit_ratio
1618Lines: 1
16190
1620Mode: 644
1621# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1622Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hits
1623Lines: 1
16240
1625Mode: 644
1626# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1627Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_miss_collisions
1628Lines: 1
16290
1630Mode: 644
1631# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1632Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_misses
1633Lines: 1
16340
1635Mode: 644
1636# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1637Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_readaheads
1638Lines: 1
16390
1640Mode: 644
1641# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1642Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total
1643Mode: 755
1644# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1645Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/bypassed
1646Lines: 1
16470
1648Mode: 644
1649# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1650Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_hits
1651Lines: 1
16520
1653Mode: 644
1654# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1655Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_misses
1656Lines: 1
16570
1658Mode: 644
1659# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1660Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hit_ratio
1661Lines: 1
1662100
1663Mode: 644
1664# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1665Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hits
1666Lines: 1
1667546
1668Mode: 644
1669# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1670Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_miss_collisions
1671Lines: 1
16720
1673Mode: 644
1674# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1675Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_misses
1676Lines: 1
16770
1678Mode: 644
1679# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1680Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_readaheads
1681Lines: 1
16820
1683Mode: 644
1684# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1685Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/tree_depth
1686Lines: 1
16870
1688Mode: 644
1689# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1690Directory: fixtures/sys/fs/xfs
1691Mode: 755
1692# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1693Directory: fixtures/sys/fs/xfs/sda1
1694Mode: 755
1695# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1696Directory: fixtures/sys/fs/xfs/sda1/stats
1697Mode: 755
1698# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1699Path: fixtures/sys/fs/xfs/sda1/stats/stats
1700Lines: 1
1701extent_alloc 1 0 0 0
1702Mode: 644
1703# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1704Directory: fixtures/sys/fs/xfs/sdb1
1705Mode: 755
1706# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1707Directory: fixtures/sys/fs/xfs/sdb1/stats
1708Mode: 755
1709# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1710Path: fixtures/sys/fs/xfs/sdb1/stats/stats
1711Lines: 1
1712extent_alloc 2 0 0 0
1713Mode: 644
1714# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/vendor/github.com/prometheus/procfs/fs.go b/vendor/github.com/prometheus/procfs/fs.go
index b6c6b2c..9c56c83 100644
--- a/vendor/github.com/prometheus/procfs/fs.go
+++ b/vendor/github.com/prometheus/procfs/fs.go
@@ -14,69 +14,24 @@
14package procfs 14package procfs
15 15
16import ( 16import (
17 "fmt" 17 "github.com/prometheus/procfs/internal/fs"
18 "os"
19 "path"
20
21 "github.com/prometheus/procfs/nfs"
22 "github.com/prometheus/procfs/xfs"
23) 18)
24 19
25// FS represents the pseudo-filesystem proc, which provides an interface to 20// FS represents the pseudo-filesystem sys, which provides an interface to
26// kernel data structures. 21// kernel data structures.
27type FS string 22type FS struct {
23 proc fs.FS
24}
28 25
29// DefaultMountPoint is the common mount point of the proc filesystem. 26// DefaultMountPoint is the common mount point of the proc filesystem.
30const DefaultMountPoint = "/proc" 27const DefaultMountPoint = fs.DefaultProcMountPoint
31 28
32// NewFS returns a new FS mounted under the given mountPoint. It will error 29// NewFS returns a new proc FS mounted under the given proc mountPoint. It will error
33// if the mount point can't be read. 30// if the mount point dirctory can't be read or is a file.
34func NewFS(mountPoint string) (FS, error) { 31func NewFS(mountPoint string) (FS, error) {
35 info, err := os.Stat(mountPoint) 32 fs, err := fs.NewFS(mountPoint)
36 if err != nil { 33 if err != nil {
37 return "", fmt.Errorf("could not read %s: %s", mountPoint, err) 34 return FS{}, err
38 }
39 if !info.IsDir() {
40 return "", fmt.Errorf("mount point %s is not a directory", mountPoint)
41 } 35 }
42 36 return FS{fs}, nil
43 return FS(mountPoint), nil
44}
45
46// Path returns the path of the given subsystem relative to the procfs root.
47func (fs FS) Path(p ...string) string {
48 return path.Join(append([]string{string(fs)}, p...)...)
49}
50
51// XFSStats retrieves XFS filesystem runtime statistics.
52func (fs FS) XFSStats() (*xfs.Stats, error) {
53 f, err := os.Open(fs.Path("fs/xfs/stat"))
54 if err != nil {
55 return nil, err
56 }
57 defer f.Close()
58
59 return xfs.ParseStats(f)
60}
61
62// NFSClientRPCStats retrieves NFS client RPC statistics.
63func (fs FS) NFSClientRPCStats() (*nfs.ClientRPCStats, error) {
64 f, err := os.Open(fs.Path("net/rpc/nfs"))
65 if err != nil {
66 return nil, err
67 }
68 defer f.Close()
69
70 return nfs.ParseClientRPCStats(f)
71}
72
73// NFSdServerRPCStats retrieves NFS daemon RPC statistics.
74func (fs FS) NFSdServerRPCStats() (*nfs.ServerRPCStats, error) {
75 f, err := os.Open(fs.Path("net/rpc/nfsd"))
76 if err != nil {
77 return nil, err
78 }
79 defer f.Close()
80
81 return nfs.ParseServerRPCStats(f)
82} 37}
diff --git a/vendor/github.com/prometheus/procfs/internal/fs/fs.go b/vendor/github.com/prometheus/procfs/internal/fs/fs.go
new file mode 100644
index 0000000..c66a1cf
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/internal/fs/fs.go
@@ -0,0 +1,52 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package fs
15
16import (
17 "fmt"
18 "os"
19 "path/filepath"
20)
21
22const (
23 // DefaultProcMountPoint is the common mount point of the proc filesystem.
24 DefaultProcMountPoint = "/proc"
25
26 // DefaultSysMountPoint is the common mount point of the sys filesystem.
27 DefaultSysMountPoint = "/sys"
28)
29
30// FS represents a pseudo-filesystem, normally /proc or /sys, which provides an
31// interface to kernel data structures.
32type FS string
33
34// NewFS returns a new FS mounted under the given mountPoint. It will error
35// if the mount point can't be read.
36func NewFS(mountPoint string) (FS, error) {
37 info, err := os.Stat(mountPoint)
38 if err != nil {
39 return "", fmt.Errorf("could not read %s: %s", mountPoint, err)
40 }
41 if !info.IsDir() {
42 return "", fmt.Errorf("mount point %s is not a directory", mountPoint)
43 }
44
45 return FS(mountPoint), nil
46}
47
48// Path appends the given path elements to the filesystem path, adding separators
49// as necessary.
50func (fs FS) Path(p ...string) string {
51 return filepath.Join(append([]string{string(fs)}, p...)...)
52}
diff --git a/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go b/vendor/github.com/prometheus/procfs/internal/util/sysreadfile.go
index df0d567..68b37c4 100644
--- a/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_linux.go
+++ b/vendor/github.com/prometheus/procfs/internal/util/sysreadfile.go
@@ -11,7 +11,7 @@
11// See the License for the specific language governing permissions and 11// See the License for the specific language governing permissions and
12// limitations under the License. 12// limitations under the License.
13 13
14// +build !windows 14// +build linux,!appengine
15 15
16package util 16package util
17 17
diff --git a/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_compat.go b/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_compat.go
new file mode 100644
index 0000000..bd55b45
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/internal/util/sysreadfile_compat.go
@@ -0,0 +1,26 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// +build linux,appengine !linux
15
16package util
17
18import (
19 "fmt"
20)
21
22// SysReadFile is here implemented as a noop for builds that do not support
23// the read syscall. For example Windows, or Linux on Google App Engine.
24func SysReadFile(file string) (string, error) {
25 return "", fmt.Errorf("not supported on this platform")
26}
diff --git a/vendor/github.com/prometheus/procfs/ipvs.go b/vendor/github.com/prometheus/procfs/ipvs.go
index e36d4a3..41e645d 100644
--- a/vendor/github.com/prometheus/procfs/ipvs.go
+++ b/vendor/github.com/prometheus/procfs/ipvs.go
@@ -74,7 +74,7 @@ func NewIPVSStats() (IPVSStats, error) {
74 74
75// NewIPVSStats reads the IPVS statistics from the specified `proc` filesystem. 75// NewIPVSStats reads the IPVS statistics from the specified `proc` filesystem.
76func (fs FS) NewIPVSStats() (IPVSStats, error) { 76func (fs FS) NewIPVSStats() (IPVSStats, error) {
77 file, err := os.Open(fs.Path("net/ip_vs_stats")) 77 file, err := os.Open(fs.proc.Path("net/ip_vs_stats"))
78 if err != nil { 78 if err != nil {
79 return IPVSStats{}, err 79 return IPVSStats{}, err
80 } 80 }
@@ -143,7 +143,7 @@ func NewIPVSBackendStatus() ([]IPVSBackendStatus, error) {
143 143
144// NewIPVSBackendStatus reads and returns the status of all (virtual,real) server pairs from the specified `proc` filesystem. 144// NewIPVSBackendStatus reads and returns the status of all (virtual,real) server pairs from the specified `proc` filesystem.
145func (fs FS) NewIPVSBackendStatus() ([]IPVSBackendStatus, error) { 145func (fs FS) NewIPVSBackendStatus() ([]IPVSBackendStatus, error) {
146 file, err := os.Open(fs.Path("net/ip_vs")) 146 file, err := os.Open(fs.proc.Path("net/ip_vs"))
147 if err != nil { 147 if err != nil {
148 return nil, err 148 return nil, err
149 } 149 }
diff --git a/vendor/github.com/prometheus/procfs/mdstat.go b/vendor/github.com/prometheus/procfs/mdstat.go
index 9dc1958..6ac7a12 100644
--- a/vendor/github.com/prometheus/procfs/mdstat.go
+++ b/vendor/github.com/prometheus/procfs/mdstat.go
@@ -44,7 +44,7 @@ type MDStat struct {
44 44
45// ParseMDStat parses an mdstat-file and returns a struct with the relevant infos. 45// ParseMDStat parses an mdstat-file and returns a struct with the relevant infos.
46func (fs FS) ParseMDStat() (mdstates []MDStat, err error) { 46func (fs FS) ParseMDStat() (mdstates []MDStat, err error) {
47 mdStatusFilePath := fs.Path("mdstat") 47 mdStatusFilePath := fs.proc.Path("mdstat")
48 content, err := ioutil.ReadFile(mdStatusFilePath) 48 content, err := ioutil.ReadFile(mdStatusFilePath)
49 if err != nil { 49 if err != nil {
50 return []MDStat{}, fmt.Errorf("error parsing %s: %s", mdStatusFilePath, err) 50 return []MDStat{}, fmt.Errorf("error parsing %s: %s", mdStatusFilePath, err)
diff --git a/vendor/github.com/prometheus/procfs/net_dev.go b/vendor/github.com/prometheus/procfs/net_dev.go
index 3f25233..0063594 100644
--- a/vendor/github.com/prometheus/procfs/net_dev.go
+++ b/vendor/github.com/prometheus/procfs/net_dev.go
@@ -59,7 +59,7 @@ func NewNetDev() (NetDev, error) {
59 59
60// NewNetDev returns kernel/system statistics read from /proc/net/dev. 60// NewNetDev returns kernel/system statistics read from /proc/net/dev.
61func (fs FS) NewNetDev() (NetDev, error) { 61func (fs FS) NewNetDev() (NetDev, error) {
62 return newNetDev(fs.Path("net/dev")) 62 return newNetDev(fs.proc.Path("net/dev"))
63} 63}
64 64
65// NewNetDev returns kernel/system statistics read from /proc/[pid]/net/dev. 65// NewNetDev returns kernel/system statistics read from /proc/[pid]/net/dev.
diff --git a/vendor/github.com/prometheus/procfs/nfs/nfs.go b/vendor/github.com/prometheus/procfs/nfs/nfs.go
index 651bf68..7ee262f 100644
--- a/vendor/github.com/prometheus/procfs/nfs/nfs.go
+++ b/vendor/github.com/prometheus/procfs/nfs/nfs.go
@@ -15,6 +15,13 @@
15// Fields are documented in https://www.svennd.be/nfsd-stats-explained-procnetrpcnfsd/ 15// Fields are documented in https://www.svennd.be/nfsd-stats-explained-procnetrpcnfsd/
16package nfs 16package nfs
17 17
18import (
19 "os"
20 "strings"
21
22 "github.com/prometheus/procfs/internal/fs"
23)
24
18// ReplyCache models the "rc" line. 25// ReplyCache models the "rc" line.
19type ReplyCache struct { 26type ReplyCache struct {
20 Hits uint64 27 Hits uint64
@@ -261,3 +268,46 @@ type ServerRPCStats struct {
261 ServerV4Stats ServerV4Stats 268 ServerV4Stats ServerV4Stats
262 V4Ops V4Ops 269 V4Ops V4Ops
263} 270}
271
272// FS represents the pseudo-filesystem proc, which provides an interface to
273// kernel data structures.
274type FS struct {
275 proc *fs.FS
276}
277
278// NewFS returns a new FS mounted under the given mountPoint. It will error
279// if the mount point can't be read.
280func NewFS(mountPoint string) (FS, error) {
281 if strings.TrimSpace(mountPoint) == "" {
282 mountPoint = fs.DefaultProcMountPoint
283 }
284 fs, err := fs.NewFS(mountPoint)
285 if err != nil {
286 return FS{}, err
287 }
288 return FS{&fs}, nil
289}
290
291// ClientRPCStats retrieves NFS client RPC statistics
292// from proc/net/rpc/nfs.
293func (fs FS) ClientRPCStats() (*ClientRPCStats, error) {
294 f, err := os.Open(fs.proc.Path("net/rpc/nfs"))
295 if err != nil {
296 return nil, err
297 }
298 defer f.Close()
299
300 return ParseClientRPCStats(f)
301}
302
303// ServerRPCStats retrieves NFS daemon RPC statistics
304// from proc/net/rpc/nfsd.
305func (fs FS) ServerRPCStats() (*ServerRPCStats, error) {
306 f, err := os.Open(fs.proc.Path("net/rpc/nfsd"))
307 if err != nil {
308 return nil, err
309 }
310 defer f.Close()
311
312 return ParseServerRPCStats(f)
313}
diff --git a/vendor/github.com/prometheus/procfs/proc.go b/vendor/github.com/prometheus/procfs/proc.go
index 06bed0e..8e38493 100644
--- a/vendor/github.com/prometheus/procfs/proc.go
+++ b/vendor/github.com/prometheus/procfs/proc.go
@@ -20,6 +20,8 @@ import (
20 "os" 20 "os"
21 "strconv" 21 "strconv"
22 "strings" 22 "strings"
23
24 "github.com/prometheus/procfs/internal/fs"
23) 25)
24 26
25// Proc provides information about a running process. 27// Proc provides information about a running process.
@@ -27,7 +29,7 @@ type Proc struct {
27 // The process ID. 29 // The process ID.
28 PID int 30 PID int
29 31
30 fs FS 32 fs fs.FS
31} 33}
32 34
33// Procs represents a list of Proc structs. 35// Procs represents a list of Proc structs.
@@ -66,11 +68,11 @@ func AllProcs() (Procs, error) {
66 68
67// Self returns a process for the current process. 69// Self returns a process for the current process.
68func (fs FS) Self() (Proc, error) { 70func (fs FS) Self() (Proc, error) {
69 p, err := os.Readlink(fs.Path("self")) 71 p, err := os.Readlink(fs.proc.Path("self"))
70 if err != nil { 72 if err != nil {
71 return Proc{}, err 73 return Proc{}, err
72 } 74 }
73 pid, err := strconv.Atoi(strings.Replace(p, string(fs), "", -1)) 75 pid, err := strconv.Atoi(strings.Replace(p, string(fs.proc), "", -1))
74 if err != nil { 76 if err != nil {
75 return Proc{}, err 77 return Proc{}, err
76 } 78 }
@@ -79,15 +81,15 @@ func (fs FS) Self() (Proc, error) {
79 81
80// NewProc returns a process for the given pid. 82// NewProc returns a process for the given pid.
81func (fs FS) NewProc(pid int) (Proc, error) { 83func (fs FS) NewProc(pid int) (Proc, error) {
82 if _, err := os.Stat(fs.Path(strconv.Itoa(pid))); err != nil { 84 if _, err := os.Stat(fs.proc.Path(strconv.Itoa(pid))); err != nil {
83 return Proc{}, err 85 return Proc{}, err
84 } 86 }
85 return Proc{PID: pid, fs: fs}, nil 87 return Proc{PID: pid, fs: fs.proc}, nil
86} 88}
87 89
88// AllProcs returns a list of all currently available processes. 90// AllProcs returns a list of all currently available processes.
89func (fs FS) AllProcs() (Procs, error) { 91func (fs FS) AllProcs() (Procs, error) {
90 d, err := os.Open(fs.Path()) 92 d, err := os.Open(fs.proc.Path())
91 if err != nil { 93 if err != nil {
92 return Procs{}, err 94 return Procs{}, err
93 } 95 }
@@ -104,7 +106,7 @@ func (fs FS) AllProcs() (Procs, error) {
104 if err != nil { 106 if err != nil {
105 continue 107 continue
106 } 108 }
107 p = append(p, Proc{PID: int(pid), fs: fs}) 109 p = append(p, Proc{PID: int(pid), fs: fs.proc})
108 } 110 }
109 111
110 return p, nil 112 return p, nil
diff --git a/vendor/github.com/prometheus/procfs/proc_psi.go b/vendor/github.com/prometheus/procfs/proc_psi.go
index 4f11cdb..a23d4c0 100644
--- a/vendor/github.com/prometheus/procfs/proc_psi.go
+++ b/vendor/github.com/prometheus/procfs/proc_psi.go
@@ -64,7 +64,7 @@ func NewPSIStatsForResource(resource string) (PSIStats, error) {
64 64
65// NewPSIStatsForResource reads pressure stall information from /proc/pressure/<resource> 65// NewPSIStatsForResource reads pressure stall information from /proc/pressure/<resource>
66func (fs FS) NewPSIStatsForResource(resource string) (PSIStats, error) { 66func (fs FS) NewPSIStatsForResource(resource string) (PSIStats, error) {
67 file, err := os.Open(fs.Path(fmt.Sprintf("%s/%s", "pressure", resource))) 67 file, err := os.Open(fs.proc.Path(fmt.Sprintf("%s/%s", "pressure", resource)))
68 if err != nil { 68 if err != nil {
69 return PSIStats{}, fmt.Errorf("psi_stats: unavailable for %s", resource) 69 return PSIStats{}, fmt.Errorf("psi_stats: unavailable for %s", resource)
70 } 70 }
diff --git a/vendor/github.com/prometheus/procfs/proc_stat.go b/vendor/github.com/prometheus/procfs/proc_stat.go
index e7c626a..4c8b03c 100644
--- a/vendor/github.com/prometheus/procfs/proc_stat.go
+++ b/vendor/github.com/prometheus/procfs/proc_stat.go
@@ -18,6 +18,8 @@ import (
18 "fmt" 18 "fmt"
19 "io/ioutil" 19 "io/ioutil"
20 "os" 20 "os"
21
22 "github.com/prometheus/procfs/internal/fs"
21) 23)
22 24
23// Originally, this USER_HZ value was dynamically retrieved via a sysconf call 25// Originally, this USER_HZ value was dynamically retrieved via a sysconf call
@@ -99,7 +101,7 @@ type ProcStat struct {
99 // Resident set size in pages. 101 // Resident set size in pages.
100 RSS int 102 RSS int
101 103
102 fs FS 104 proc fs.FS
103} 105}
104 106
105// NewStat returns the current status information of the process. 107// NewStat returns the current status information of the process.
@@ -118,7 +120,7 @@ func (p Proc) NewStat() (ProcStat, error) {
118 var ( 120 var (
119 ignore int 121 ignore int
120 122
121 s = ProcStat{PID: p.PID, fs: p.fs} 123 s = ProcStat{PID: p.PID, proc: p.fs}
122 l = bytes.Index(data, []byte("(")) 124 l = bytes.Index(data, []byte("("))
123 r = bytes.LastIndex(data, []byte(")")) 125 r = bytes.LastIndex(data, []byte(")"))
124 ) 126 )
@@ -175,7 +177,8 @@ func (s ProcStat) ResidentMemory() int {
175 177
176// StartTime returns the unix timestamp of the process in seconds. 178// StartTime returns the unix timestamp of the process in seconds.
177func (s ProcStat) StartTime() (float64, error) { 179func (s ProcStat) StartTime() (float64, error) {
178 stat, err := s.fs.NewStat() 180 fs := FS{proc: s.proc}
181 stat, err := fs.NewStat()
179 if err != nil { 182 if err != nil {
180 return 0, err 183 return 0, err
181 } 184 }
diff --git a/vendor/github.com/prometheus/procfs/stat.go b/vendor/github.com/prometheus/procfs/stat.go
index 61eb6b0..44c9af1 100644
--- a/vendor/github.com/prometheus/procfs/stat.go
+++ b/vendor/github.com/prometheus/procfs/stat.go
@@ -153,7 +153,7 @@ func parseSoftIRQStat(line string) (SoftIRQStat, uint64, error) {
153func (fs FS) NewStat() (Stat, error) { 153func (fs FS) NewStat() (Stat, error) {
154 // See https://www.kernel.org/doc/Documentation/filesystems/proc.txt 154 // See https://www.kernel.org/doc/Documentation/filesystems/proc.txt
155 155
156 f, err := os.Open(fs.Path("stat")) 156 f, err := os.Open(fs.proc.Path("stat"))
157 if err != nil { 157 if err != nil {
158 return Stat{}, err 158 return Stat{}, err
159 } 159 }
diff --git a/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go b/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go
new file mode 100644
index 0000000..64720ef
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go
@@ -0,0 +1,188 @@
1// Copyright 2018 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14// +build !windows
15
16package sysfs
17
18import (
19 "fmt"
20 "io/ioutil"
21 "os"
22 "reflect"
23 "strconv"
24 "strings"
25
26 "github.com/prometheus/procfs/internal/util"
27)
28
29// PowerSupply contains info from files in /sys/class/power_supply for a single power supply.
30type PowerSupply struct {
31 Name string // Power Supply Name
32 Authentic *int64 `fileName:"authentic"` // /sys/class/power_suppy/<Name>/authentic
33 Calibrate *int64 `fileName:"calibrate"` // /sys/class/power_suppy/<Name>/calibrate
34 Capacity *int64 `fileName:"capacity"` // /sys/class/power_suppy/<Name>/capacity
35 CapacityAlertMax *int64 `fileName:"capacity_alert_max"` // /sys/class/power_suppy/<Name>/capacity_alert_max
36 CapacityAlertMin *int64 `fileName:"capacity_alert_min"` // /sys/class/power_suppy/<Name>/capacity_alert_min
37 CapacityLevel string `fileName:"capacity_level"` // /sys/class/power_suppy/<Name>/capacity_level
38 ChargeAvg *int64 `fileName:"charge_avg"` // /sys/class/power_suppy/<Name>/charge_avg
39 ChargeControlLimit *int64 `fileName:"charge_control_limit"` // /sys/class/power_suppy/<Name>/charge_control_limit
40 ChargeControlLimitMax *int64 `fileName:"charge_control_limit_max"` // /sys/class/power_suppy/<Name>/charge_control_limit_max
41 ChargeCounter *int64 `fileName:"charge_counter"` // /sys/class/power_suppy/<Name>/charge_counter
42 ChargeEmpty *int64 `fileName:"charge_empty"` // /sys/class/power_suppy/<Name>/charge_empty
43 ChargeEmptyDesign *int64 `fileName:"charge_empty_design"` // /sys/class/power_suppy/<Name>/charge_empty_design
44 ChargeFull *int64 `fileName:"charge_full"` // /sys/class/power_suppy/<Name>/charge_full
45 ChargeFullDesign *int64 `fileName:"charge_full_design"` // /sys/class/power_suppy/<Name>/charge_full_design
46 ChargeNow *int64 `fileName:"charge_now"` // /sys/class/power_suppy/<Name>/charge_now
47 ChargeTermCurrent *int64 `fileName:"charge_term_current"` // /sys/class/power_suppy/<Name>/charge_term_current
48 ChargeType string `fileName:"charge_type"` // /sys/class/power_supply/<Name>/charge_type
49 ConstantChargeCurrent *int64 `fileName:"constant_charge_current"` // /sys/class/power_suppy/<Name>/constant_charge_current
50 ConstantChargeCurrentMax *int64 `fileName:"constant_charge_current_max"` // /sys/class/power_suppy/<Name>/constant_charge_current_max
51 ConstantChargeVoltage *int64 `fileName:"constant_charge_voltage"` // /sys/class/power_suppy/<Name>/constant_charge_voltage
52 ConstantChargeVoltageMax *int64 `fileName:"constant_charge_voltage_max"` // /sys/class/power_suppy/<Name>/constant_charge_voltage_max
53 CurrentAvg *int64 `fileName:"current_avg"` // /sys/class/power_suppy/<Name>/current_avg
54 CurrentBoot *int64 `fileName:"current_boot"` // /sys/class/power_suppy/<Name>/current_boot
55 CurrentMax *int64 `fileName:"current_max"` // /sys/class/power_suppy/<Name>/current_max
56 CurrentNow *int64 `fileName:"current_now"` // /sys/class/power_suppy/<Name>/current_now
57 CycleCount *int64 `fileName:"cycle_count"` // /sys/class/power_suppy/<Name>/cycle_count
58 EnergyAvg *int64 `fileName:"energy_avg"` // /sys/class/power_supply/<Name>/energy_avg
59 EnergyEmpty *int64 `fileName:"energy_empty"` // /sys/class/power_suppy/<Name>/energy_empty
60 EnergyEmptyDesign *int64 `fileName:"energy_empty_design"` // /sys/class/power_suppy/<Name>/energy_empty_design
61 EnergyFull *int64 `fileName:"energy_full"` // /sys/class/power_suppy/<Name>/energy_full
62 EnergyFullDesign *int64 `fileName:"energy_full_design"` // /sys/class/power_suppy/<Name>/energy_full_design
63 EnergyNow *int64 `fileName:"energy_now"` // /sys/class/power_supply/<Name>/energy_now
64 Health string `fileName:"health"` // /sys/class/power_suppy/<Name>/health
65 InputCurrentLimit *int64 `fileName:"input_current_limit"` // /sys/class/power_suppy/<Name>/input_current_limit
66 Manufacturer string `fileName:"manufacturer"` // /sys/class/power_suppy/<Name>/manufacturer
67 ModelName string `fileName:"model_name"` // /sys/class/power_suppy/<Name>/model_name
68 Online *int64 `fileName:"online"` // /sys/class/power_suppy/<Name>/online
69 PowerAvg *int64 `fileName:"power_avg"` // /sys/class/power_suppy/<Name>/power_avg
70 PowerNow *int64 `fileName:"power_now"` // /sys/class/power_suppy/<Name>/power_now
71 PrechargeCurrent *int64 `fileName:"precharge_current"` // /sys/class/power_suppy/<Name>/precharge_current
72 Present *int64 `fileName:"present"` // /sys/class/power_suppy/<Name>/present
73 Scope string `fileName:"scope"` // /sys/class/power_suppy/<Name>/scope
74 SerialNumber string `fileName:"serial_number"` // /sys/class/power_suppy/<Name>/serial_number
75 Status string `fileName:"status"` // /sys/class/power_supply/<Name>/status
76 Technology string `fileName:"technology"` // /sys/class/power_suppy/<Name>/technology
77 Temp *int64 `fileName:"temp"` // /sys/class/power_suppy/<Name>/temp
78 TempAlertMax *int64 `fileName:"temp_alert_max"` // /sys/class/power_suppy/<Name>/temp_alert_max
79 TempAlertMin *int64 `fileName:"temp_alert_min"` // /sys/class/power_suppy/<Name>/temp_alert_min
80 TempAmbient *int64 `fileName:"temp_ambient"` // /sys/class/power_suppy/<Name>/temp_ambient
81 TempAmbientMax *int64 `fileName:"temp_ambient_max"` // /sys/class/power_suppy/<Name>/temp_ambient_max
82 TempAmbientMin *int64 `fileName:"temp_ambient_min"` // /sys/class/power_suppy/<Name>/temp_ambient_min
83 TempMax *int64 `fileName:"temp_max"` // /sys/class/power_suppy/<Name>/temp_max
84 TempMin *int64 `fileName:"temp_min"` // /sys/class/power_suppy/<Name>/temp_min
85 TimeToEmptyAvg *int64 `fileName:"time_to_empty_avg"` // /sys/class/power_suppy/<Name>/time_to_empty_avg
86 TimeToEmptyNow *int64 `fileName:"time_to_empty_now"` // /sys/class/power_suppy/<Name>/time_to_empty_now
87 TimeToFullAvg *int64 `fileName:"time_to_full_avg"` // /sys/class/power_suppy/<Name>/time_to_full_avg
88 TimeToFullNow *int64 `fileName:"time_to_full_now"` // /sys/class/power_suppy/<Name>/time_to_full_now
89 Type string `fileName:"type"` // /sys/class/power_supply/<Name>/type
90 UsbType string `fileName:"usb_type"` // /sys/class/power_supply/<Name>/usb_type
91 VoltageAvg *int64 `fileName:"voltage_avg"` // /sys/class/power_supply/<Name>/voltage_avg
92 VoltageBoot *int64 `fileName:"voltage_boot"` // /sys/class/power_suppy/<Name>/voltage_boot
93 VoltageMax *int64 `fileName:"voltage_max"` // /sys/class/power_suppy/<Name>/voltage_max
94 VoltageMaxDesign *int64 `fileName:"voltage_max_design"` // /sys/class/power_suppy/<Name>/voltage_max_design
95 VoltageMin *int64 `fileName:"voltage_min"` // /sys/class/power_suppy/<Name>/voltage_min
96 VoltageMinDesign *int64 `fileName:"voltage_min_design"` // /sys/class/power_suppy/<Name>/voltage_min_design
97 VoltageNow *int64 `fileName:"voltage_now"` // /sys/class/power_supply/<Name>/voltage_now
98 VoltageOCV *int64 `fileName:"voltage_ocv"` // /sys/class/power_suppy/<Name>/voltage_ocv
99}
100
101// PowerSupplyClass is a collection of every power supply in /sys/class/power_supply/.
102// The map keys are the names of the power supplies.
103type PowerSupplyClass map[string]PowerSupply
104
105// NewPowerSupplyClass returns info for all power supplies read from /sys/class/power_supply/.
106func NewPowerSupplyClass() (PowerSupplyClass, error) {
107 fs, err := NewFS(DefaultMountPoint)
108 if err != nil {
109 return nil, err
110 }
111
112 return fs.NewPowerSupplyClass()
113}
114
115// NewPowerSupplyClass returns info for all power supplies read from /sys/class/power_supply/.
116func (fs FS) NewPowerSupplyClass() (PowerSupplyClass, error) {
117 path := fs.sys.Path("class/power_supply")
118
119 powerSupplyDirs, err := ioutil.ReadDir(path)
120 if err != nil {
121 return PowerSupplyClass{}, fmt.Errorf("cannot access %s dir %s", path, err)
122 }
123
124 powerSupplyClass := PowerSupplyClass{}
125 for _, powerSupplyDir := range powerSupplyDirs {
126 powerSupply, err := powerSupplyClass.parsePowerSupply(path + "/" + powerSupplyDir.Name())
127 if err != nil {
128 return nil, err
129 }
130 powerSupply.Name = powerSupplyDir.Name()
131 powerSupplyClass[powerSupplyDir.Name()] = *powerSupply
132 }
133 return powerSupplyClass, nil
134}
135
136func (psc PowerSupplyClass) parsePowerSupply(powerSupplyPath string) (*PowerSupply, error) {
137 powerSupply := PowerSupply{}
138 powerSupplyElem := reflect.ValueOf(&powerSupply).Elem()
139 powerSupplyType := reflect.TypeOf(powerSupply)
140
141 //start from 1 - skip the Name field
142 for i := 1; i < powerSupplyElem.NumField(); i++ {
143 fieldType := powerSupplyType.Field(i)
144 fieldValue := powerSupplyElem.Field(i)
145
146 if fieldType.Tag.Get("fileName") == "" {
147 panic(fmt.Errorf("field %s does not have a filename tag", fieldType.Name))
148 }
149
150 value, err := util.SysReadFile(powerSupplyPath + "/" + fieldType.Tag.Get("fileName"))
151
152 if err != nil {
153 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" {
154 continue
155 }
156 return nil, fmt.Errorf("could not access file %s: %s", fieldType.Tag.Get("fileName"), err)
157 }
158
159 switch fieldValue.Kind() {
160 case reflect.String:
161 fieldValue.SetString(value)
162 case reflect.Ptr:
163 var int64ptr *int64
164 switch fieldValue.Type() {
165 case reflect.TypeOf(int64ptr):
166 var intValue int64
167 if strings.HasPrefix(value, "0x") {
168 intValue, err = strconv.ParseInt(value[2:], 16, 64)
169 if err != nil {
170 return nil, fmt.Errorf("expected hex value for %s, got: %s", fieldType.Name, value)
171 }
172 } else {
173 intValue, err = strconv.ParseInt(value, 10, 64)
174 if err != nil {
175 return nil, fmt.Errorf("expected Uint64 value for %s, got: %s", fieldType.Name, value)
176 }
177 }
178 fieldValue.Set(reflect.ValueOf(&intValue))
179 default:
180 return nil, fmt.Errorf("unhandled pointer type %q", fieldValue.Type())
181 }
182 default:
183 return nil, fmt.Errorf("unhandled type %q", fieldValue.Kind())
184 }
185 }
186
187 return &powerSupply, nil
188}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/class_thermal.go b/vendor/github.com/prometheus/procfs/sysfs/class_thermal.go
index 4f9cb9a..2d70795 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/class_thermal.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/class_thermal.go
@@ -37,7 +37,7 @@ type ClassThermalZoneStats struct {
37 37
38// NewClassThermalZoneStats returns Thermal Zone metrics for all zones. 38// NewClassThermalZoneStats returns Thermal Zone metrics for all zones.
39func (fs FS) NewClassThermalZoneStats() ([]ClassThermalZoneStats, error) { 39func (fs FS) NewClassThermalZoneStats() ([]ClassThermalZoneStats, error) {
40 zones, err := filepath.Glob(fs.Path("class/thermal/thermal_zone[0-9]*")) 40 zones, err := filepath.Glob(fs.sys.Path("class/thermal/thermal_zone[0-9]*"))
41 if err != nil { 41 if err != nil {
42 return []ClassThermalZoneStats{}, err 42 return []ClassThermalZoneStats{}, err
43 } 43 }
diff --git a/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar b/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar
deleted file mode 100644
index 33bdbdb..0000000
--- a/vendor/github.com/prometheus/procfs/sysfs/fixtures.ttar
+++ /dev/null
@@ -1,1048 +0,0 @@
1# Archive created by ttar -C sysfs/ -c -f sysfs/fixtures.ttar fixtures/
2Directory: fixtures
3Mode: 755
4# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
5Directory: fixtures/class
6Mode: 775
7# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
8Directory: fixtures/class/net
9Mode: 775
10# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
11Directory: fixtures/class/net/eth0
12Mode: 755
13# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14Path: fixtures/class/net/eth0/addr_assign_type
15Lines: 1
163
17Mode: 644
18# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
19Path: fixtures/class/net/eth0/addr_len
20Lines: 1
216
22Mode: 644
23# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
24Path: fixtures/class/net/eth0/address
25Lines: 1
2601:01:01:01:01:01
27Mode: 644
28# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
29Path: fixtures/class/net/eth0/broadcast
30Lines: 1
31ff:ff:ff:ff:ff:ff
32Mode: 644
33# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
34Path: fixtures/class/net/eth0/carrier
35Lines: 1
361
37Mode: 644
38# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39Path: fixtures/class/net/eth0/carrier_changes
40Lines: 1
412
42Mode: 644
43# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
44Path: fixtures/class/net/eth0/carrier_down_count
45Lines: 1
461
47Mode: 644
48# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
49Path: fixtures/class/net/eth0/carrier_up_count
50Lines: 1
511
52Mode: 644
53# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
54Path: fixtures/class/net/eth0/dev_id
55Lines: 1
560x20
57Mode: 644
58# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
59Path: fixtures/class/net/eth0/dormant
60Lines: 1
611
62Mode: 644
63# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
64Path: fixtures/class/net/eth0/duplex
65Lines: 1
66full
67Mode: 644
68# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
69Path: fixtures/class/net/eth0/flags
70Lines: 1
710x1303
72Mode: 644
73# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
74Path: fixtures/class/net/eth0/ifalias
75Lines: 0
76Mode: 644
77# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
78Path: fixtures/class/net/eth0/ifindex
79Lines: 1
802
81Mode: 644
82# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
83Path: fixtures/class/net/eth0/iflink
84Lines: 1
852
86Mode: 644
87# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
88Path: fixtures/class/net/eth0/link_mode
89Lines: 1
901
91Mode: 644
92# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
93Path: fixtures/class/net/eth0/mtu
94Lines: 1
951500
96Mode: 644
97# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
98Path: fixtures/class/net/eth0/name_assign_type
99Lines: 1
1002
101Mode: 644
102# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
103Path: fixtures/class/net/eth0/netdev_group
104Lines: 1
1050
106Mode: 644
107# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
108Path: fixtures/class/net/eth0/operstate
109Lines: 1
110up
111Mode: 644
112# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
113Path: fixtures/class/net/eth0/phys_port_id
114Lines: 0
115Mode: 644
116# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
117Path: fixtures/class/net/eth0/phys_port_name
118Lines: 0
119Mode: 644
120# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
121Path: fixtures/class/net/eth0/phys_switch_id
122Lines: 0
123Mode: 644
124# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
125Path: fixtures/class/net/eth0/speed
126Lines: 1
1271000
128Mode: 644
129# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
130Path: fixtures/class/net/eth0/tx_queue_len
131Lines: 1
1321000
133Mode: 644
134# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
135Path: fixtures/class/net/eth0/type
136Lines: 1
1371
138Mode: 644
139# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
140Directory: fixtures/class/thermal
141Mode: 775
142# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
143Directory: fixtures/class/thermal/thermal_zone0
144Mode: 775
145# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
146Path: fixtures/class/thermal/thermal_zone0/policy
147Lines: 1
148step_wise
149Mode: 664
150# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
151Path: fixtures/class/thermal/thermal_zone0/temp
152Lines: 1
15349925
154Mode: 664
155# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
156Path: fixtures/class/thermal/thermal_zone0/type
157Lines: 1
158bcm2835_thermal
159Mode: 664
160# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
161Directory: fixtures/class/thermal/thermal_zone1
162Mode: 755
163# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
164Path: fixtures/class/thermal/thermal_zone1/mode
165Lines: 1
166enabled
167Mode: 664
168# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
169Path: fixtures/class/thermal/thermal_zone1/passive
170Lines: 1
1710
172Mode: 664
173# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
174Path: fixtures/class/thermal/thermal_zone1/policy
175Lines: 1
176step_wise
177Mode: 664
178# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
179Path: fixtures/class/thermal/thermal_zone1/temp
180Lines: 1
18144000
182Mode: 664
183# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
184Path: fixtures/class/thermal/thermal_zone1/type
185Lines: 1
186acpitz
187Mode: 664
188# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
189Directory: fixtures/devices
190Mode: 755
191# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
192Directory: fixtures/devices/pci0000:00
193Mode: 755
194# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
195Directory: fixtures/devices/pci0000:00/0000:00:0d.0
196Mode: 755
197# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
198Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4
199Mode: 755
200# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
201Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3
202Mode: 755
203# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
204Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0
205Mode: 755
206# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
207Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0
208Mode: 755
209# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
210Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block
211Mode: 755
212# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
213Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb
214Mode: 755
215# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
216Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache
217Mode: 755
218# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
219Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/dirty_data
220Lines: 1
2210
222Mode: 644
223# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
224Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day
225Mode: 755
226# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
227Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/bypassed
228Lines: 1
2290
230Mode: 644
231# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
232Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_bypass_hits
233Lines: 1
2340
235Mode: 644
236# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
237Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_bypass_misses
238Lines: 1
2390
240Mode: 644
241# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
242Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_hit_ratio
243Lines: 1
244100
245Mode: 644
246# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
247Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_hits
248Lines: 1
249289
250Mode: 644
251# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
252Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_miss_collisions
253Lines: 1
2540
255Mode: 644
256# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
257Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_misses
258Lines: 1
2590
260Mode: 644
261# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
262Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_readaheads
263Lines: 1
2640
265Mode: 644
266# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
267Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute
268Mode: 755
269# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
270Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/bypassed
271Lines: 1
2720
273Mode: 644
274# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
275Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_bypass_hits
276Lines: 1
2770
278Mode: 644
279# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
280Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_bypass_misses
281Lines: 1
2820
283Mode: 644
284# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
285Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_hit_ratio
286Lines: 1
2870
288Mode: 644
289# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
290Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_hits
291Lines: 1
2920
293Mode: 644
294# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
295Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_miss_collisions
296Lines: 1
2970
298Mode: 644
299# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
300Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_misses
301Lines: 1
3020
303Mode: 644
304# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
305Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/cache_readaheads
306Lines: 1
3070
308Mode: 644
309# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
310Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour
311Mode: 755
312# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
313Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/bypassed
314Lines: 1
3150
316Mode: 644
317# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
318Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_bypass_hits
319Lines: 1
3200
321Mode: 644
322# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
323Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_bypass_misses
324Lines: 1
3250
326Mode: 644
327# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
328Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_hit_ratio
329Lines: 1
3300
331Mode: 644
332# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
333Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_hits
334Lines: 1
3350
336Mode: 644
337# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
338Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_miss_collisions
339Lines: 1
3400
341Mode: 644
342# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
343Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_misses
344Lines: 1
3450
346Mode: 644
347# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
348Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_readaheads
349Lines: 1
3500
351Mode: 644
352# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
353Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total
354Mode: 755
355# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
356Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/bypassed
357Lines: 1
3580
359Mode: 644
360# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
361Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_bypass_hits
362Lines: 1
3630
364Mode: 644
365# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
366Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_bypass_misses
367Lines: 1
3680
369Mode: 644
370# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
371Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_hit_ratio
372Lines: 1
373100
374Mode: 644
375# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
376Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_hits
377Lines: 1
378546
379Mode: 644
380# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
381Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_miss_collisions
382Lines: 1
3830
384Mode: 644
385# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
386Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_misses
387Lines: 1
3880
389Mode: 644
390# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
391Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_readaheads
392Lines: 1
3930
394Mode: 644
395# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
396Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5
397Mode: 755
398# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
399Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4
400Mode: 755
401# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
402Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0
403Mode: 755
404# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
405Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0
406Mode: 755
407# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
408Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block
409Mode: 755
410# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
411Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc
412Mode: 755
413# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
414Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache
415Mode: 755
416# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
417Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/io_errors
418Lines: 1
4190
420Mode: 644
421# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
422Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/metadata_written
423Lines: 1
424512
425Mode: 644
426# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
427Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/priority_stats
428Lines: 5
429Unused: 99%
430Metadata: 0%
431Average: 10473
432Sectors per Q: 64
433Quantiles: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946]
434Mode: 644
435# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
436Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/written
437Lines: 1
4380
439Mode: 644
440# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
441Directory: fixtures/devices/system
442Mode: 775
443# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
444Directory: fixtures/devices/system/cpu
445Mode: 775
446# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
447Directory: fixtures/devices/system/cpu/cpu0
448Mode: 775
449# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
450Path: fixtures/devices/system/cpu/cpu0/cpufreq
451SymlinkTo: ../cpufreq/policy0
452# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
453Directory: fixtures/devices/system/cpu/cpu1
454Mode: 775
455# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
456Directory: fixtures/devices/system/cpu/cpu1/cpufreq
457Mode: 775
458# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
459Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq
460Lines: 1
4611200195
462Mode: 400
463# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
464Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq
465Lines: 1
4663300000
467Mode: 664
468# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
469Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq
470Lines: 1
4711200000
472Mode: 664
473# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
474Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency
475Lines: 1
4764294967295
477Mode: 664
478# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
479Path: fixtures/devices/system/cpu/cpu1/cpufreq/related_cpus
480Lines: 1
4811
482Mode: 664
483# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
484Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_available_governors
485Lines: 1
486performance powersave
487Mode: 664
488# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
489Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_driver
490Lines: 1
491intel_pstate
492Mode: 664
493# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
494Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_governor
495Lines: 1
496powersave
497Mode: 664
498# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
499Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
500Lines: 1
5013300000
502Mode: 664
503# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
504Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
505Lines: 1
5061200000
507Mode: 664
508# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
509Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_setspeed
510Lines: 1
511<unsupported>
512Mode: 664
513# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
514Directory: fixtures/devices/system/cpu/cpufreq
515Mode: 775
516# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
517Directory: fixtures/devices/system/cpu/cpufreq/policy0
518Mode: 775
519# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
520Path: fixtures/devices/system/cpu/cpufreq/policy0/affected_cpus
521Lines: 1
5220
523Mode: 444
524# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
525Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq
526Lines: 1
5272400000
528Mode: 444
529# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
530Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq
531Lines: 1
532800000
533Mode: 444
534# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
535Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency
536Lines: 1
5370
538Mode: 444
539# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
540Path: fixtures/devices/system/cpu/cpufreq/policy0/related_cpus
541Lines: 1
5420
543Mode: 444
544# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
545Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_available_governors
546Lines: 1
547performance powersave
548Mode: 444
549# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
550Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_cur_freq
551Lines: 1
5521219917
553Mode: 444
554# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
555Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_driver
556Lines: 1
557intel_pstate
558Mode: 444
559# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
560Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_governor
561Lines: 1
562powersave
563Mode: 644
564# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
565Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_max_freq
566Lines: 1
5672400000
568Mode: 644
569# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
570Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_min_freq
571Lines: 1
572800000
573Mode: 644
574# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
575Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_setspeed
576Lines: 1
577<unsupported>
578Mode: 644
579# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
580Directory: fixtures/devices/system/cpu/cpufreq/policy1
581Mode: 755
582# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
583Directory: fixtures/fs
584Mode: 755
585# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
586Directory: fixtures/fs/bcache
587Mode: 755
588# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
589Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74
590Mode: 755
591# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
592Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/average_key_size
593Lines: 1
5940
595Mode: 644
596# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
597Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0
598Mode: 777
599# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
600Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/dirty_data
601Lines: 1
6020
603Mode: 644
604# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
605Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day
606Mode: 755
607# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
608Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/bypassed
609Lines: 1
6100
611Mode: 644
612# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
613Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_hits
614Lines: 1
6150
616Mode: 644
617# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
618Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_misses
619Lines: 1
6200
621Mode: 644
622# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
623Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hit_ratio
624Lines: 1
625100
626Mode: 644
627# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
628Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hits
629Lines: 1
630289
631Mode: 644
632# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
633Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_miss_collisions
634Lines: 1
6350
636Mode: 644
637# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
638Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_misses
639Lines: 1
6400
641Mode: 644
642# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
643Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_readaheads
644Lines: 1
6450
646Mode: 644
647# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
648Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute
649Mode: 755
650# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
651Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/bypassed
652Lines: 1
6530
654Mode: 644
655# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
656Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_hits
657Lines: 1
6580
659Mode: 644
660# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
661Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_misses
662Lines: 1
6630
664Mode: 644
665# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
666Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hit_ratio
667Lines: 1
6680
669Mode: 644
670# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
671Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hits
672Lines: 1
6730
674Mode: 644
675# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
676Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_miss_collisions
677Lines: 1
6780
679Mode: 644
680# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
681Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_misses
682Lines: 1
6830
684Mode: 644
685# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
686Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_readaheads
687Lines: 1
6880
689Mode: 644
690# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
691Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour
692Mode: 755
693# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
694Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/bypassed
695Lines: 1
6960
697Mode: 644
698# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
699Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_hits
700Lines: 1
7010
702Mode: 644
703# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
704Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_misses
705Lines: 1
7060
707Mode: 644
708# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
709Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hit_ratio
710Lines: 1
7110
712Mode: 644
713# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
714Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hits
715Lines: 1
7160
717Mode: 644
718# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
719Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_miss_collisions
720Lines: 1
7210
722Mode: 644
723# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
724Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_misses
725Lines: 1
7260
727Mode: 644
728# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
729Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_readaheads
730Lines: 1
7310
732Mode: 644
733# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
734Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total
735Mode: 755
736# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
737Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/bypassed
738Lines: 1
7390
740Mode: 644
741# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
742Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_hits
743Lines: 1
7440
745Mode: 644
746# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
747Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_misses
748Lines: 1
7490
750Mode: 644
751# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
752Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hit_ratio
753Lines: 1
754100
755Mode: 644
756# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
757Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hits
758Lines: 1
759546
760Mode: 644
761# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
762Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_miss_collisions
763Lines: 1
7640
765Mode: 644
766# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
767Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_misses
768Lines: 1
7690
770Mode: 644
771# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
772Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_readaheads
773Lines: 1
7740
775Mode: 644
776# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
777Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/btree_cache_size
778Lines: 1
7790
780Mode: 644
781# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
782Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0
783Mode: 777
784# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
785Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/io_errors
786Lines: 1
7870
788Mode: 644
789# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
790Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/metadata_written
791Lines: 1
792512
793Mode: 644
794# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
795Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/priority_stats
796Lines: 5
797Unused: 99%
798Metadata: 0%
799Average: 10473
800Sectors per Q: 64
801Quantiles: [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946 20946]
802Mode: 644
803# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
804Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/written
805Lines: 1
8060
807Mode: 644
808# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
809Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache_available_percent
810Lines: 1
811100
812Mode: 644
813# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
814Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/congested
815Lines: 1
8160
817Mode: 644
818# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
819Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal
820Mode: 755
821# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
822Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/active_journal_entries
823Lines: 1
8241
825Mode: 644
826# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
827Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_nodes
828Lines: 1
8290
830Mode: 644
831# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
832Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_read_average_duration_us
833Lines: 1
8341305
835Mode: 644
836# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
837Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/cache_read_races
838Lines: 1
8390
840Mode: 644
841# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
842Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/root_usage_percent
843Lines: 1
8440
845Mode: 644
846# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
847Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day
848Mode: 755
849# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
850Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/bypassed
851Lines: 1
8520
853Mode: 644
854# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
855Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_hits
856Lines: 1
8570
858Mode: 644
859# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
860Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_misses
861Lines: 1
8620
863Mode: 644
864# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
865Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hit_ratio
866Lines: 1
867100
868Mode: 644
869# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
870Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hits
871Lines: 1
872289
873Mode: 644
874# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
875Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_miss_collisions
876Lines: 1
8770
878Mode: 644
879# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
880Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_misses
881Lines: 1
8820
883Mode: 644
884# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
885Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_readaheads
886Lines: 1
8870
888Mode: 644
889# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
890Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute
891Mode: 755
892# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
893Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/bypassed
894Lines: 1
8950
896Mode: 644
897# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
898Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_hits
899Lines: 1
9000
901Mode: 644
902# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
903Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_misses
904Lines: 1
9050
906Mode: 644
907# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
908Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hit_ratio
909Lines: 1
9100
911Mode: 644
912# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
913Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hits
914Lines: 1
9150
916Mode: 644
917# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
918Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_miss_collisions
919Lines: 1
9200
921Mode: 644
922# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
923Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_misses
924Lines: 1
9250
926Mode: 644
927# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
928Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_readaheads
929Lines: 1
9300
931Mode: 644
932# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
933Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour
934Mode: 755
935# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
936Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/bypassed
937Lines: 1
9380
939Mode: 644
940# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
941Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_hits
942Lines: 1
9430
944Mode: 644
945# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
946Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_misses
947Lines: 1
9480
949Mode: 644
950# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
951Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hit_ratio
952Lines: 1
9530
954Mode: 644
955# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
956Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hits
957Lines: 1
9580
959Mode: 644
960# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
961Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_miss_collisions
962Lines: 1
9630
964Mode: 644
965# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
966Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_misses
967Lines: 1
9680
969Mode: 644
970# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
971Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_readaheads
972Lines: 1
9730
974Mode: 644
975# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
976Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total
977Mode: 755
978# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
979Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/bypassed
980Lines: 1
9810
982Mode: 644
983# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
984Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_hits
985Lines: 1
9860
987Mode: 644
988# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
989Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_misses
990Lines: 1
9910
992Mode: 644
993# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
994Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hit_ratio
995Lines: 1
996100
997Mode: 644
998# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
999Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hits
1000Lines: 1
1001546
1002Mode: 644
1003# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1004Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_miss_collisions
1005Lines: 1
10060
1007Mode: 644
1008# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1009Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_misses
1010Lines: 1
10110
1012Mode: 644
1013# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1014Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_readaheads
1015Lines: 1
10160
1017Mode: 644
1018# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1019Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/tree_depth
1020Lines: 1
10210
1022Mode: 644
1023# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1024Directory: fixtures/fs/xfs
1025Mode: 755
1026# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1027Directory: fixtures/fs/xfs/sda1
1028Mode: 755
1029# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1030Directory: fixtures/fs/xfs/sda1/stats
1031Mode: 755
1032# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1033Path: fixtures/fs/xfs/sda1/stats/stats
1034Lines: 1
1035extent_alloc 1 0 0 0
1036Mode: 644
1037# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1038Directory: fixtures/fs/xfs/sdb1
1039Mode: 755
1040# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1041Directory: fixtures/fs/xfs/sdb1/stats
1042Mode: 755
1043# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1044Path: fixtures/fs/xfs/sdb1/stats/stats
1045Lines: 1
1046extent_alloc 2 0 0 0
1047Mode: 644
1048# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/vendor/github.com/prometheus/procfs/sysfs/fs.go b/vendor/github.com/prometheus/procfs/sysfs/fs.go
index fb15d43..c0cb9b6 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/fs.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/fs.go
@@ -14,95 +14,24 @@
14package sysfs 14package sysfs
15 15
16import ( 16import (
17 "fmt" 17 "github.com/prometheus/procfs/internal/fs"
18 "os"
19 "path/filepath"
20
21 "github.com/prometheus/procfs/bcache"
22 "github.com/prometheus/procfs/xfs"
23) 18)
24 19
25// FS represents the pseudo-filesystem sys, which provides an interface to 20// FS represents the pseudo-filesystem sys, which provides an interface to
26// kernel data structures. 21// kernel data structures.
27type FS string 22type FS struct {
23 sys fs.FS
24}
28 25
29// DefaultMountPoint is the common mount point of the sys filesystem. 26// DefaultMountPoint is the common mount point of the sys filesystem.
30const DefaultMountPoint = "/sys" 27const DefaultMountPoint = fs.DefaultSysMountPoint
31 28
32// NewFS returns a new FS mounted under the given mountPoint. It will error 29// NewFS returns a new FS mounted under the given mountPoint. It will error
33// if the mount point can't be read. 30// if the mount point can't be read.
34func NewFS(mountPoint string) (FS, error) { 31func NewFS(mountPoint string) (FS, error) {
35 info, err := os.Stat(mountPoint) 32 fs, err := fs.NewFS(mountPoint)
36 if err != nil { 33 if err != nil {
37 return "", fmt.Errorf("could not read %s: %s", mountPoint, err) 34 return FS{}, err
38 } 35 }
39 if !info.IsDir() { 36 return FS{fs}, nil
40 return "", fmt.Errorf("mount point %s is not a directory", mountPoint)
41 }
42
43 return FS(mountPoint), nil
44}
45
46// Path returns the path of the given subsystem relative to the sys root.
47func (fs FS) Path(p ...string) string {
48 return filepath.Join(append([]string{string(fs)}, p...)...)
49}
50
51// XFSStats retrieves XFS filesystem runtime statistics for each mounted XFS
52// filesystem. Only available on kernel 4.4+. On older kernels, an empty
53// slice of *xfs.Stats will be returned.
54func (fs FS) XFSStats() ([]*xfs.Stats, error) {
55 matches, err := filepath.Glob(fs.Path("fs/xfs/*/stats/stats"))
56 if err != nil {
57 return nil, err
58 }
59
60 stats := make([]*xfs.Stats, 0, len(matches))
61 for _, m := range matches {
62 f, err := os.Open(m)
63 if err != nil {
64 return nil, err
65 }
66
67 // "*" used in glob above indicates the name of the filesystem.
68 name := filepath.Base(filepath.Dir(filepath.Dir(m)))
69
70 // File must be closed after parsing, regardless of success or
71 // failure. Defer is not used because of the loop.
72 s, err := xfs.ParseStats(f)
73 _ = f.Close()
74 if err != nil {
75 return nil, err
76 }
77
78 s.Name = name
79 stats = append(stats, s)
80 }
81
82 return stats, nil
83}
84
85// BcacheStats retrieves bcache runtime statistics for each bcache.
86func (fs FS) BcacheStats() ([]*bcache.Stats, error) {
87 matches, err := filepath.Glob(fs.Path("fs/bcache/*-*"))
88 if err != nil {
89 return nil, err
90 }
91
92 stats := make([]*bcache.Stats, 0, len(matches))
93 for _, uuidPath := range matches {
94 // "*-*" in glob above indicates the name of the bcache.
95 name := filepath.Base(uuidPath)
96
97 // stats
98 s, err := bcache.GetStats(uuidPath)
99 if err != nil {
100 return nil, err
101 }
102
103 s.Name = name
104 stats = append(stats, s)
105 }
106
107 return stats, nil
108} 37}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/net_class.go b/vendor/github.com/prometheus/procfs/sysfs/net_class.go
index 1de9622..c28051e 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/net_class.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/net_class.go
@@ -19,6 +19,7 @@ import (
19 "fmt" 19 "fmt"
20 "io/ioutil" 20 "io/ioutil"
21 "os" 21 "os"
22 "path/filepath"
22 "reflect" 23 "reflect"
23 "strconv" 24 "strconv"
24 "strings" 25 "strings"
@@ -26,6 +27,8 @@ import (
26 "github.com/prometheus/procfs/internal/util" 27 "github.com/prometheus/procfs/internal/util"
27) 28)
28 29
30const netclassPath = "class/net"
31
29// NetClassIface contains info from files in /sys/class/net/<iface> 32// NetClassIface contains info from files in /sys/class/net/<iface>
30// for single interface (iface). 33// for single interface (iface).
31type NetClassIface struct { 34type NetClassIface struct {
@@ -72,26 +75,42 @@ func NewNetClass() (NetClass, error) {
72 return fs.NewNetClass() 75 return fs.NewNetClass()
73} 76}
74 77
75// NewNetClass returns info for all net interfaces (iface) read from /sys/class/net/<iface>. 78// NetClassDevices scans /sys/class/net for devices and returns them as a list of names.
76func (fs FS) NewNetClass() (NetClass, error) { 79func (fs FS) NetClassDevices() ([]string, error) {
77 path := fs.Path("class/net") 80 var res []string
81 path := fs.sys.Path(netclassPath)
78 82
79 devices, err := ioutil.ReadDir(path) 83 devices, err := ioutil.ReadDir(path)
80 if err != nil { 84 if err != nil {
81 return NetClass{}, fmt.Errorf("cannot access %s dir %s", path, err) 85 return res, fmt.Errorf("cannot access %s dir %s", path, err)
82 } 86 }
83 87
84 netClass := NetClass{}
85 for _, deviceDir := range devices { 88 for _, deviceDir := range devices {
86 if deviceDir.Mode().IsRegular() { 89 if deviceDir.Mode().IsRegular() {
87 continue 90 continue
88 } 91 }
89 interfaceClass, err := netClass.parseNetClassIface(path + "/" + deviceDir.Name()) 92 res = append(res, deviceDir.Name())
93 }
94
95 return res, nil
96}
97
98// NewNetClass returns info for all net interfaces (iface) read from /sys/class/net/<iface>.
99func (fs FS) NewNetClass() (NetClass, error) {
100 devices, err := fs.NetClassDevices()
101 if err != nil {
102 return nil, err
103 }
104
105 path := fs.sys.Path(netclassPath)
106 netClass := NetClass{}
107 for _, deviceDir := range devices {
108 interfaceClass, err := netClass.parseNetClassIface(filepath.Join(path, deviceDir))
90 if err != nil { 109 if err != nil {
91 return nil, err 110 return nil, err
92 } 111 }
93 interfaceClass.Name = deviceDir.Name() 112 interfaceClass.Name = deviceDir
94 netClass[deviceDir.Name()] = *interfaceClass 113 netClass[deviceDir] = *interfaceClass
95 } 114 }
96 return netClass, nil 115 return netClass, nil
97} 116}
diff --git a/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go b/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
index 6f48aa7..4bcf86b 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
@@ -60,7 +60,7 @@ func NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) {
60func (fs FS) NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) { 60func (fs FS) NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) {
61 var g errgroup.Group 61 var g errgroup.Group
62 62
63 cpus, err := filepath.Glob(fs.Path("devices/system/cpu/cpu[0-9]*")) 63 cpus, err := filepath.Glob(fs.sys.Path("devices/system/cpu/cpu[0-9]*"))
64 if err != nil { 64 if err != nil {
65 return nil, err 65 return nil, err
66 } 66 }
@@ -70,10 +70,10 @@ func (fs FS) NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) {
70 cpuName := strings.TrimPrefix(filepath.Base(cpu), "cpu") 70 cpuName := strings.TrimPrefix(filepath.Base(cpu), "cpu")
71 71
72 cpuCpufreqPath := filepath.Join(cpu, "cpufreq") 72 cpuCpufreqPath := filepath.Join(cpu, "cpufreq")
73 if _, err := os.Stat(cpuCpufreqPath); os.IsNotExist(err) { 73 _, err = os.Stat(cpuCpufreqPath)
74 if os.IsNotExist(err) {
74 continue 75 continue
75 } 76 } else if err != nil {
76 if err != nil {
77 return nil, err 77 return nil, err
78 } 78 }
79 79
diff --git a/vendor/github.com/prometheus/procfs/xfrm.go b/vendor/github.com/prometheus/procfs/xfrm.go
index 8f1508f..30aa417 100644
--- a/vendor/github.com/prometheus/procfs/xfrm.go
+++ b/vendor/github.com/prometheus/procfs/xfrm.go
@@ -97,7 +97,7 @@ func NewXfrmStat() (XfrmStat, error) {
97 97
98// NewXfrmStat reads the xfrm_stat statistics from the 'proc' filesystem. 98// NewXfrmStat reads the xfrm_stat statistics from the 'proc' filesystem.
99func (fs FS) NewXfrmStat() (XfrmStat, error) { 99func (fs FS) NewXfrmStat() (XfrmStat, error) {
100 file, err := os.Open(fs.Path("net/xfrm_stat")) 100 file, err := os.Open(fs.proc.Path("net/xfrm_stat"))
101 if err != nil { 101 if err != nil {
102 return XfrmStat{}, err 102 return XfrmStat{}, err
103 } 103 }
diff --git a/vendor/github.com/prometheus/procfs/xfs/xfs.go b/vendor/github.com/prometheus/procfs/xfs/xfs.go
index d86794b..8a7288f 100644
--- a/vendor/github.com/prometheus/procfs/xfs/xfs.go
+++ b/vendor/github.com/prometheus/procfs/xfs/xfs.go
@@ -14,6 +14,14 @@
14// Package xfs provides access to statistics exposed by the XFS filesystem. 14// Package xfs provides access to statistics exposed by the XFS filesystem.
15package xfs 15package xfs
16 16
17import (
18 "os"
19 "path/filepath"
20 "strings"
21
22 "github.com/prometheus/procfs/internal/fs"
23)
24
17// Stats contains XFS filesystem runtime statistics, parsed from 25// Stats contains XFS filesystem runtime statistics, parsed from
18// /proc/fs/xfs/stat. 26// /proc/fs/xfs/stat.
19// 27//
@@ -161,3 +169,76 @@ type ExtendedPrecisionStats struct {
161 WriteBytes uint64 169 WriteBytes uint64
162 ReadBytes uint64 170 ReadBytes uint64
163} 171}
172
173// FS represents the pseudo-filesystems proc and sys, which provides an interface to
174// kernel data structures.
175type FS struct {
176 proc *fs.FS
177 sys *fs.FS
178}
179
180// NewFS returns a new XFS handle using the given proc and sys mountPoints. It will error
181// if either of the mounts point can't be read.
182func NewFS(procMountPoint string, sysMountPoint string) (FS, error) {
183 if strings.TrimSpace(procMountPoint) == "" {
184 procMountPoint = fs.DefaultProcMountPoint
185 }
186 procfs, err := fs.NewFS(procMountPoint)
187 if err != nil {
188 return FS{}, err
189 }
190 if strings.TrimSpace(sysMountPoint) == "" {
191 sysMountPoint = fs.DefaultSysMountPoint
192 }
193 sysfs, err := fs.NewFS(sysMountPoint)
194 if err != nil {
195 return FS{}, err
196 }
197 return FS{&procfs, &sysfs}, nil
198}
199
200// ProcStat retrieves XFS filesystem runtime statistics
201// from proc/fs/xfs/stat given the profs mount point.
202func (fs FS) ProcStat() (*Stats, error) {
203 f, err := os.Open(fs.proc.Path("fs/xfs/stat"))
204 if err != nil {
205 return nil, err
206 }
207 defer f.Close()
208
209 return ParseStats(f)
210}
211
212// SysStats retrieves XFS filesystem runtime statistics for each mounted XFS
213// filesystem. Only available on kernel 4.4+. On older kernels, an empty
214// slice of *xfs.Stats will be returned.
215func (fs FS) SysStats() ([]*Stats, error) {
216 matches, err := filepath.Glob(fs.sys.Path("fs/xfs/*/stats/stats"))
217 if err != nil {
218 return nil, err
219 }
220
221 stats := make([]*Stats, 0, len(matches))
222 for _, m := range matches {
223 f, err := os.Open(m)
224 if err != nil {
225 return nil, err
226 }
227
228 // "*" used in glob above indicates the name of the filesystem.
229 name := filepath.Base(filepath.Dir(filepath.Dir(m)))
230
231 // File must be closed after parsing, regardless of success or
232 // failure. Defer is not used because of the loop.
233 s, err := ParseStats(f)
234 _ = f.Close()
235 if err != nil {
236 return nil, err
237 }
238
239 s.Name = name
240 stats = append(stats, s)
241 }
242
243 return stats, nil
244}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index bf892cb..a2612b1 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -43,12 +43,13 @@ github.com/prometheus/common/version
43github.com/prometheus/common/expfmt 43github.com/prometheus/common/expfmt
44github.com/prometheus/common/model 44github.com/prometheus/common/model
45github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg 45github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
46# github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd 46# github.com/prometheus/procfs v0.0.0-20190503130316-740c07785007
47github.com/prometheus/procfs 47github.com/prometheus/procfs
48github.com/prometheus/procfs/bcache 48github.com/prometheus/procfs/bcache
49github.com/prometheus/procfs/nfs 49github.com/prometheus/procfs/nfs
50github.com/prometheus/procfs/sysfs 50github.com/prometheus/procfs/sysfs
51github.com/prometheus/procfs/xfs 51github.com/prometheus/procfs/xfs
52github.com/prometheus/procfs/internal/fs
52github.com/prometheus/procfs/internal/util 53github.com/prometheus/procfs/internal/util
53# github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 54# github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745
54github.com/siebenmann/go-kstat 55github.com/siebenmann/go-kstat
@@ -61,7 +62,7 @@ golang.org/x/net/ipv4
61golang.org/x/net/bpf 62golang.org/x/net/bpf
62golang.org/x/net/internal/iana 63golang.org/x/net/internal/iana
63golang.org/x/net/internal/socket 64golang.org/x/net/internal/socket
64# golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 65# golang.org/x/sync v0.0.0-20190423024810-112230192c58
65golang.org/x/sync/errgroup 66golang.org/x/sync/errgroup
66# golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c 67# golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c
67golang.org/x/sys/unix 68golang.org/x/sys/unix