diff options
author | Paul Gier <pgier@redhat.com> | 2019-05-06 23:38:21 -0500 |
---|---|---|
committer | Ben Kochie <superq@gmail.com> | 2019-05-07 06:38:21 +0200 |
commit | 86f907942939fac63fb4bf6c8cabae8ca4f3b975 (patch) | |
tree | bb20217234eb5df9221ded08cd9925291b791981 | |
parent | c7abeae816a8170ed8e78c68dc15ee3c10eef2ef (diff) | |
download | prometheus_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>
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 | ||
27 | func init() { | 26 | func 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. |
32 | type bcacheCollector struct { | 31 | type 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. |
38 | func NewBcacheCollector() (Collector, error) { | 37 | func 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. |
51 | func (c *bcacheCollector) Update(ch chan<- prometheus.Metric) error { | 50 | func (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 | ||
31 | type nfsCollector struct { | 30 | type 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. |
46 | func NewNfsCollector() (Collector, error) { | 45 | func 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 | ||
93 | func (c *nfsCollector) Update(ch chan<- prometheus.Metric) error { | 92 | func (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/ |
28 | type nfsdCollector struct { | 27 | type 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. |
42 | func NewNFSdCollector() (Collector, error) { | 41 | func 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. |
59 | func (c *nfsdCollector) Update(ch chan<- prometheus.Metric) error { | 58 | func (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. |
25 | type xfsCollector struct { | 24 | type xfsCollector struct { |
26 | fs sysfs.FS | 25 | fs xfs.FS |
27 | } | 26 | } |
28 | 27 | ||
29 | func init() { | 28 | func 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. |
34 | func NewXFSCollector() (Collector, error) { | 33 | func 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. |
46 | func (c *xfsCollector) Update(ch chan<- prometheus.Metric) error { | 45 | func (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 | } |
@@ -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 | ) |
@@ -61,8 +61,8 @@ github.com/prometheus/common v0.2.0 h1:kUZDBDTdBVBYBj5Tmh2NZLlF60mfjA27rM34b+cVw | |||
61 | github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= | 61 | github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= |
62 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= | 62 | github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= |
63 | github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= | 63 | github.com/prometheus/procfs v0.0.0-20181204211112-1dc9a6cbc91a/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= |
64 | github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd h1:pi7bGw6n4tfgHQtWDxJBBLYVdFr1GlfQEsDOyCDDFMM= | 64 | github.com/prometheus/procfs v0.0.0-20190503130316-740c07785007 h1:gT4PpkbWSQM4J8fup/aXeQhY5jLDyHuPq8y2dHspqFw= |
65 | github.com/prometheus/procfs v0.0.0-20190209105433-f8d8b3f739bd/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= | 65 | github.com/prometheus/procfs v0.0.0-20190503130316-740c07785007/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= |
66 | github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA= | 66 | github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA= |
67 | github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8= | 67 | github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8= |
68 | github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= | 68 | github.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 | |||
86 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | 86 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= |
87 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= | 87 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4 h1:YUO/7uOKsKeq9UokNS62b8FYywz3ker1l1vDZRCRefw= |
88 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | 88 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= |
89 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 h1:bjcUS9ztw9kFmmIxJInhon/0Is3p+EHBKNgquIzo1OI= | 89 | golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU= |
90 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= | 90 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= |
91 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | 91 | golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= |
92 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | 92 | golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= |
93 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | 93 | golang.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. | ||
2 | linters: | ||
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 | ||
20 | update_fixtures: fixtures.ttar sysfs/fixtures.ttar | 20 | update_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 |
27 | build: | 25 | build: |
28 | 26 | ||
29 | .PHONY: test | 27 | .PHONY: test |
30 | test: fixtures/.unpacked sysfs/fixtures/.unpacked common-test | 28 | test: 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 | |||
29 | GOFMT ?= $(GO)fmt | 29 | GOFMT ?= $(GO)fmt |
30 | FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) | 30 | FIRST_GOPATH := $(firstword $(subst :, ,$(shell $(GO) env GOPATH))) |
31 | GOOPTS ?= | 31 | GOOPTS ?= |
32 | GOHOSTOS ?= $(shell $(GO) env GOHOSTOS) | ||
33 | GOHOSTARCH ?= $(shell $(GO) env GOHOSTARCH) | ||
32 | 34 | ||
33 | GO_VERSION ?= $(shell $(GO) version) | 35 | GO_VERSION ?= $(shell $(GO) version) |
34 | GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) | 36 | GO_VERSION_NUMBER ?= $(word 3, $(GO_VERSION)) |
35 | PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') | 37 | PRE_GO_111 ?= $(shell echo $(GO_VERSION_NUMBER) | grep -E 'go1\.(10|[0-9])\.') |
36 | 38 | ||
37 | unexport GOVENDOR | 39 | GOVENDOR := |
40 | GO111MODULE := | ||
38 | ifeq (, $(PRE_GO_111)) | 41 | ifeq (, $(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 | ||
60 | endif | 61 | endif |
61 | PROMU := $(FIRST_GOPATH)/bin/promu | 62 | PROMU := $(FIRST_GOPATH)/bin/promu |
62 | STATICCHECK := $(FIRST_GOPATH)/bin/staticcheck | ||
63 | pkgs = ./... | 63 | pkgs = ./... |
64 | 64 | ||
65 | GO_VERSION ?= $(shell $(GO) version) | 65 | ifeq (arm, $(GOHOSTARCH)) |
66 | GO_BUILD_PLATFORM ?= $(subst /,-,$(lastword $(GO_VERSION))) | 66 | GOHOSTARM ?= $(shell GOARM= $(GO) env GOARM) |
67 | GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH)v$(GOHOSTARM) | ||
68 | else | ||
69 | GO_BUILD_PLATFORM ?= $(GOHOSTOS)-$(GOHOSTARCH) | ||
70 | endif | ||
67 | 71 | ||
68 | PROMU_VERSION ?= 0.2.0 | 72 | PROMU_VERSION ?= 0.3.0 |
69 | PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz | 73 | PROMU_URL := https://github.com/prometheus/promu/releases/download/v$(PROMU_VERSION)/promu-$(PROMU_VERSION).$(GO_BUILD_PLATFORM).tar.gz |
70 | 74 | ||
75 | GOLANGCI_LINT := | ||
76 | GOLANGCI_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. | ||
79 | ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux darwin)) | ||
80 | ifeq ($(GOHOSTARCH),$(filter $(GOHOSTARCH),amd64 i386)) | ||
81 | GOLANGCI_LINT := $(FIRST_GOPATH)/bin/golangci-lint | ||
82 | endif | ||
83 | endif | ||
84 | |||
71 | PREFIX ?= $(shell pwd) | 85 | PREFIX ?= $(shell pwd) |
72 | BIN_DIR ?= $(shell pwd) | 86 | BIN_DIR ?= $(shell pwd) |
73 | DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) | 87 | DOCKER_IMAGE_TAG ?= $(subst /,-,$(shell git rev-parse --abbrev-ref HEAD)) |
74 | DOCKER_REPO ?= prom | 88 | DOCKER_REPO ?= prom |
75 | 89 | ||
76 | .PHONY: all | 90 | DOCKER_ARCHS ?= amd64 |
77 | all: precheck style staticcheck unused build test | 91 | |
92 | BUILD_DOCKER_ARCHS = $(addprefix common-docker-,$(DOCKER_ARCHS)) | ||
93 | PUBLISH_DOCKER_ARCHS = $(addprefix common-docker-publish-,$(DOCKER_ARCHS)) | ||
94 | TAG_DOCKER_ARCHS = $(addprefix common-docker-tag-latest-,$(DOCKER_ARCHS)) | ||
95 | |||
96 | ifeq ($(GOHOSTARCH),amd64) | ||
97 | ifeq ($(GOHOSTOS),$(filter $(GOHOSTOS),linux freebsd darwin windows)) | ||
98 | # Only supported on amd64 | ||
99 | test-flags := -race | ||
100 | endif | ||
101 | endif | ||
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 | ||
109 | common-all: precheck style check_license lint unused build test | ||
110 | |||
84 | .PHONY: common-style | 111 | .PHONY: common-style |
85 | common-style: | 112 | common-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 | ||
133 | common-deps: | ||
134 | @echo ">> getting dependencies" | ||
135 | ifdef GO111MODULE | ||
136 | GO111MODULE=$(GO111MODULE) $(GO) mod download | ||
137 | else | ||
138 | $(GO) get $(GOOPTS) -t ./... | ||
139 | endif | ||
140 | |||
105 | .PHONY: common-test-short | 141 | .PHONY: common-test-short |
106 | common-test-short: | 142 | common-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 |
111 | common-test: | 147 | common-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 |
116 | common-format: | 152 | common-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 |
121 | common-vet: | 157 | common-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 |
126 | common-staticcheck: $(STATICCHECK) | 162 | common-lint: $(GOLANGCI_LINT) |
127 | @echo ">> running staticcheck" | 163 | ifdef GOLANGCI_LINT |
164 | @echo ">> running golangci-lint" | ||
128 | ifdef GO111MODULE | 165 | ifdef 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) | ||
130 | else | 170 | else |
131 | $(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs) | 171 | $(GOLANGCI_LINT) run $(pkgs) |
132 | endif | 172 | endif |
173 | endif | ||
174 | |||
175 | # For backward-compatibility. | ||
176 | .PHONY: common-staticcheck | ||
177 | common-staticcheck: lint | ||
133 | 178 | ||
134 | .PHONY: common-unused | 179 | .PHONY: common-unused |
135 | common-unused: $(GOVENDOR) | 180 | common-unused: $(GOVENDOR) |
@@ -140,8 +185,9 @@ else | |||
140 | ifdef GO111MODULE | 185 | ifdef 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 |
188 | ifeq (,$(wildcard vendor)) | ||
143 | @git diff --exit-code -- go.sum go.mod | 189 | @git diff --exit-code -- go.sum go.mod |
144 | ifneq (,$(wildcard vendor)) | 190 | else |
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) |
163 | common-docker: | 209 | common-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="$*" \ |
167 | common-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) |
171 | common-docker-tag-latest: | 217 | common-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) | ||
222 | common-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 | ||
227 | common-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 |
175 | promu: $(PROMU) | 232 | promu: $(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 |
183 | proto: | 242 | proto: |
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) | 246 | ifdef GOLANGCI_LINT |
188 | $(STATICCHECK): | 247 | $(GOLANGCI_LINT): |
189 | ifdef 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}; | ||
199 | else | ||
200 | GOOS= GOARCH= GO111MODULE=off $(GO) get -u honnef.co/go/tools/cmd/staticcheck | ||
201 | endif | 250 | endif |
202 | 251 | ||
203 | ifdef GOVENDOR | 252 | ifdef GOVENDOR |
@@ -212,7 +261,6 @@ precheck:: | |||
212 | define PRECHECK_COMMAND_template = | 261 | define PRECHECK_COMMAND_template = |
213 | precheck:: $(1)_precheck | 262 | precheck:: $(1)_precheck |
214 | 263 | ||
215 | |||
216 | PRECHECK_COMMAND_$(1) ?= $(1) $$(strip $$(PRECHECK_OPTIONS_$(1))) | 264 | PRECHECK_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. | ||
31 | type 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. | ||
37 | func 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. | ||
49 | func (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. |
28 | func parsePseudoFloat(str string) (float64, error) { | 74 | func 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. |
45 | func (fs FS) NewBuddyInfo() ([]BuddyInfo, error) { | 45 | func (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/ |
2 | Directory: fixtures | 2 | Directory: fixtures |
3 | Mode: 775 | ||
4 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
5 | Directory: fixtures/proc | ||
3 | Mode: 755 | 6 | Mode: 755 |
4 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 7 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
5 | Directory: fixtures/26231 | 8 | Directory: fixtures/proc/26231 |
6 | Mode: 755 | 9 | Mode: 755 |
7 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 10 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
8 | Path: fixtures/26231/cmdline | 11 | Path: fixtures/proc/26231/cmdline |
9 | Lines: 1 | 12 | Lines: 1 |
10 | vimNULLBYTEtest.goNULLBYTE+10NULLBYTEEOF | 13 | vimNULLBYTEtest.goNULLBYTE+10NULLBYTEEOF |
11 | Mode: 644 | 14 | Mode: 644 |
12 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 15 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
13 | Path: fixtures/26231/comm | 16 | Path: fixtures/proc/26231/comm |
14 | Lines: 1 | 17 | Lines: 1 |
15 | vim | 18 | vim |
16 | Mode: 644 | 19 | Mode: 644 |
17 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 20 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
18 | Path: fixtures/26231/cwd | 21 | Path: fixtures/proc/26231/cwd |
19 | SymlinkTo: /usr/bin | 22 | SymlinkTo: /usr/bin |
20 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 23 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
21 | Path: fixtures/26231/exe | 24 | Path: fixtures/proc/26231/exe |
22 | SymlinkTo: /usr/bin/vim | 25 | SymlinkTo: /usr/bin/vim |
23 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 26 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
24 | Directory: fixtures/26231/fd | 27 | Directory: fixtures/proc/26231/fd |
25 | Mode: 755 | 28 | Mode: 755 |
26 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 29 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
27 | Path: fixtures/26231/fd/0 | 30 | Path: fixtures/proc/26231/fd/0 |
28 | SymlinkTo: ../../symlinktargets/abc | 31 | SymlinkTo: ../../symlinktargets/abc |
29 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 32 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
30 | Path: fixtures/26231/fd/1 | 33 | Path: fixtures/proc/26231/fd/1 |
31 | SymlinkTo: ../../symlinktargets/def | 34 | SymlinkTo: ../../symlinktargets/def |
32 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 35 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
33 | Path: fixtures/26231/fd/10 | 36 | Path: fixtures/proc/26231/fd/10 |
34 | SymlinkTo: ../../symlinktargets/xyz | 37 | SymlinkTo: ../../symlinktargets/xyz |
35 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 38 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
36 | Path: fixtures/26231/fd/2 | 39 | Path: fixtures/proc/26231/fd/2 |
37 | SymlinkTo: ../../symlinktargets/ghi | 40 | SymlinkTo: ../../symlinktargets/ghi |
38 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 41 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
39 | Path: fixtures/26231/fd/3 | 42 | Path: fixtures/proc/26231/fd/3 |
40 | SymlinkTo: ../../symlinktargets/uvw | 43 | SymlinkTo: ../../symlinktargets/uvw |
41 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 44 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
42 | Path: fixtures/26231/io | 45 | Path: fixtures/proc/26231/io |
43 | Lines: 7 | 46 | Lines: 7 |
44 | rchar: 750339 | 47 | rchar: 750339 |
45 | wchar: 818609 | 48 | wchar: 818609 |
@@ -50,7 +53,7 @@ write_bytes: 2048 | |||
50 | cancelled_write_bytes: -1024 | 53 | cancelled_write_bytes: -1024 |
51 | Mode: 644 | 54 | Mode: 644 |
52 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 55 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
53 | Path: fixtures/26231/limits | 56 | Path: fixtures/proc/26231/limits |
54 | Lines: 17 | 57 | Lines: 17 |
55 | Limit Soft Limit Hard Limit Units | 58 | Limit Soft Limit Hard Limit Units |
56 | Max cpu time unlimited unlimited seconds | 59 | Max cpu time unlimited unlimited seconds |
@@ -71,7 +74,7 @@ Max realtime priority 0 0 | |||
71 | Max realtime timeout unlimited unlimited us | 74 | Max realtime timeout unlimited unlimited us |
72 | Mode: 644 | 75 | Mode: 644 |
73 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 76 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
74 | Path: fixtures/26231/mountstats | 77 | Path: fixtures/proc/26231/mountstats |
75 | Lines: 19 | 78 | Lines: 19 |
76 | device rootfs mounted on / with fstype rootfs | 79 | device rootfs mounted on / with fstype rootfs |
77 | device sysfs mounted on /sys with fstype sysfs | 80 | device 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 | ||
95 | Mode: 644 | 98 | Mode: 644 |
96 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 99 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
97 | Directory: fixtures/26231/net | 100 | Directory: fixtures/proc/26231/net |
98 | Mode: 755 | 101 | Mode: 755 |
99 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 102 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
100 | Path: fixtures/26231/net/dev | 103 | Path: fixtures/proc/26231/net/dev |
101 | Lines: 4 | 104 | Lines: 4 |
102 | Inter-| Receive | Transmit | 105 | Inter-| 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 |
106 | Mode: 644 | 109 | Mode: 644 |
107 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 110 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
108 | Directory: fixtures/26231/ns | 111 | Directory: fixtures/proc/26231/ns |
109 | Mode: 755 | 112 | Mode: 755 |
110 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 113 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
111 | Path: fixtures/26231/ns/mnt | 114 | Path: fixtures/proc/26231/ns/mnt |
112 | SymlinkTo: mnt:[4026531840] | 115 | SymlinkTo: mnt:[4026531840] |
113 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 116 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
114 | Path: fixtures/26231/ns/net | 117 | Path: fixtures/proc/26231/ns/net |
115 | SymlinkTo: net:[4026531993] | 118 | SymlinkTo: net:[4026531993] |
116 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 119 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
117 | Path: fixtures/26231/root | 120 | Path: fixtures/proc/26231/root |
118 | SymlinkTo: / | 121 | SymlinkTo: / |
119 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 122 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
120 | Path: fixtures/26231/stat | 123 | Path: fixtures/proc/26231/stat |
121 | Lines: 1 | 124 | Lines: 1 |
122 | 26231 (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 | 125 | 26231 (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 |
123 | Mode: 644 | 126 | Mode: 644 |
124 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 127 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
125 | Directory: fixtures/26232 | 128 | Directory: fixtures/proc/26232 |
126 | Mode: 755 | 129 | Mode: 755 |
127 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 130 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
128 | Path: fixtures/26232/cmdline | 131 | Path: fixtures/proc/26232/cmdline |
129 | Lines: 0 | 132 | Lines: 0 |
130 | Mode: 644 | 133 | Mode: 644 |
131 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 134 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
132 | Path: fixtures/26232/comm | 135 | Path: fixtures/proc/26232/comm |
133 | Lines: 1 | 136 | Lines: 1 |
134 | ata_sff | 137 | ata_sff |
135 | Mode: 644 | 138 | Mode: 644 |
136 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 139 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
137 | Path: fixtures/26232/cwd | 140 | Path: fixtures/proc/26232/cwd |
138 | SymlinkTo: /does/not/exist | 141 | SymlinkTo: /does/not/exist |
139 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 142 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
140 | Directory: fixtures/26232/fd | 143 | Directory: fixtures/proc/26232/fd |
141 | Mode: 755 | 144 | Mode: 755 |
142 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 145 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
143 | Path: fixtures/26232/fd/0 | 146 | Path: fixtures/proc/26232/fd/0 |
144 | SymlinkTo: ../../symlinktargets/abc | 147 | SymlinkTo: ../../symlinktargets/abc |
145 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 148 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
146 | Path: fixtures/26232/fd/1 | 149 | Path: fixtures/proc/26232/fd/1 |
147 | SymlinkTo: ../../symlinktargets/def | 150 | SymlinkTo: ../../symlinktargets/def |
148 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 151 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
149 | Path: fixtures/26232/fd/2 | 152 | Path: fixtures/proc/26232/fd/2 |
150 | SymlinkTo: ../../symlinktargets/ghi | 153 | SymlinkTo: ../../symlinktargets/ghi |
151 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 154 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
152 | Path: fixtures/26232/fd/3 | 155 | Path: fixtures/proc/26232/fd/3 |
153 | SymlinkTo: ../../symlinktargets/uvw | 156 | SymlinkTo: ../../symlinktargets/uvw |
154 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 157 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
155 | Path: fixtures/26232/fd/4 | 158 | Path: fixtures/proc/26232/fd/4 |
156 | SymlinkTo: ../../symlinktargets/xyz | 159 | SymlinkTo: ../../symlinktargets/xyz |
157 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 160 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
158 | Path: fixtures/26232/limits | 161 | Path: fixtures/proc/26232/limits |
159 | Lines: 17 | 162 | Lines: 17 |
160 | Limit Soft Limit Hard Limit Units | 163 | Limit Soft Limit Hard Limit Units |
161 | Max cpu time unlimited unlimited seconds | 164 | Max cpu time unlimited unlimited seconds |
@@ -176,71 +179,98 @@ Max realtime priority 0 0 | |||
176 | Max realtime timeout unlimited unlimited us | 179 | Max realtime timeout unlimited unlimited us |
177 | Mode: 644 | 180 | Mode: 644 |
178 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 181 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
179 | Path: fixtures/26232/root | 182 | Path: fixtures/proc/26232/root |
180 | SymlinkTo: /does/not/exist | 183 | SymlinkTo: /does/not/exist |
181 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 184 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
182 | Path: fixtures/26232/stat | 185 | Path: fixtures/proc/26232/stat |
183 | Lines: 1 | 186 | Lines: 1 |
184 | 33 (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 | 187 | 33 (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 |
185 | Mode: 644 | 188 | Mode: 644 |
186 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 189 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
187 | Directory: fixtures/26233 | 190 | Directory: fixtures/proc/26233 |
188 | Mode: 755 | 191 | Mode: 755 |
189 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 192 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
190 | Path: fixtures/26233/cmdline | 193 | Path: fixtures/proc/26233/cmdline |
191 | Lines: 1 | 194 | Lines: 1 |
192 | com.github.uiautomatorNULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTEEOF | 195 | com.github.uiautomatorNULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTENULLBYTEEOF |
193 | Mode: 644 | 196 | Mode: 644 |
194 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 197 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
195 | Directory: fixtures/584 | 198 | Directory: fixtures/proc/584 |
196 | Mode: 755 | 199 | Mode: 755 |
197 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 200 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
198 | Path: fixtures/584/stat | 201 | Path: fixtures/proc/584/stat |
199 | Lines: 2 | 202 | Lines: 2 |
200 | 1020 ((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 | 203 | 1020 ((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 |
202 | Mode: 644 | 205 | Mode: 644 |
203 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 206 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
204 | Directory: fixtures/buddyinfo | 207 | Path: fixtures/proc/buddyinfo |
205 | Mode: 755 | ||
206 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
207 | Directory: fixtures/buddyinfo/short | ||
208 | Mode: 755 | ||
209 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
210 | Path: fixtures/buddyinfo/short/buddyinfo | ||
211 | Lines: 3 | ||
212 | Node 0, zone | ||
213 | Node 0, zone | ||
214 | Node 0, zone | ||
215 | Mode: 644 | ||
216 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
217 | Directory: fixtures/buddyinfo/sizemismatch | ||
218 | Mode: 755 | ||
219 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
220 | Path: fixtures/buddyinfo/sizemismatch/buddyinfo | ||
221 | Lines: 3 | ||
222 | Node 0, zone DMA 1 0 1 0 2 1 1 0 1 1 3 | ||
223 | Node 0, zone DMA32 759 572 791 475 194 45 12 0 0 0 0 0 | ||
224 | Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 | ||
225 | Mode: 644 | ||
226 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
227 | Directory: fixtures/buddyinfo/valid | ||
228 | Mode: 755 | ||
229 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
230 | Path: fixtures/buddyinfo/valid/buddyinfo | ||
231 | Lines: 3 | 208 | Lines: 3 |
232 | Node 0, zone DMA 1 0 1 0 2 1 1 0 1 1 3 | 209 | Node 0, zone DMA 1 0 1 0 2 1 1 0 1 1 3 |
233 | Node 0, zone DMA32 759 572 791 475 194 45 12 0 0 0 0 | 210 | Node 0, zone DMA32 759 572 791 475 194 45 12 0 0 0 0 |
234 | Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 0 | 211 | Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 0 |
235 | Mode: 644 | 212 | Mode: 644 |
236 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 213 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
237 | Directory: fixtures/fs | 214 | Path: fixtures/proc/diskstats |
215 | Lines: 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 | ||
265 | Mode: 664 | ||
266 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
267 | Directory: fixtures/proc/fs | ||
238 | Mode: 755 | 268 | Mode: 755 |
239 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 269 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
240 | Directory: fixtures/fs/xfs | 270 | Directory: fixtures/proc/fs/xfs |
241 | Mode: 755 | 271 | Mode: 755 |
242 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 272 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
243 | Path: fixtures/fs/xfs/stat | 273 | Path: fixtures/proc/fs/xfs/stat |
244 | Lines: 23 | 274 | Lines: 23 |
245 | extent_alloc 92447 97589 92448 93751 | 275 | extent_alloc 92447 97589 92448 93751 |
246 | abt 0 0 0 0 | 276 | abt 0 0 0 0 |
@@ -267,7 +297,7 @@ xpc 399724544 92823103 86219234 | |||
267 | debug 0 | 297 | debug 0 |
268 | Mode: 644 | 298 | Mode: 644 |
269 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 299 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
270 | Path: fixtures/mdstat | 300 | Path: fixtures/proc/mdstat |
271 | Lines: 26 | 301 | Lines: 26 |
272 | Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] | 302 | Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] |
273 | md3 : active raid6 sda1[8] sdh1[7] sdg1[6] sdf1[5] sde1[11] sdd1[3] sdc1[10] sdb1[9] | 303 | md3 : 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] | |||
297 | unused devices: <none> | 327 | unused devices: <none> |
298 | Mode: 644 | 328 | Mode: 644 |
299 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 329 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
300 | Directory: fixtures/net | 330 | Directory: fixtures/proc/net |
301 | Mode: 755 | 331 | Mode: 755 |
302 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 332 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
303 | Path: fixtures/net/dev | 333 | Path: fixtures/proc/net/dev |
304 | Lines: 6 | 334 | Lines: 6 |
305 | Inter-| Receive | Transmit | 335 | Inter-| 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 |
311 | Mode: 644 | 341 | Mode: 644 |
312 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 342 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
313 | Path: fixtures/net/ip_vs | 343 | Path: fixtures/proc/net/ip_vs |
314 | Lines: 21 | 344 | Lines: 21 |
315 | IP Virtual Server version 1.2.1 (size=4096) | 345 | IP Virtual Server version 1.2.1 (size=4096) |
316 | Prot LocalAddress:Port Scheduler Flags | 346 | Prot 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 |
336 | Mode: 644 | 366 | Mode: 644 |
337 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 367 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
338 | Path: fixtures/net/ip_vs_stats | 368 | Path: fixtures/proc/net/ip_vs_stats |
339 | Lines: 6 | 369 | Lines: 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 |
346 | Mode: 644 | 376 | Mode: 644 |
347 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 377 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
348 | Directory: fixtures/net/rpc | 378 | Directory: fixtures/proc/net/rpc |
349 | Mode: 755 | 379 | Mode: 755 |
350 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 380 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
351 | Path: fixtures/net/rpc/nfs | 381 | Path: fixtures/proc/net/rpc/nfs |
352 | Lines: 5 | 382 | Lines: 5 |
353 | net 18628 0 18628 6 | 383 | net 18628 0 18628 6 |
354 | rpc 4329785 0 4338291 | 384 | rpc 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 | |||
357 | proc4 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 | 387 | proc4 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 |
358 | Mode: 644 | 388 | Mode: 644 |
359 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 389 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
360 | Path: fixtures/net/rpc/nfsd | 390 | Path: fixtures/proc/net/rpc/nfsd |
361 | Lines: 11 | 391 | Lines: 11 |
362 | rc 0 6 18622 | 392 | rc 0 6 18622 |
363 | fh 0 0 0 0 0 | 393 | fh 0 0 0 0 0 |
@@ -372,7 +402,7 @@ proc4 2 2 10853 | |||
372 | proc4ops 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 | 402 | proc4ops 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 |
373 | Mode: 644 | 403 | Mode: 644 |
374 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 404 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
375 | Path: fixtures/net/xfrm_stat | 405 | Path: fixtures/proc/net/xfrm_stat |
376 | Lines: 28 | 406 | Lines: 28 |
377 | XfrmInError 1 | 407 | XfrmInError 1 |
378 | XfrmInBufferError 2 | 408 | XfrmInBufferError 2 |
@@ -404,30 +434,30 @@ XfrmOutStateInvalid 28765 | |||
404 | XfrmAcquireError 24532 | 434 | XfrmAcquireError 24532 |
405 | Mode: 644 | 435 | Mode: 644 |
406 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 436 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
407 | Directory: fixtures/pressure | 437 | Directory: fixtures/proc/pressure |
408 | Mode: 755 | 438 | Mode: 755 |
409 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 439 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
410 | Path: fixtures/pressure/cpu | 440 | Path: fixtures/proc/pressure/cpu |
411 | Lines: 1 | 441 | Lines: 1 |
412 | some avg10=0.10 avg60=2.00 avg300=3.85 total=15 | 442 | some avg10=0.10 avg60=2.00 avg300=3.85 total=15 |
413 | Mode: 644 | 443 | Mode: 644 |
414 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 444 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
415 | Path: fixtures/pressure/io | 445 | Path: fixtures/proc/pressure/io |
416 | Lines: 2 | 446 | Lines: 2 |
417 | some avg10=0.10 avg60=2.00 avg300=3.85 total=15 | 447 | some avg10=0.10 avg60=2.00 avg300=3.85 total=15 |
418 | full avg10=0.20 avg60=3.00 avg300=4.95 total=25 | 448 | full avg10=0.20 avg60=3.00 avg300=4.95 total=25 |
419 | Mode: 644 | 449 | Mode: 644 |
420 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 450 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
421 | Path: fixtures/pressure/memory | 451 | Path: fixtures/proc/pressure/memory |
422 | Lines: 2 | 452 | Lines: 2 |
423 | some avg10=0.10 avg60=2.00 avg300=3.85 total=15 | 453 | some avg10=0.10 avg60=2.00 avg300=3.85 total=15 |
424 | full avg10=0.20 avg60=3.00 avg300=4.95 total=25 | 454 | full avg10=0.20 avg60=3.00 avg300=4.95 total=25 |
425 | Mode: 644 | 455 | Mode: 644 |
426 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 456 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
427 | Path: fixtures/self | 457 | Path: fixtures/proc/self |
428 | SymlinkTo: 26231 | 458 | SymlinkTo: 26231 |
429 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 459 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
430 | Path: fixtures/stat | 460 | Path: fixtures/proc/stat |
431 | Lines: 16 | 461 | Lines: 16 |
432 | cpu 301854 612 111922 8979004 3552 2 3944 0 0 0 | 462 | cpu 301854 612 111922 8979004 3552 2 3944 0 0 0 |
433 | cpu0 44490 19 21045 1087069 220 1 3410 0 0 0 | 463 | cpu0 44490 19 21045 1087069 220 1 3410 0 0 0 |
@@ -447,36 +477,1238 @@ procs_blocked 1 | |||
447 | softirq 5057579 250191 1481983 1647 211099 186066 0 1783454 622196 12499 508444 | 477 | softirq 5057579 250191 1481983 1647 211099 186066 0 1783454 622196 12499 508444 |
448 | Mode: 644 | 478 | Mode: 644 |
449 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 479 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
450 | Directory: fixtures/symlinktargets | 480 | Directory: fixtures/proc/symlinktargets |
451 | Mode: 755 | 481 | Mode: 755 |
452 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 482 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
453 | Path: fixtures/symlinktargets/README | 483 | Path: fixtures/proc/symlinktargets/README |
454 | Lines: 2 | 484 | Lines: 2 |
455 | This directory contains some empty files that are the symlinks the files in the "fd" directory point to. | 485 | This directory contains some empty files that are the symlinks the files in the "fd" directory point to. |
456 | They are otherwise ignored by the tests | 486 | They are otherwise ignored by the tests |
457 | Mode: 644 | 487 | Mode: 644 |
458 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 488 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
459 | Path: fixtures/symlinktargets/abc | 489 | Path: fixtures/proc/symlinktargets/abc |
460 | Lines: 0 | 490 | Lines: 0 |
461 | Mode: 644 | 491 | Mode: 644 |
462 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 492 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
463 | Path: fixtures/symlinktargets/def | 493 | Path: fixtures/proc/symlinktargets/def |
464 | Lines: 0 | 494 | Lines: 0 |
465 | Mode: 644 | 495 | Mode: 644 |
466 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 496 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
467 | Path: fixtures/symlinktargets/ghi | 497 | Path: fixtures/proc/symlinktargets/ghi |
468 | Lines: 0 | 498 | Lines: 0 |
469 | Mode: 644 | 499 | Mode: 644 |
470 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 500 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
471 | Path: fixtures/symlinktargets/uvw | 501 | Path: fixtures/proc/symlinktargets/uvw |
472 | Lines: 0 | 502 | Lines: 0 |
473 | Mode: 644 | 503 | Mode: 644 |
474 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 504 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
475 | Path: fixtures/symlinktargets/xyz | 505 | Path: fixtures/proc/symlinktargets/xyz |
476 | Lines: 0 | 506 | Lines: 0 |
477 | Mode: 644 | 507 | Mode: 644 |
478 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 508 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
479 | Path: fixtures/.unpacked | 509 | Directory: fixtures/sys |
510 | Mode: 755 | ||
511 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
512 | Directory: fixtures/sys/block | ||
513 | Mode: 775 | ||
514 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
515 | Directory: fixtures/sys/block/dm-0 | ||
516 | Mode: 775 | ||
517 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
518 | Path: fixtures/sys/block/dm-0/stat | ||
519 | Lines: 1 | ||
520 | 6447303 0 710266738 1529043 953216 0 31201176 4557464 0 796160 6088971 | ||
521 | Mode: 664 | ||
522 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
523 | Directory: fixtures/sys/block/sda | ||
524 | Mode: 775 | ||
525 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
526 | Path: fixtures/sys/block/sda/stat | ||
527 | Lines: 1 | ||
528 | 9652963 396792 759304206 412943 8422549 6731723 286915323 13947418 0 5658367 19174573 1 2 3 12 | ||
529 | Mode: 664 | ||
530 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
531 | Directory: fixtures/sys/class | ||
532 | Mode: 775 | ||
533 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
534 | Directory: fixtures/sys/class/net | ||
535 | Mode: 775 | ||
536 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
537 | Directory: fixtures/sys/class/net/eth0 | ||
538 | Mode: 755 | ||
539 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
540 | Path: fixtures/sys/class/net/eth0/addr_assign_type | ||
541 | Lines: 1 | ||
542 | 3 | ||
543 | Mode: 644 | ||
544 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
545 | Path: fixtures/sys/class/net/eth0/addr_len | ||
546 | Lines: 1 | ||
547 | 6 | ||
548 | Mode: 644 | ||
549 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
550 | Path: fixtures/sys/class/net/eth0/address | ||
551 | Lines: 1 | ||
552 | 01:01:01:01:01:01 | ||
553 | Mode: 644 | ||
554 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
555 | Path: fixtures/sys/class/net/eth0/broadcast | ||
556 | Lines: 1 | ||
557 | ff:ff:ff:ff:ff:ff | ||
558 | Mode: 644 | ||
559 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
560 | Path: fixtures/sys/class/net/eth0/carrier | ||
561 | Lines: 1 | ||
562 | 1 | ||
563 | Mode: 644 | ||
564 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
565 | Path: fixtures/sys/class/net/eth0/carrier_changes | ||
566 | Lines: 1 | ||
567 | 2 | ||
568 | Mode: 644 | ||
569 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
570 | Path: fixtures/sys/class/net/eth0/carrier_down_count | ||
571 | Lines: 1 | ||
572 | 1 | ||
573 | Mode: 644 | ||
574 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
575 | Path: fixtures/sys/class/net/eth0/carrier_up_count | ||
576 | Lines: 1 | ||
577 | 1 | ||
578 | Mode: 644 | ||
579 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
580 | Path: fixtures/sys/class/net/eth0/dev_id | ||
581 | Lines: 1 | ||
582 | 0x20 | ||
583 | Mode: 644 | ||
584 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
585 | Path: fixtures/sys/class/net/eth0/dormant | ||
586 | Lines: 1 | ||
587 | 1 | ||
588 | Mode: 644 | ||
589 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
590 | Path: fixtures/sys/class/net/eth0/duplex | ||
591 | Lines: 1 | ||
592 | full | ||
593 | Mode: 644 | ||
594 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
595 | Path: fixtures/sys/class/net/eth0/flags | ||
596 | Lines: 1 | ||
597 | 0x1303 | ||
598 | Mode: 644 | ||
599 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
600 | Path: fixtures/sys/class/net/eth0/ifalias | ||
480 | Lines: 0 | 601 | Lines: 0 |
481 | Mode: 644 | 602 | Mode: 644 |
482 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 603 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
604 | Path: fixtures/sys/class/net/eth0/ifindex | ||
605 | Lines: 1 | ||
606 | 2 | ||
607 | Mode: 644 | ||
608 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
609 | Path: fixtures/sys/class/net/eth0/iflink | ||
610 | Lines: 1 | ||
611 | 2 | ||
612 | Mode: 644 | ||
613 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
614 | Path: fixtures/sys/class/net/eth0/link_mode | ||
615 | Lines: 1 | ||
616 | 1 | ||
617 | Mode: 644 | ||
618 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
619 | Path: fixtures/sys/class/net/eth0/mtu | ||
620 | Lines: 1 | ||
621 | 1500 | ||
622 | Mode: 644 | ||
623 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
624 | Path: fixtures/sys/class/net/eth0/name_assign_type | ||
625 | Lines: 1 | ||
626 | 2 | ||
627 | Mode: 644 | ||
628 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
629 | Path: fixtures/sys/class/net/eth0/netdev_group | ||
630 | Lines: 1 | ||
631 | 0 | ||
632 | Mode: 644 | ||
633 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
634 | Path: fixtures/sys/class/net/eth0/operstate | ||
635 | Lines: 1 | ||
636 | up | ||
637 | Mode: 644 | ||
638 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
639 | Path: fixtures/sys/class/net/eth0/phys_port_id | ||
640 | Lines: 0 | ||
641 | Mode: 644 | ||
642 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
643 | Path: fixtures/sys/class/net/eth0/phys_port_name | ||
644 | Lines: 0 | ||
645 | Mode: 644 | ||
646 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
647 | Path: fixtures/sys/class/net/eth0/phys_switch_id | ||
648 | Lines: 0 | ||
649 | Mode: 644 | ||
650 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
651 | Path: fixtures/sys/class/net/eth0/speed | ||
652 | Lines: 1 | ||
653 | 1000 | ||
654 | Mode: 644 | ||
655 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
656 | Path: fixtures/sys/class/net/eth0/tx_queue_len | ||
657 | Lines: 1 | ||
658 | 1000 | ||
659 | Mode: 644 | ||
660 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
661 | Path: fixtures/sys/class/net/eth0/type | ||
662 | Lines: 1 | ||
663 | 1 | ||
664 | Mode: 644 | ||
665 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
666 | Directory: fixtures/sys/class/power_supply | ||
667 | Mode: 755 | ||
668 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
669 | Directory: fixtures/sys/class/power_supply/AC | ||
670 | Mode: 755 | ||
671 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
672 | Path: fixtures/sys/class/power_supply/AC/online | ||
673 | Lines: 1 | ||
674 | 0 | ||
675 | Mode: 444 | ||
676 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
677 | Path: fixtures/sys/class/power_supply/AC/type | ||
678 | Lines: 1 | ||
679 | Mains | ||
680 | Mode: 444 | ||
681 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
682 | Path: fixtures/sys/class/power_supply/AC/uevent | ||
683 | Lines: 2 | ||
684 | POWER_SUPPLY_NAME=AC | ||
685 | POWER_SUPPLY_ONLINE=0 | ||
686 | Mode: 644 | ||
687 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
688 | Directory: fixtures/sys/class/power_supply/BAT0 | ||
689 | Mode: 755 | ||
690 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
691 | Path: fixtures/sys/class/power_supply/BAT0/alarm | ||
692 | Lines: 1 | ||
693 | 2503000 | ||
694 | Mode: 644 | ||
695 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
696 | Path: fixtures/sys/class/power_supply/BAT0/capacity | ||
697 | Lines: 1 | ||
698 | 98 | ||
699 | Mode: 444 | ||
700 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
701 | Path: fixtures/sys/class/power_supply/BAT0/capacity_level | ||
702 | Lines: 1 | ||
703 | Normal | ||
704 | Mode: 444 | ||
705 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
706 | Path: fixtures/sys/class/power_supply/BAT0/charge_start_threshold | ||
707 | Lines: 1 | ||
708 | 95 | ||
709 | Mode: 644 | ||
710 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
711 | Path: fixtures/sys/class/power_supply/BAT0/charge_stop_threshold | ||
712 | Lines: 1 | ||
713 | 100 | ||
714 | Mode: 644 | ||
715 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
716 | Path: fixtures/sys/class/power_supply/BAT0/cycle_count | ||
717 | Lines: 1 | ||
718 | 0 | ||
719 | Mode: 444 | ||
720 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
721 | Path: fixtures/sys/class/power_supply/BAT0/energy_full | ||
722 | Lines: 1 | ||
723 | 50060000 | ||
724 | Mode: 444 | ||
725 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
726 | Path: fixtures/sys/class/power_supply/BAT0/energy_full_design | ||
727 | Lines: 1 | ||
728 | 47520000 | ||
729 | Mode: 444 | ||
730 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
731 | Path: fixtures/sys/class/power_supply/BAT0/energy_now | ||
732 | Lines: 1 | ||
733 | 49450000 | ||
734 | Mode: 444 | ||
735 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
736 | Path: fixtures/sys/class/power_supply/BAT0/manufacturer | ||
737 | Lines: 1 | ||
738 | LGC | ||
739 | Mode: 444 | ||
740 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
741 | Path: fixtures/sys/class/power_supply/BAT0/model_name | ||
742 | Lines: 1 | ||
743 | LNV-45N1 | ||
744 | Mode: 444 | ||
745 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
746 | Path: fixtures/sys/class/power_supply/BAT0/power_now | ||
747 | Lines: 1 | ||
748 | 4830000 | ||
749 | Mode: 444 | ||
750 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
751 | Path: fixtures/sys/class/power_supply/BAT0/present | ||
752 | Lines: 1 | ||
753 | 1 | ||
754 | Mode: 444 | ||
755 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
756 | Path: fixtures/sys/class/power_supply/BAT0/serial_number | ||
757 | Lines: 1 | ||
758 | 38109 | ||
759 | Mode: 444 | ||
760 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
761 | Path: fixtures/sys/class/power_supply/BAT0/status | ||
762 | Lines: 1 | ||
763 | Discharging | ||
764 | Mode: 444 | ||
765 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
766 | Path: fixtures/sys/class/power_supply/BAT0/technology | ||
767 | Lines: 1 | ||
768 | Li-ion | ||
769 | Mode: 444 | ||
770 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
771 | Path: fixtures/sys/class/power_supply/BAT0/type | ||
772 | Lines: 1 | ||
773 | Battery | ||
774 | Mode: 444 | ||
775 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
776 | Path: fixtures/sys/class/power_supply/BAT0/uevent | ||
777 | Lines: 16 | ||
778 | POWER_SUPPLY_NAME=BAT0 | ||
779 | POWER_SUPPLY_STATUS=Discharging | ||
780 | POWER_SUPPLY_PRESENT=1 | ||
781 | POWER_SUPPLY_TECHNOLOGY=Li-ion | ||
782 | POWER_SUPPLY_CYCLE_COUNT=0 | ||
783 | POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000 | ||
784 | POWER_SUPPLY_VOLTAGE_NOW=12229000 | ||
785 | POWER_SUPPLY_POWER_NOW=4830000 | ||
786 | POWER_SUPPLY_ENERGY_FULL_DESIGN=47520000 | ||
787 | POWER_SUPPLY_ENERGY_FULL=50060000 | ||
788 | POWER_SUPPLY_ENERGY_NOW=49450000 | ||
789 | POWER_SUPPLY_CAPACITY=98 | ||
790 | POWER_SUPPLY_CAPACITY_LEVEL=Normal | ||
791 | POWER_SUPPLY_MODEL_NAME=LNV-45N1 | ||
792 | POWER_SUPPLY_MANUFACTURER=LGC | ||
793 | POWER_SUPPLY_SERIAL_NUMBER=38109 | ||
794 | Mode: 644 | ||
795 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
796 | Path: fixtures/sys/class/power_supply/BAT0/voltage_min_design | ||
797 | Lines: 1 | ||
798 | 10800000 | ||
799 | Mode: 444 | ||
800 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
801 | Path: fixtures/sys/class/power_supply/BAT0/voltage_now | ||
802 | Lines: 1 | ||
803 | 12229000 | ||
804 | Mode: 444 | ||
805 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
806 | Directory: fixtures/sys/class/thermal | ||
807 | Mode: 775 | ||
808 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
809 | Directory: fixtures/sys/class/thermal/thermal_zone0 | ||
810 | Mode: 775 | ||
811 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
812 | Path: fixtures/sys/class/thermal/thermal_zone0/policy | ||
813 | Lines: 1 | ||
814 | step_wise | ||
815 | Mode: 664 | ||
816 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
817 | Path: fixtures/sys/class/thermal/thermal_zone0/temp | ||
818 | Lines: 1 | ||
819 | 49925 | ||
820 | Mode: 664 | ||
821 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
822 | Path: fixtures/sys/class/thermal/thermal_zone0/type | ||
823 | Lines: 1 | ||
824 | bcm2835_thermal | ||
825 | Mode: 664 | ||
826 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
827 | Directory: fixtures/sys/class/thermal/thermal_zone1 | ||
828 | Mode: 755 | ||
829 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
830 | Path: fixtures/sys/class/thermal/thermal_zone1/mode | ||
831 | Lines: 1 | ||
832 | enabled | ||
833 | Mode: 664 | ||
834 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
835 | Path: fixtures/sys/class/thermal/thermal_zone1/passive | ||
836 | Lines: 1 | ||
837 | 0 | ||
838 | Mode: 664 | ||
839 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
840 | Path: fixtures/sys/class/thermal/thermal_zone1/policy | ||
841 | Lines: 1 | ||
842 | step_wise | ||
843 | Mode: 664 | ||
844 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
845 | Path: fixtures/sys/class/thermal/thermal_zone1/temp | ||
846 | Lines: 1 | ||
847 | 44000 | ||
848 | Mode: 664 | ||
849 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
850 | Path: fixtures/sys/class/thermal/thermal_zone1/type | ||
851 | Lines: 1 | ||
852 | acpitz | ||
853 | Mode: 664 | ||
854 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
855 | Directory: fixtures/sys/devices | ||
856 | Mode: 755 | ||
857 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
858 | Directory: fixtures/sys/devices/pci0000:00 | ||
859 | Mode: 755 | ||
860 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
861 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0 | ||
862 | Mode: 755 | ||
863 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
864 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4 | ||
865 | Mode: 755 | ||
866 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
867 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3 | ||
868 | Mode: 755 | ||
869 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
870 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0 | ||
871 | Mode: 755 | ||
872 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
873 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0 | ||
874 | Mode: 755 | ||
875 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
876 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block | ||
877 | Mode: 755 | ||
878 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
879 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb | ||
880 | Mode: 755 | ||
881 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
882 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache | ||
883 | Mode: 755 | ||
884 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
885 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/dirty_data | ||
886 | Lines: 1 | ||
887 | 0 | ||
888 | Mode: 644 | ||
889 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
890 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day | ||
891 | Mode: 755 | ||
892 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
893 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/bypassed | ||
894 | Lines: 1 | ||
895 | 0 | ||
896 | Mode: 644 | ||
897 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
898 | Path: 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 | ||
899 | Lines: 1 | ||
900 | 0 | ||
901 | Mode: 644 | ||
902 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
903 | Path: 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 | ||
904 | Lines: 1 | ||
905 | 0 | ||
906 | Mode: 644 | ||
907 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
908 | Path: 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 | ||
909 | Lines: 1 | ||
910 | 100 | ||
911 | Mode: 644 | ||
912 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
913 | Path: 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 | ||
914 | Lines: 1 | ||
915 | 289 | ||
916 | Mode: 644 | ||
917 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
918 | Path: 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 | ||
919 | Lines: 1 | ||
920 | 0 | ||
921 | Mode: 644 | ||
922 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
923 | Path: 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 | ||
924 | Lines: 1 | ||
925 | 0 | ||
926 | Mode: 644 | ||
927 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
928 | Path: 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 | ||
929 | Lines: 1 | ||
930 | 0 | ||
931 | Mode: 644 | ||
932 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
933 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute | ||
934 | Mode: 755 | ||
935 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
936 | Path: 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 | ||
937 | Lines: 1 | ||
938 | 0 | ||
939 | Mode: 644 | ||
940 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
941 | Path: 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 | ||
942 | Lines: 1 | ||
943 | 0 | ||
944 | Mode: 644 | ||
945 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
946 | Path: 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 | ||
947 | Lines: 1 | ||
948 | 0 | ||
949 | Mode: 644 | ||
950 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
951 | Path: 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 | ||
952 | Lines: 1 | ||
953 | 0 | ||
954 | Mode: 644 | ||
955 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
956 | Path: 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 | ||
957 | Lines: 1 | ||
958 | 0 | ||
959 | Mode: 644 | ||
960 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
961 | Path: 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 | ||
962 | Lines: 1 | ||
963 | 0 | ||
964 | Mode: 644 | ||
965 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
966 | Path: 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 | ||
967 | Lines: 1 | ||
968 | 0 | ||
969 | Mode: 644 | ||
970 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
971 | Path: 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 | ||
972 | Lines: 1 | ||
973 | 0 | ||
974 | Mode: 644 | ||
975 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
976 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour | ||
977 | Mode: 755 | ||
978 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
979 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/bypassed | ||
980 | Lines: 1 | ||
981 | 0 | ||
982 | Mode: 644 | ||
983 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
984 | Path: 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 | ||
985 | Lines: 1 | ||
986 | 0 | ||
987 | Mode: 644 | ||
988 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
989 | Path: 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 | ||
990 | Lines: 1 | ||
991 | 0 | ||
992 | Mode: 644 | ||
993 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
994 | Path: 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 | ||
995 | Lines: 1 | ||
996 | 0 | ||
997 | Mode: 644 | ||
998 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
999 | Path: 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 | ||
1000 | Lines: 1 | ||
1001 | 0 | ||
1002 | Mode: 644 | ||
1003 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1004 | Path: 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 | ||
1005 | Lines: 1 | ||
1006 | 0 | ||
1007 | Mode: 644 | ||
1008 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1009 | Path: 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 | ||
1010 | Lines: 1 | ||
1011 | 0 | ||
1012 | Mode: 644 | ||
1013 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1014 | Path: 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 | ||
1015 | Lines: 1 | ||
1016 | 0 | ||
1017 | Mode: 644 | ||
1018 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1019 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total | ||
1020 | Mode: 755 | ||
1021 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1022 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/bypassed | ||
1023 | Lines: 1 | ||
1024 | 0 | ||
1025 | Mode: 644 | ||
1026 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1027 | Path: 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 | ||
1028 | Lines: 1 | ||
1029 | 0 | ||
1030 | Mode: 644 | ||
1031 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1032 | Path: 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 | ||
1033 | Lines: 1 | ||
1034 | 0 | ||
1035 | Mode: 644 | ||
1036 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1037 | Path: 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 | ||
1038 | Lines: 1 | ||
1039 | 100 | ||
1040 | Mode: 644 | ||
1041 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1042 | Path: 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 | ||
1043 | Lines: 1 | ||
1044 | 546 | ||
1045 | Mode: 644 | ||
1046 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1047 | Path: 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 | ||
1048 | Lines: 1 | ||
1049 | 0 | ||
1050 | Mode: 644 | ||
1051 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1052 | Path: 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 | ||
1053 | Lines: 1 | ||
1054 | 0 | ||
1055 | Mode: 644 | ||
1056 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1057 | Path: 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 | ||
1058 | Lines: 1 | ||
1059 | 0 | ||
1060 | Mode: 644 | ||
1061 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1062 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5 | ||
1063 | Mode: 755 | ||
1064 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1065 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4 | ||
1066 | Mode: 755 | ||
1067 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1068 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0 | ||
1069 | Mode: 755 | ||
1070 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1071 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0 | ||
1072 | Mode: 755 | ||
1073 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1074 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block | ||
1075 | Mode: 755 | ||
1076 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1077 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc | ||
1078 | Mode: 755 | ||
1079 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1080 | Directory: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache | ||
1081 | Mode: 755 | ||
1082 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1083 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/io_errors | ||
1084 | Lines: 1 | ||
1085 | 0 | ||
1086 | Mode: 644 | ||
1087 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1088 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/metadata_written | ||
1089 | Lines: 1 | ||
1090 | 512 | ||
1091 | Mode: 644 | ||
1092 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1093 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/priority_stats | ||
1094 | Lines: 5 | ||
1095 | Unused: 99% | ||
1096 | Metadata: 0% | ||
1097 | Average: 10473 | ||
1098 | Sectors per Q: 64 | ||
1099 | Quantiles: [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] | ||
1100 | Mode: 644 | ||
1101 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1102 | Path: fixtures/sys/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/written | ||
1103 | Lines: 1 | ||
1104 | 0 | ||
1105 | Mode: 644 | ||
1106 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1107 | Directory: fixtures/sys/devices/system | ||
1108 | Mode: 775 | ||
1109 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1110 | Directory: fixtures/sys/devices/system/cpu | ||
1111 | Mode: 775 | ||
1112 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1113 | Directory: fixtures/sys/devices/system/cpu/cpu0 | ||
1114 | Mode: 775 | ||
1115 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1116 | Path: fixtures/sys/devices/system/cpu/cpu0/cpufreq | ||
1117 | SymlinkTo: ../cpufreq/policy0 | ||
1118 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1119 | Directory: fixtures/sys/devices/system/cpu/cpu1 | ||
1120 | Mode: 775 | ||
1121 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1122 | Directory: fixtures/sys/devices/system/cpu/cpu1/cpufreq | ||
1123 | Mode: 775 | ||
1124 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1125 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq | ||
1126 | Lines: 1 | ||
1127 | 1200195 | ||
1128 | Mode: 400 | ||
1129 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1130 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq | ||
1131 | Lines: 1 | ||
1132 | 3300000 | ||
1133 | Mode: 664 | ||
1134 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1135 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq | ||
1136 | Lines: 1 | ||
1137 | 1200000 | ||
1138 | Mode: 664 | ||
1139 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1140 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency | ||
1141 | Lines: 1 | ||
1142 | 4294967295 | ||
1143 | Mode: 664 | ||
1144 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1145 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/related_cpus | ||
1146 | Lines: 1 | ||
1147 | 1 | ||
1148 | Mode: 664 | ||
1149 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1150 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors | ||
1151 | Lines: 1 | ||
1152 | performance powersave | ||
1153 | Mode: 664 | ||
1154 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1155 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver | ||
1156 | Lines: 1 | ||
1157 | intel_pstate | ||
1158 | Mode: 664 | ||
1159 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1160 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor | ||
1161 | Lines: 1 | ||
1162 | powersave | ||
1163 | Mode: 664 | ||
1164 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1165 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq | ||
1166 | Lines: 1 | ||
1167 | 3300000 | ||
1168 | Mode: 664 | ||
1169 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1170 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq | ||
1171 | Lines: 1 | ||
1172 | 1200000 | ||
1173 | Mode: 664 | ||
1174 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1175 | Path: fixtures/sys/devices/system/cpu/cpu1/cpufreq/scaling_setspeed | ||
1176 | Lines: 1 | ||
1177 | <unsupported> | ||
1178 | Mode: 664 | ||
1179 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1180 | Directory: fixtures/sys/devices/system/cpu/cpufreq | ||
1181 | Mode: 775 | ||
1182 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1183 | Directory: fixtures/sys/devices/system/cpu/cpufreq/policy0 | ||
1184 | Mode: 775 | ||
1185 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1186 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/affected_cpus | ||
1187 | Lines: 1 | ||
1188 | 0 | ||
1189 | Mode: 444 | ||
1190 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1191 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq | ||
1192 | Lines: 1 | ||
1193 | 2400000 | ||
1194 | Mode: 444 | ||
1195 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1196 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq | ||
1197 | Lines: 1 | ||
1198 | 800000 | ||
1199 | Mode: 444 | ||
1200 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1201 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency | ||
1202 | Lines: 1 | ||
1203 | 0 | ||
1204 | Mode: 444 | ||
1205 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1206 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/related_cpus | ||
1207 | Lines: 1 | ||
1208 | 0 | ||
1209 | Mode: 444 | ||
1210 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1211 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_available_governors | ||
1212 | Lines: 1 | ||
1213 | performance powersave | ||
1214 | Mode: 444 | ||
1215 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1216 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_cur_freq | ||
1217 | Lines: 1 | ||
1218 | 1219917 | ||
1219 | Mode: 444 | ||
1220 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1221 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_driver | ||
1222 | Lines: 1 | ||
1223 | intel_pstate | ||
1224 | Mode: 444 | ||
1225 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1226 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_governor | ||
1227 | Lines: 1 | ||
1228 | powersave | ||
1229 | Mode: 644 | ||
1230 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1231 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_max_freq | ||
1232 | Lines: 1 | ||
1233 | 2400000 | ||
1234 | Mode: 644 | ||
1235 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1236 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_min_freq | ||
1237 | Lines: 1 | ||
1238 | 800000 | ||
1239 | Mode: 644 | ||
1240 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1241 | Path: fixtures/sys/devices/system/cpu/cpufreq/policy0/scaling_setspeed | ||
1242 | Lines: 1 | ||
1243 | <unsupported> | ||
1244 | Mode: 644 | ||
1245 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1246 | Directory: fixtures/sys/devices/system/cpu/cpufreq/policy1 | ||
1247 | Mode: 755 | ||
1248 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1249 | Directory: fixtures/sys/fs | ||
1250 | Mode: 755 | ||
1251 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1252 | Directory: fixtures/sys/fs/bcache | ||
1253 | Mode: 755 | ||
1254 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1255 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74 | ||
1256 | Mode: 755 | ||
1257 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1258 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/average_key_size | ||
1259 | Lines: 1 | ||
1260 | 0 | ||
1261 | Mode: 644 | ||
1262 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1263 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0 | ||
1264 | Mode: 777 | ||
1265 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1266 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/dirty_data | ||
1267 | Lines: 1 | ||
1268 | 0 | ||
1269 | Mode: 644 | ||
1270 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1271 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day | ||
1272 | Mode: 755 | ||
1273 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1274 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/bypassed | ||
1275 | Lines: 1 | ||
1276 | 0 | ||
1277 | Mode: 644 | ||
1278 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1279 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_hits | ||
1280 | Lines: 1 | ||
1281 | 0 | ||
1282 | Mode: 644 | ||
1283 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1284 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_misses | ||
1285 | Lines: 1 | ||
1286 | 0 | ||
1287 | Mode: 644 | ||
1288 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1289 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hit_ratio | ||
1290 | Lines: 1 | ||
1291 | 100 | ||
1292 | Mode: 644 | ||
1293 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1294 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hits | ||
1295 | Lines: 1 | ||
1296 | 289 | ||
1297 | Mode: 644 | ||
1298 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1299 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_miss_collisions | ||
1300 | Lines: 1 | ||
1301 | 0 | ||
1302 | Mode: 644 | ||
1303 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1304 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_misses | ||
1305 | Lines: 1 | ||
1306 | 0 | ||
1307 | Mode: 644 | ||
1308 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1309 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_readaheads | ||
1310 | Lines: 1 | ||
1311 | 0 | ||
1312 | Mode: 644 | ||
1313 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1314 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute | ||
1315 | Mode: 755 | ||
1316 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1317 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/bypassed | ||
1318 | Lines: 1 | ||
1319 | 0 | ||
1320 | Mode: 644 | ||
1321 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1322 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_hits | ||
1323 | Lines: 1 | ||
1324 | 0 | ||
1325 | Mode: 644 | ||
1326 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1327 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_misses | ||
1328 | Lines: 1 | ||
1329 | 0 | ||
1330 | Mode: 644 | ||
1331 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1332 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hit_ratio | ||
1333 | Lines: 1 | ||
1334 | 0 | ||
1335 | Mode: 644 | ||
1336 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1337 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hits | ||
1338 | Lines: 1 | ||
1339 | 0 | ||
1340 | Mode: 644 | ||
1341 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1342 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_miss_collisions | ||
1343 | Lines: 1 | ||
1344 | 0 | ||
1345 | Mode: 644 | ||
1346 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1347 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_misses | ||
1348 | Lines: 1 | ||
1349 | 0 | ||
1350 | Mode: 644 | ||
1351 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1352 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_readaheads | ||
1353 | Lines: 1 | ||
1354 | 0 | ||
1355 | Mode: 644 | ||
1356 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1357 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour | ||
1358 | Mode: 755 | ||
1359 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1360 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/bypassed | ||
1361 | Lines: 1 | ||
1362 | 0 | ||
1363 | Mode: 644 | ||
1364 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1365 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_hits | ||
1366 | Lines: 1 | ||
1367 | 0 | ||
1368 | Mode: 644 | ||
1369 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1370 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_misses | ||
1371 | Lines: 1 | ||
1372 | 0 | ||
1373 | Mode: 644 | ||
1374 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1375 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hit_ratio | ||
1376 | Lines: 1 | ||
1377 | 0 | ||
1378 | Mode: 644 | ||
1379 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1380 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hits | ||
1381 | Lines: 1 | ||
1382 | 0 | ||
1383 | Mode: 644 | ||
1384 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1385 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_miss_collisions | ||
1386 | Lines: 1 | ||
1387 | 0 | ||
1388 | Mode: 644 | ||
1389 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1390 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_misses | ||
1391 | Lines: 1 | ||
1392 | 0 | ||
1393 | Mode: 644 | ||
1394 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1395 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_readaheads | ||
1396 | Lines: 1 | ||
1397 | 0 | ||
1398 | Mode: 644 | ||
1399 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1400 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total | ||
1401 | Mode: 755 | ||
1402 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1403 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/bypassed | ||
1404 | Lines: 1 | ||
1405 | 0 | ||
1406 | Mode: 644 | ||
1407 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1408 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_hits | ||
1409 | Lines: 1 | ||
1410 | 0 | ||
1411 | Mode: 644 | ||
1412 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1413 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_misses | ||
1414 | Lines: 1 | ||
1415 | 0 | ||
1416 | Mode: 644 | ||
1417 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1418 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hit_ratio | ||
1419 | Lines: 1 | ||
1420 | 100 | ||
1421 | Mode: 644 | ||
1422 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1423 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hits | ||
1424 | Lines: 1 | ||
1425 | 546 | ||
1426 | Mode: 644 | ||
1427 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1428 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_miss_collisions | ||
1429 | Lines: 1 | ||
1430 | 0 | ||
1431 | Mode: 644 | ||
1432 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1433 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_misses | ||
1434 | Lines: 1 | ||
1435 | 0 | ||
1436 | Mode: 644 | ||
1437 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1438 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_readaheads | ||
1439 | Lines: 1 | ||
1440 | 0 | ||
1441 | Mode: 644 | ||
1442 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1443 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/btree_cache_size | ||
1444 | Lines: 1 | ||
1445 | 0 | ||
1446 | Mode: 644 | ||
1447 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1448 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0 | ||
1449 | Mode: 777 | ||
1450 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1451 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/io_errors | ||
1452 | Lines: 1 | ||
1453 | 0 | ||
1454 | Mode: 644 | ||
1455 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1456 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/metadata_written | ||
1457 | Lines: 1 | ||
1458 | 512 | ||
1459 | Mode: 644 | ||
1460 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1461 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/priority_stats | ||
1462 | Lines: 5 | ||
1463 | Unused: 99% | ||
1464 | Metadata: 0% | ||
1465 | Average: 10473 | ||
1466 | Sectors per Q: 64 | ||
1467 | Quantiles: [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] | ||
1468 | Mode: 644 | ||
1469 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1470 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/written | ||
1471 | Lines: 1 | ||
1472 | 0 | ||
1473 | Mode: 644 | ||
1474 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1475 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache_available_percent | ||
1476 | Lines: 1 | ||
1477 | 100 | ||
1478 | Mode: 644 | ||
1479 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1480 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/congested | ||
1481 | Lines: 1 | ||
1482 | 0 | ||
1483 | Mode: 644 | ||
1484 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1485 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal | ||
1486 | Mode: 755 | ||
1487 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1488 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/active_journal_entries | ||
1489 | Lines: 1 | ||
1490 | 1 | ||
1491 | Mode: 644 | ||
1492 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1493 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_nodes | ||
1494 | Lines: 1 | ||
1495 | 0 | ||
1496 | Mode: 644 | ||
1497 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1498 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_read_average_duration_us | ||
1499 | Lines: 1 | ||
1500 | 1305 | ||
1501 | Mode: 644 | ||
1502 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1503 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/cache_read_races | ||
1504 | Lines: 1 | ||
1505 | 0 | ||
1506 | Mode: 644 | ||
1507 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1508 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/root_usage_percent | ||
1509 | Lines: 1 | ||
1510 | 0 | ||
1511 | Mode: 644 | ||
1512 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1513 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day | ||
1514 | Mode: 755 | ||
1515 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1516 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/bypassed | ||
1517 | Lines: 1 | ||
1518 | 0 | ||
1519 | Mode: 644 | ||
1520 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1521 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_hits | ||
1522 | Lines: 1 | ||
1523 | 0 | ||
1524 | Mode: 644 | ||
1525 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1526 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_misses | ||
1527 | Lines: 1 | ||
1528 | 0 | ||
1529 | Mode: 644 | ||
1530 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1531 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hit_ratio | ||
1532 | Lines: 1 | ||
1533 | 100 | ||
1534 | Mode: 644 | ||
1535 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1536 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hits | ||
1537 | Lines: 1 | ||
1538 | 289 | ||
1539 | Mode: 644 | ||
1540 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1541 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_miss_collisions | ||
1542 | Lines: 1 | ||
1543 | 0 | ||
1544 | Mode: 644 | ||
1545 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1546 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_misses | ||
1547 | Lines: 1 | ||
1548 | 0 | ||
1549 | Mode: 644 | ||
1550 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1551 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_readaheads | ||
1552 | Lines: 1 | ||
1553 | 0 | ||
1554 | Mode: 644 | ||
1555 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1556 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute | ||
1557 | Mode: 755 | ||
1558 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1559 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/bypassed | ||
1560 | Lines: 1 | ||
1561 | 0 | ||
1562 | Mode: 644 | ||
1563 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1564 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_hits | ||
1565 | Lines: 1 | ||
1566 | 0 | ||
1567 | Mode: 644 | ||
1568 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1569 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_misses | ||
1570 | Lines: 1 | ||
1571 | 0 | ||
1572 | Mode: 644 | ||
1573 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1574 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hit_ratio | ||
1575 | Lines: 1 | ||
1576 | 0 | ||
1577 | Mode: 644 | ||
1578 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1579 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hits | ||
1580 | Lines: 1 | ||
1581 | 0 | ||
1582 | Mode: 644 | ||
1583 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1584 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_miss_collisions | ||
1585 | Lines: 1 | ||
1586 | 0 | ||
1587 | Mode: 644 | ||
1588 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1589 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_misses | ||
1590 | Lines: 1 | ||
1591 | 0 | ||
1592 | Mode: 644 | ||
1593 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1594 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_readaheads | ||
1595 | Lines: 1 | ||
1596 | 0 | ||
1597 | Mode: 644 | ||
1598 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1599 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour | ||
1600 | Mode: 755 | ||
1601 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1602 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/bypassed | ||
1603 | Lines: 1 | ||
1604 | 0 | ||
1605 | Mode: 644 | ||
1606 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1607 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_hits | ||
1608 | Lines: 1 | ||
1609 | 0 | ||
1610 | Mode: 644 | ||
1611 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1612 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_misses | ||
1613 | Lines: 1 | ||
1614 | 0 | ||
1615 | Mode: 644 | ||
1616 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1617 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hit_ratio | ||
1618 | Lines: 1 | ||
1619 | 0 | ||
1620 | Mode: 644 | ||
1621 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1622 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hits | ||
1623 | Lines: 1 | ||
1624 | 0 | ||
1625 | Mode: 644 | ||
1626 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1627 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_miss_collisions | ||
1628 | Lines: 1 | ||
1629 | 0 | ||
1630 | Mode: 644 | ||
1631 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1632 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_misses | ||
1633 | Lines: 1 | ||
1634 | 0 | ||
1635 | Mode: 644 | ||
1636 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1637 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_readaheads | ||
1638 | Lines: 1 | ||
1639 | 0 | ||
1640 | Mode: 644 | ||
1641 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1642 | Directory: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total | ||
1643 | Mode: 755 | ||
1644 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1645 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/bypassed | ||
1646 | Lines: 1 | ||
1647 | 0 | ||
1648 | Mode: 644 | ||
1649 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1650 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_hits | ||
1651 | Lines: 1 | ||
1652 | 0 | ||
1653 | Mode: 644 | ||
1654 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1655 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_misses | ||
1656 | Lines: 1 | ||
1657 | 0 | ||
1658 | Mode: 644 | ||
1659 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1660 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hit_ratio | ||
1661 | Lines: 1 | ||
1662 | 100 | ||
1663 | Mode: 644 | ||
1664 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1665 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hits | ||
1666 | Lines: 1 | ||
1667 | 546 | ||
1668 | Mode: 644 | ||
1669 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1670 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_miss_collisions | ||
1671 | Lines: 1 | ||
1672 | 0 | ||
1673 | Mode: 644 | ||
1674 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1675 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_misses | ||
1676 | Lines: 1 | ||
1677 | 0 | ||
1678 | Mode: 644 | ||
1679 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1680 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_readaheads | ||
1681 | Lines: 1 | ||
1682 | 0 | ||
1683 | Mode: 644 | ||
1684 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1685 | Path: fixtures/sys/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/tree_depth | ||
1686 | Lines: 1 | ||
1687 | 0 | ||
1688 | Mode: 644 | ||
1689 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1690 | Directory: fixtures/sys/fs/xfs | ||
1691 | Mode: 755 | ||
1692 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1693 | Directory: fixtures/sys/fs/xfs/sda1 | ||
1694 | Mode: 755 | ||
1695 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1696 | Directory: fixtures/sys/fs/xfs/sda1/stats | ||
1697 | Mode: 755 | ||
1698 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1699 | Path: fixtures/sys/fs/xfs/sda1/stats/stats | ||
1700 | Lines: 1 | ||
1701 | extent_alloc 1 0 0 0 | ||
1702 | Mode: 644 | ||
1703 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1704 | Directory: fixtures/sys/fs/xfs/sdb1 | ||
1705 | Mode: 755 | ||
1706 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1707 | Directory: fixtures/sys/fs/xfs/sdb1/stats | ||
1708 | Mode: 755 | ||
1709 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1710 | Path: fixtures/sys/fs/xfs/sdb1/stats/stats | ||
1711 | Lines: 1 | ||
1712 | extent_alloc 2 0 0 0 | ||
1713 | Mode: 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 @@ | |||
14 | package procfs | 14 | package procfs |
15 | 15 | ||
16 | import ( | 16 | import ( |
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. |
27 | type FS string | 22 | type 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. |
30 | const DefaultMountPoint = "/proc" | 27 | const 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. |
34 | func NewFS(mountPoint string) (FS, error) { | 31 | func 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. | ||
47 | func (fs FS) Path(p ...string) string { | ||
48 | return path.Join(append([]string{string(fs)}, p...)...) | ||
49 | } | ||
50 | |||
51 | // XFSStats retrieves XFS filesystem runtime statistics. | ||
52 | func (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. | ||
63 | func (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. | ||
74 | func (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 | |||
14 | package fs | ||
15 | |||
16 | import ( | ||
17 | "fmt" | ||
18 | "os" | ||
19 | "path/filepath" | ||
20 | ) | ||
21 | |||
22 | const ( | ||
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. | ||
32 | type 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. | ||
36 | func 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. | ||
50 | func (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 | ||
16 | package util | 16 | package 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 | |||
16 | package util | ||
17 | |||
18 | import ( | ||
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. | ||
24 | func 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. |
76 | func (fs FS) NewIPVSStats() (IPVSStats, error) { | 76 | func (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. |
145 | func (fs FS) NewIPVSBackendStatus() ([]IPVSBackendStatus, error) { | 145 | func (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. |
46 | func (fs FS) ParseMDStat() (mdstates []MDStat, err error) { | 46 | func (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. |
61 | func (fs FS) NewNetDev() (NetDev, error) { | 61 | func (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/ |
16 | package nfs | 16 | package nfs |
17 | 17 | ||
18 | import ( | ||
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. |
19 | type ReplyCache struct { | 26 | type 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. | ||
274 | type 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. | ||
280 | func 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. | ||
293 | func (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. | ||
305 | func (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. |
68 | func (fs FS) Self() (Proc, error) { | 70 | func (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. |
81 | func (fs FS) NewProc(pid int) (Proc, error) { | 83 | func (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. |
89 | func (fs FS) AllProcs() (Procs, error) { | 91 | func (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> |
66 | func (fs FS) NewPSIStatsForResource(resource string) (PSIStats, error) { | 66 | func (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. |
177 | func (s ProcStat) StartTime() (float64, error) { | 179 | func (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) { | |||
153 | func (fs FS) NewStat() (Stat, error) { | 153 | func (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 | |||
16 | package sysfs | ||
17 | |||
18 | import ( | ||
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. | ||
30 | type 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. | ||
103 | type PowerSupplyClass map[string]PowerSupply | ||
104 | |||
105 | // NewPowerSupplyClass returns info for all power supplies read from /sys/class/power_supply/. | ||
106 | func 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/. | ||
116 | func (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 | |||
136 | func (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. |
39 | func (fs FS) NewClassThermalZoneStats() ([]ClassThermalZoneStats, error) { | 39 | func (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/ | ||
2 | Directory: fixtures | ||
3 | Mode: 755 | ||
4 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
5 | Directory: fixtures/class | ||
6 | Mode: 775 | ||
7 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
8 | Directory: fixtures/class/net | ||
9 | Mode: 775 | ||
10 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
11 | Directory: fixtures/class/net/eth0 | ||
12 | Mode: 755 | ||
13 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
14 | Path: fixtures/class/net/eth0/addr_assign_type | ||
15 | Lines: 1 | ||
16 | 3 | ||
17 | Mode: 644 | ||
18 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
19 | Path: fixtures/class/net/eth0/addr_len | ||
20 | Lines: 1 | ||
21 | 6 | ||
22 | Mode: 644 | ||
23 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
24 | Path: fixtures/class/net/eth0/address | ||
25 | Lines: 1 | ||
26 | 01:01:01:01:01:01 | ||
27 | Mode: 644 | ||
28 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
29 | Path: fixtures/class/net/eth0/broadcast | ||
30 | Lines: 1 | ||
31 | ff:ff:ff:ff:ff:ff | ||
32 | Mode: 644 | ||
33 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
34 | Path: fixtures/class/net/eth0/carrier | ||
35 | Lines: 1 | ||
36 | 1 | ||
37 | Mode: 644 | ||
38 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
39 | Path: fixtures/class/net/eth0/carrier_changes | ||
40 | Lines: 1 | ||
41 | 2 | ||
42 | Mode: 644 | ||
43 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
44 | Path: fixtures/class/net/eth0/carrier_down_count | ||
45 | Lines: 1 | ||
46 | 1 | ||
47 | Mode: 644 | ||
48 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
49 | Path: fixtures/class/net/eth0/carrier_up_count | ||
50 | Lines: 1 | ||
51 | 1 | ||
52 | Mode: 644 | ||
53 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
54 | Path: fixtures/class/net/eth0/dev_id | ||
55 | Lines: 1 | ||
56 | 0x20 | ||
57 | Mode: 644 | ||
58 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
59 | Path: fixtures/class/net/eth0/dormant | ||
60 | Lines: 1 | ||
61 | 1 | ||
62 | Mode: 644 | ||
63 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
64 | Path: fixtures/class/net/eth0/duplex | ||
65 | Lines: 1 | ||
66 | full | ||
67 | Mode: 644 | ||
68 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
69 | Path: fixtures/class/net/eth0/flags | ||
70 | Lines: 1 | ||
71 | 0x1303 | ||
72 | Mode: 644 | ||
73 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
74 | Path: fixtures/class/net/eth0/ifalias | ||
75 | Lines: 0 | ||
76 | Mode: 644 | ||
77 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
78 | Path: fixtures/class/net/eth0/ifindex | ||
79 | Lines: 1 | ||
80 | 2 | ||
81 | Mode: 644 | ||
82 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
83 | Path: fixtures/class/net/eth0/iflink | ||
84 | Lines: 1 | ||
85 | 2 | ||
86 | Mode: 644 | ||
87 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
88 | Path: fixtures/class/net/eth0/link_mode | ||
89 | Lines: 1 | ||
90 | 1 | ||
91 | Mode: 644 | ||
92 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
93 | Path: fixtures/class/net/eth0/mtu | ||
94 | Lines: 1 | ||
95 | 1500 | ||
96 | Mode: 644 | ||
97 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
98 | Path: fixtures/class/net/eth0/name_assign_type | ||
99 | Lines: 1 | ||
100 | 2 | ||
101 | Mode: 644 | ||
102 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
103 | Path: fixtures/class/net/eth0/netdev_group | ||
104 | Lines: 1 | ||
105 | 0 | ||
106 | Mode: 644 | ||
107 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
108 | Path: fixtures/class/net/eth0/operstate | ||
109 | Lines: 1 | ||
110 | up | ||
111 | Mode: 644 | ||
112 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
113 | Path: fixtures/class/net/eth0/phys_port_id | ||
114 | Lines: 0 | ||
115 | Mode: 644 | ||
116 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
117 | Path: fixtures/class/net/eth0/phys_port_name | ||
118 | Lines: 0 | ||
119 | Mode: 644 | ||
120 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
121 | Path: fixtures/class/net/eth0/phys_switch_id | ||
122 | Lines: 0 | ||
123 | Mode: 644 | ||
124 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
125 | Path: fixtures/class/net/eth0/speed | ||
126 | Lines: 1 | ||
127 | 1000 | ||
128 | Mode: 644 | ||
129 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
130 | Path: fixtures/class/net/eth0/tx_queue_len | ||
131 | Lines: 1 | ||
132 | 1000 | ||
133 | Mode: 644 | ||
134 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
135 | Path: fixtures/class/net/eth0/type | ||
136 | Lines: 1 | ||
137 | 1 | ||
138 | Mode: 644 | ||
139 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
140 | Directory: fixtures/class/thermal | ||
141 | Mode: 775 | ||
142 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
143 | Directory: fixtures/class/thermal/thermal_zone0 | ||
144 | Mode: 775 | ||
145 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
146 | Path: fixtures/class/thermal/thermal_zone0/policy | ||
147 | Lines: 1 | ||
148 | step_wise | ||
149 | Mode: 664 | ||
150 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
151 | Path: fixtures/class/thermal/thermal_zone0/temp | ||
152 | Lines: 1 | ||
153 | 49925 | ||
154 | Mode: 664 | ||
155 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
156 | Path: fixtures/class/thermal/thermal_zone0/type | ||
157 | Lines: 1 | ||
158 | bcm2835_thermal | ||
159 | Mode: 664 | ||
160 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
161 | Directory: fixtures/class/thermal/thermal_zone1 | ||
162 | Mode: 755 | ||
163 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
164 | Path: fixtures/class/thermal/thermal_zone1/mode | ||
165 | Lines: 1 | ||
166 | enabled | ||
167 | Mode: 664 | ||
168 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
169 | Path: fixtures/class/thermal/thermal_zone1/passive | ||
170 | Lines: 1 | ||
171 | 0 | ||
172 | Mode: 664 | ||
173 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
174 | Path: fixtures/class/thermal/thermal_zone1/policy | ||
175 | Lines: 1 | ||
176 | step_wise | ||
177 | Mode: 664 | ||
178 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
179 | Path: fixtures/class/thermal/thermal_zone1/temp | ||
180 | Lines: 1 | ||
181 | 44000 | ||
182 | Mode: 664 | ||
183 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
184 | Path: fixtures/class/thermal/thermal_zone1/type | ||
185 | Lines: 1 | ||
186 | acpitz | ||
187 | Mode: 664 | ||
188 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
189 | Directory: fixtures/devices | ||
190 | Mode: 755 | ||
191 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
192 | Directory: fixtures/devices/pci0000:00 | ||
193 | Mode: 755 | ||
194 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
195 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0 | ||
196 | Mode: 755 | ||
197 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
198 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4 | ||
199 | Mode: 755 | ||
200 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
201 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3 | ||
202 | Mode: 755 | ||
203 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
204 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0 | ||
205 | Mode: 755 | ||
206 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
207 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0 | ||
208 | Mode: 755 | ||
209 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
210 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block | ||
211 | Mode: 755 | ||
212 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
213 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb | ||
214 | Mode: 755 | ||
215 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
216 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache | ||
217 | Mode: 755 | ||
218 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
219 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/dirty_data | ||
220 | Lines: 1 | ||
221 | 0 | ||
222 | Mode: 644 | ||
223 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
224 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day | ||
225 | Mode: 755 | ||
226 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
227 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/bypassed | ||
228 | Lines: 1 | ||
229 | 0 | ||
230 | Mode: 644 | ||
231 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
232 | Path: 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 | ||
233 | Lines: 1 | ||
234 | 0 | ||
235 | Mode: 644 | ||
236 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
237 | Path: 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 | ||
238 | Lines: 1 | ||
239 | 0 | ||
240 | Mode: 644 | ||
241 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
242 | Path: 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 | ||
243 | Lines: 1 | ||
244 | 100 | ||
245 | Mode: 644 | ||
246 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
247 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_hits | ||
248 | Lines: 1 | ||
249 | 289 | ||
250 | Mode: 644 | ||
251 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
252 | Path: 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 | ||
253 | Lines: 1 | ||
254 | 0 | ||
255 | Mode: 644 | ||
256 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
257 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_misses | ||
258 | Lines: 1 | ||
259 | 0 | ||
260 | Mode: 644 | ||
261 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
262 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_day/cache_readaheads | ||
263 | Lines: 1 | ||
264 | 0 | ||
265 | Mode: 644 | ||
266 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
267 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute | ||
268 | Mode: 755 | ||
269 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
270 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_five_minute/bypassed | ||
271 | Lines: 1 | ||
272 | 0 | ||
273 | Mode: 644 | ||
274 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
275 | Path: 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 | ||
276 | Lines: 1 | ||
277 | 0 | ||
278 | Mode: 644 | ||
279 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
280 | Path: 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 | ||
281 | Lines: 1 | ||
282 | 0 | ||
283 | Mode: 644 | ||
284 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
285 | Path: 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 | ||
286 | Lines: 1 | ||
287 | 0 | ||
288 | Mode: 644 | ||
289 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
290 | Path: 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 | ||
291 | Lines: 1 | ||
292 | 0 | ||
293 | Mode: 644 | ||
294 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
295 | Path: 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 | ||
296 | Lines: 1 | ||
297 | 0 | ||
298 | Mode: 644 | ||
299 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
300 | Path: 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 | ||
301 | Lines: 1 | ||
302 | 0 | ||
303 | Mode: 644 | ||
304 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
305 | Path: 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 | ||
306 | Lines: 1 | ||
307 | 0 | ||
308 | Mode: 644 | ||
309 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
310 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour | ||
311 | Mode: 755 | ||
312 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
313 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/bypassed | ||
314 | Lines: 1 | ||
315 | 0 | ||
316 | Mode: 644 | ||
317 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
318 | Path: 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 | ||
319 | Lines: 1 | ||
320 | 0 | ||
321 | Mode: 644 | ||
322 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
323 | Path: 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 | ||
324 | Lines: 1 | ||
325 | 0 | ||
326 | Mode: 644 | ||
327 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
328 | Path: 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 | ||
329 | Lines: 1 | ||
330 | 0 | ||
331 | Mode: 644 | ||
332 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
333 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_hits | ||
334 | Lines: 1 | ||
335 | 0 | ||
336 | Mode: 644 | ||
337 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
338 | Path: 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 | ||
339 | Lines: 1 | ||
340 | 0 | ||
341 | Mode: 644 | ||
342 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
343 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_misses | ||
344 | Lines: 1 | ||
345 | 0 | ||
346 | Mode: 644 | ||
347 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
348 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_hour/cache_readaheads | ||
349 | Lines: 1 | ||
350 | 0 | ||
351 | Mode: 644 | ||
352 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
353 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total | ||
354 | Mode: 755 | ||
355 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
356 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/bypassed | ||
357 | Lines: 1 | ||
358 | 0 | ||
359 | Mode: 644 | ||
360 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
361 | Path: 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 | ||
362 | Lines: 1 | ||
363 | 0 | ||
364 | Mode: 644 | ||
365 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
366 | Path: 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 | ||
367 | Lines: 1 | ||
368 | 0 | ||
369 | Mode: 644 | ||
370 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
371 | Path: 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 | ||
372 | Lines: 1 | ||
373 | 100 | ||
374 | Mode: 644 | ||
375 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
376 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_hits | ||
377 | Lines: 1 | ||
378 | 546 | ||
379 | Mode: 644 | ||
380 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
381 | Path: 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 | ||
382 | Lines: 1 | ||
383 | 0 | ||
384 | Mode: 644 | ||
385 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
386 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_misses | ||
387 | Lines: 1 | ||
388 | 0 | ||
389 | Mode: 644 | ||
390 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
391 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata4/host3/target3:0:0/3:0:0:0/block/sdb/bcache/stats_total/cache_readaheads | ||
392 | Lines: 1 | ||
393 | 0 | ||
394 | Mode: 644 | ||
395 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
396 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5 | ||
397 | Mode: 755 | ||
398 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
399 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4 | ||
400 | Mode: 755 | ||
401 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
402 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0 | ||
403 | Mode: 755 | ||
404 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
405 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0 | ||
406 | Mode: 755 | ||
407 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
408 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block | ||
409 | Mode: 755 | ||
410 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
411 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc | ||
412 | Mode: 755 | ||
413 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
414 | Directory: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache | ||
415 | Mode: 755 | ||
416 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
417 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/io_errors | ||
418 | Lines: 1 | ||
419 | 0 | ||
420 | Mode: 644 | ||
421 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
422 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/metadata_written | ||
423 | Lines: 1 | ||
424 | 512 | ||
425 | Mode: 644 | ||
426 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
427 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/priority_stats | ||
428 | Lines: 5 | ||
429 | Unused: 99% | ||
430 | Metadata: 0% | ||
431 | Average: 10473 | ||
432 | Sectors per Q: 64 | ||
433 | Quantiles: [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] | ||
434 | Mode: 644 | ||
435 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
436 | Path: fixtures/devices/pci0000:00/0000:00:0d.0/ata5/host4/target4:0:0/4:0:0:0/block/sdc/bcache/written | ||
437 | Lines: 1 | ||
438 | 0 | ||
439 | Mode: 644 | ||
440 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
441 | Directory: fixtures/devices/system | ||
442 | Mode: 775 | ||
443 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
444 | Directory: fixtures/devices/system/cpu | ||
445 | Mode: 775 | ||
446 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
447 | Directory: fixtures/devices/system/cpu/cpu0 | ||
448 | Mode: 775 | ||
449 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
450 | Path: fixtures/devices/system/cpu/cpu0/cpufreq | ||
451 | SymlinkTo: ../cpufreq/policy0 | ||
452 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
453 | Directory: fixtures/devices/system/cpu/cpu1 | ||
454 | Mode: 775 | ||
455 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
456 | Directory: fixtures/devices/system/cpu/cpu1/cpufreq | ||
457 | Mode: 775 | ||
458 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
459 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq | ||
460 | Lines: 1 | ||
461 | 1200195 | ||
462 | Mode: 400 | ||
463 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
464 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq | ||
465 | Lines: 1 | ||
466 | 3300000 | ||
467 | Mode: 664 | ||
468 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
469 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq | ||
470 | Lines: 1 | ||
471 | 1200000 | ||
472 | Mode: 664 | ||
473 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
474 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency | ||
475 | Lines: 1 | ||
476 | 4294967295 | ||
477 | Mode: 664 | ||
478 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
479 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/related_cpus | ||
480 | Lines: 1 | ||
481 | 1 | ||
482 | Mode: 664 | ||
483 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
484 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_available_governors | ||
485 | Lines: 1 | ||
486 | performance powersave | ||
487 | Mode: 664 | ||
488 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
489 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_driver | ||
490 | Lines: 1 | ||
491 | intel_pstate | ||
492 | Mode: 664 | ||
493 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
494 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_governor | ||
495 | Lines: 1 | ||
496 | powersave | ||
497 | Mode: 664 | ||
498 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
499 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_max_freq | ||
500 | Lines: 1 | ||
501 | 3300000 | ||
502 | Mode: 664 | ||
503 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
504 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_min_freq | ||
505 | Lines: 1 | ||
506 | 1200000 | ||
507 | Mode: 664 | ||
508 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
509 | Path: fixtures/devices/system/cpu/cpu1/cpufreq/scaling_setspeed | ||
510 | Lines: 1 | ||
511 | <unsupported> | ||
512 | Mode: 664 | ||
513 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
514 | Directory: fixtures/devices/system/cpu/cpufreq | ||
515 | Mode: 775 | ||
516 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
517 | Directory: fixtures/devices/system/cpu/cpufreq/policy0 | ||
518 | Mode: 775 | ||
519 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
520 | Path: fixtures/devices/system/cpu/cpufreq/policy0/affected_cpus | ||
521 | Lines: 1 | ||
522 | 0 | ||
523 | Mode: 444 | ||
524 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
525 | Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_max_freq | ||
526 | Lines: 1 | ||
527 | 2400000 | ||
528 | Mode: 444 | ||
529 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
530 | Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_min_freq | ||
531 | Lines: 1 | ||
532 | 800000 | ||
533 | Mode: 444 | ||
534 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
535 | Path: fixtures/devices/system/cpu/cpufreq/policy0/cpuinfo_transition_latency | ||
536 | Lines: 1 | ||
537 | 0 | ||
538 | Mode: 444 | ||
539 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
540 | Path: fixtures/devices/system/cpu/cpufreq/policy0/related_cpus | ||
541 | Lines: 1 | ||
542 | 0 | ||
543 | Mode: 444 | ||
544 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
545 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_available_governors | ||
546 | Lines: 1 | ||
547 | performance powersave | ||
548 | Mode: 444 | ||
549 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
550 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_cur_freq | ||
551 | Lines: 1 | ||
552 | 1219917 | ||
553 | Mode: 444 | ||
554 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
555 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_driver | ||
556 | Lines: 1 | ||
557 | intel_pstate | ||
558 | Mode: 444 | ||
559 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
560 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_governor | ||
561 | Lines: 1 | ||
562 | powersave | ||
563 | Mode: 644 | ||
564 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
565 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_max_freq | ||
566 | Lines: 1 | ||
567 | 2400000 | ||
568 | Mode: 644 | ||
569 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
570 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_min_freq | ||
571 | Lines: 1 | ||
572 | 800000 | ||
573 | Mode: 644 | ||
574 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
575 | Path: fixtures/devices/system/cpu/cpufreq/policy0/scaling_setspeed | ||
576 | Lines: 1 | ||
577 | <unsupported> | ||
578 | Mode: 644 | ||
579 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
580 | Directory: fixtures/devices/system/cpu/cpufreq/policy1 | ||
581 | Mode: 755 | ||
582 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
583 | Directory: fixtures/fs | ||
584 | Mode: 755 | ||
585 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
586 | Directory: fixtures/fs/bcache | ||
587 | Mode: 755 | ||
588 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
589 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74 | ||
590 | Mode: 755 | ||
591 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
592 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/average_key_size | ||
593 | Lines: 1 | ||
594 | 0 | ||
595 | Mode: 644 | ||
596 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
597 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0 | ||
598 | Mode: 777 | ||
599 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
600 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/dirty_data | ||
601 | Lines: 1 | ||
602 | 0 | ||
603 | Mode: 644 | ||
604 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
605 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day | ||
606 | Mode: 755 | ||
607 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
608 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/bypassed | ||
609 | Lines: 1 | ||
610 | 0 | ||
611 | Mode: 644 | ||
612 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
613 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_hits | ||
614 | Lines: 1 | ||
615 | 0 | ||
616 | Mode: 644 | ||
617 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
618 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_bypass_misses | ||
619 | Lines: 1 | ||
620 | 0 | ||
621 | Mode: 644 | ||
622 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
623 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hit_ratio | ||
624 | Lines: 1 | ||
625 | 100 | ||
626 | Mode: 644 | ||
627 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
628 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_hits | ||
629 | Lines: 1 | ||
630 | 289 | ||
631 | Mode: 644 | ||
632 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
633 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_miss_collisions | ||
634 | Lines: 1 | ||
635 | 0 | ||
636 | Mode: 644 | ||
637 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
638 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_misses | ||
639 | Lines: 1 | ||
640 | 0 | ||
641 | Mode: 644 | ||
642 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
643 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_day/cache_readaheads | ||
644 | Lines: 1 | ||
645 | 0 | ||
646 | Mode: 644 | ||
647 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
648 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute | ||
649 | Mode: 755 | ||
650 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
651 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/bypassed | ||
652 | Lines: 1 | ||
653 | 0 | ||
654 | Mode: 644 | ||
655 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
656 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_hits | ||
657 | Lines: 1 | ||
658 | 0 | ||
659 | Mode: 644 | ||
660 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
661 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_bypass_misses | ||
662 | Lines: 1 | ||
663 | 0 | ||
664 | Mode: 644 | ||
665 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
666 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hit_ratio | ||
667 | Lines: 1 | ||
668 | 0 | ||
669 | Mode: 644 | ||
670 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
671 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_hits | ||
672 | Lines: 1 | ||
673 | 0 | ||
674 | Mode: 644 | ||
675 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
676 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_miss_collisions | ||
677 | Lines: 1 | ||
678 | 0 | ||
679 | Mode: 644 | ||
680 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
681 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_misses | ||
682 | Lines: 1 | ||
683 | 0 | ||
684 | Mode: 644 | ||
685 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
686 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_five_minute/cache_readaheads | ||
687 | Lines: 1 | ||
688 | 0 | ||
689 | Mode: 644 | ||
690 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
691 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour | ||
692 | Mode: 755 | ||
693 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
694 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/bypassed | ||
695 | Lines: 1 | ||
696 | 0 | ||
697 | Mode: 644 | ||
698 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
699 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_hits | ||
700 | Lines: 1 | ||
701 | 0 | ||
702 | Mode: 644 | ||
703 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
704 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_bypass_misses | ||
705 | Lines: 1 | ||
706 | 0 | ||
707 | Mode: 644 | ||
708 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
709 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hit_ratio | ||
710 | Lines: 1 | ||
711 | 0 | ||
712 | Mode: 644 | ||
713 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
714 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_hits | ||
715 | Lines: 1 | ||
716 | 0 | ||
717 | Mode: 644 | ||
718 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
719 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_miss_collisions | ||
720 | Lines: 1 | ||
721 | 0 | ||
722 | Mode: 644 | ||
723 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
724 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_misses | ||
725 | Lines: 1 | ||
726 | 0 | ||
727 | Mode: 644 | ||
728 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
729 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_hour/cache_readaheads | ||
730 | Lines: 1 | ||
731 | 0 | ||
732 | Mode: 644 | ||
733 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
734 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total | ||
735 | Mode: 755 | ||
736 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
737 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/bypassed | ||
738 | Lines: 1 | ||
739 | 0 | ||
740 | Mode: 644 | ||
741 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
742 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_hits | ||
743 | Lines: 1 | ||
744 | 0 | ||
745 | Mode: 644 | ||
746 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
747 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_bypass_misses | ||
748 | Lines: 1 | ||
749 | 0 | ||
750 | Mode: 644 | ||
751 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
752 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hit_ratio | ||
753 | Lines: 1 | ||
754 | 100 | ||
755 | Mode: 644 | ||
756 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
757 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_hits | ||
758 | Lines: 1 | ||
759 | 546 | ||
760 | Mode: 644 | ||
761 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
762 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_miss_collisions | ||
763 | Lines: 1 | ||
764 | 0 | ||
765 | Mode: 644 | ||
766 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
767 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_misses | ||
768 | Lines: 1 | ||
769 | 0 | ||
770 | Mode: 644 | ||
771 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
772 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/bdev0/stats_total/cache_readaheads | ||
773 | Lines: 1 | ||
774 | 0 | ||
775 | Mode: 644 | ||
776 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
777 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/btree_cache_size | ||
778 | Lines: 1 | ||
779 | 0 | ||
780 | Mode: 644 | ||
781 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
782 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0 | ||
783 | Mode: 777 | ||
784 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
785 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/io_errors | ||
786 | Lines: 1 | ||
787 | 0 | ||
788 | Mode: 644 | ||
789 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
790 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/metadata_written | ||
791 | Lines: 1 | ||
792 | 512 | ||
793 | Mode: 644 | ||
794 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
795 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/priority_stats | ||
796 | Lines: 5 | ||
797 | Unused: 99% | ||
798 | Metadata: 0% | ||
799 | Average: 10473 | ||
800 | Sectors per Q: 64 | ||
801 | Quantiles: [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] | ||
802 | Mode: 644 | ||
803 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
804 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache0/written | ||
805 | Lines: 1 | ||
806 | 0 | ||
807 | Mode: 644 | ||
808 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
809 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/cache_available_percent | ||
810 | Lines: 1 | ||
811 | 100 | ||
812 | Mode: 644 | ||
813 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
814 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/congested | ||
815 | Lines: 1 | ||
816 | 0 | ||
817 | Mode: 644 | ||
818 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
819 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal | ||
820 | Mode: 755 | ||
821 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
822 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/active_journal_entries | ||
823 | Lines: 1 | ||
824 | 1 | ||
825 | Mode: 644 | ||
826 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
827 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_nodes | ||
828 | Lines: 1 | ||
829 | 0 | ||
830 | Mode: 644 | ||
831 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
832 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/btree_read_average_duration_us | ||
833 | Lines: 1 | ||
834 | 1305 | ||
835 | Mode: 644 | ||
836 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
837 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/internal/cache_read_races | ||
838 | Lines: 1 | ||
839 | 0 | ||
840 | Mode: 644 | ||
841 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
842 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/root_usage_percent | ||
843 | Lines: 1 | ||
844 | 0 | ||
845 | Mode: 644 | ||
846 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
847 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day | ||
848 | Mode: 755 | ||
849 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
850 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/bypassed | ||
851 | Lines: 1 | ||
852 | 0 | ||
853 | Mode: 644 | ||
854 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
855 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_hits | ||
856 | Lines: 1 | ||
857 | 0 | ||
858 | Mode: 644 | ||
859 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
860 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_bypass_misses | ||
861 | Lines: 1 | ||
862 | 0 | ||
863 | Mode: 644 | ||
864 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
865 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hit_ratio | ||
866 | Lines: 1 | ||
867 | 100 | ||
868 | Mode: 644 | ||
869 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
870 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_hits | ||
871 | Lines: 1 | ||
872 | 289 | ||
873 | Mode: 644 | ||
874 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
875 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_miss_collisions | ||
876 | Lines: 1 | ||
877 | 0 | ||
878 | Mode: 644 | ||
879 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
880 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_misses | ||
881 | Lines: 1 | ||
882 | 0 | ||
883 | Mode: 644 | ||
884 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
885 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_day/cache_readaheads | ||
886 | Lines: 1 | ||
887 | 0 | ||
888 | Mode: 644 | ||
889 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
890 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute | ||
891 | Mode: 755 | ||
892 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
893 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/bypassed | ||
894 | Lines: 1 | ||
895 | 0 | ||
896 | Mode: 644 | ||
897 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
898 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_hits | ||
899 | Lines: 1 | ||
900 | 0 | ||
901 | Mode: 644 | ||
902 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
903 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_bypass_misses | ||
904 | Lines: 1 | ||
905 | 0 | ||
906 | Mode: 644 | ||
907 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
908 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hit_ratio | ||
909 | Lines: 1 | ||
910 | 0 | ||
911 | Mode: 644 | ||
912 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
913 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_hits | ||
914 | Lines: 1 | ||
915 | 0 | ||
916 | Mode: 644 | ||
917 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
918 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_miss_collisions | ||
919 | Lines: 1 | ||
920 | 0 | ||
921 | Mode: 644 | ||
922 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
923 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_misses | ||
924 | Lines: 1 | ||
925 | 0 | ||
926 | Mode: 644 | ||
927 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
928 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_five_minute/cache_readaheads | ||
929 | Lines: 1 | ||
930 | 0 | ||
931 | Mode: 644 | ||
932 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
933 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour | ||
934 | Mode: 755 | ||
935 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
936 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/bypassed | ||
937 | Lines: 1 | ||
938 | 0 | ||
939 | Mode: 644 | ||
940 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
941 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_hits | ||
942 | Lines: 1 | ||
943 | 0 | ||
944 | Mode: 644 | ||
945 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
946 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_bypass_misses | ||
947 | Lines: 1 | ||
948 | 0 | ||
949 | Mode: 644 | ||
950 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
951 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hit_ratio | ||
952 | Lines: 1 | ||
953 | 0 | ||
954 | Mode: 644 | ||
955 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
956 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_hits | ||
957 | Lines: 1 | ||
958 | 0 | ||
959 | Mode: 644 | ||
960 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
961 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_miss_collisions | ||
962 | Lines: 1 | ||
963 | 0 | ||
964 | Mode: 644 | ||
965 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
966 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_misses | ||
967 | Lines: 1 | ||
968 | 0 | ||
969 | Mode: 644 | ||
970 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
971 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_hour/cache_readaheads | ||
972 | Lines: 1 | ||
973 | 0 | ||
974 | Mode: 644 | ||
975 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
976 | Directory: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total | ||
977 | Mode: 755 | ||
978 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
979 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/bypassed | ||
980 | Lines: 1 | ||
981 | 0 | ||
982 | Mode: 644 | ||
983 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
984 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_hits | ||
985 | Lines: 1 | ||
986 | 0 | ||
987 | Mode: 644 | ||
988 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
989 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_bypass_misses | ||
990 | Lines: 1 | ||
991 | 0 | ||
992 | Mode: 644 | ||
993 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
994 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hit_ratio | ||
995 | Lines: 1 | ||
996 | 100 | ||
997 | Mode: 644 | ||
998 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
999 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_hits | ||
1000 | Lines: 1 | ||
1001 | 546 | ||
1002 | Mode: 644 | ||
1003 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1004 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_miss_collisions | ||
1005 | Lines: 1 | ||
1006 | 0 | ||
1007 | Mode: 644 | ||
1008 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1009 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_misses | ||
1010 | Lines: 1 | ||
1011 | 0 | ||
1012 | Mode: 644 | ||
1013 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1014 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/stats_total/cache_readaheads | ||
1015 | Lines: 1 | ||
1016 | 0 | ||
1017 | Mode: 644 | ||
1018 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1019 | Path: fixtures/fs/bcache/deaddd54-c735-46d5-868e-f331c5fd7c74/tree_depth | ||
1020 | Lines: 1 | ||
1021 | 0 | ||
1022 | Mode: 644 | ||
1023 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1024 | Directory: fixtures/fs/xfs | ||
1025 | Mode: 755 | ||
1026 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1027 | Directory: fixtures/fs/xfs/sda1 | ||
1028 | Mode: 755 | ||
1029 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1030 | Directory: fixtures/fs/xfs/sda1/stats | ||
1031 | Mode: 755 | ||
1032 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1033 | Path: fixtures/fs/xfs/sda1/stats/stats | ||
1034 | Lines: 1 | ||
1035 | extent_alloc 1 0 0 0 | ||
1036 | Mode: 644 | ||
1037 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1038 | Directory: fixtures/fs/xfs/sdb1 | ||
1039 | Mode: 755 | ||
1040 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1041 | Directory: fixtures/fs/xfs/sdb1/stats | ||
1042 | Mode: 755 | ||
1043 | # ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
1044 | Path: fixtures/fs/xfs/sdb1/stats/stats | ||
1045 | Lines: 1 | ||
1046 | extent_alloc 2 0 0 0 | ||
1047 | Mode: 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 @@ | |||
14 | package sysfs | 14 | package sysfs |
15 | 15 | ||
16 | import ( | 16 | import ( |
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. |
27 | type FS string | 22 | type 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. |
30 | const DefaultMountPoint = "/sys" | 27 | const 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. |
34 | func NewFS(mountPoint string) (FS, error) { | 31 | func 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. | ||
47 | func (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. | ||
54 | func (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. | ||
86 | func (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 | ||
30 | const 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). |
31 | type NetClassIface struct { | 34 | type 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. |
76 | func (fs FS) NewNetClass() (NetClass, error) { | 79 | func (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>. | ||
99 | func (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) { | |||
60 | func (fs FS) NewSystemCpufreq() ([]SystemCPUCpufreqStats, error) { | 60 | func (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. |
99 | func (fs FS) NewXfrmStat() (XfrmStat, error) { | 99 | func (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. |
15 | package xfs | 15 | package xfs |
16 | 16 | ||
17 | import ( | ||
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. | ||
175 | type 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. | ||
182 | func 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. | ||
202 | func (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. | ||
215 | func (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 | |||
43 | github.com/prometheus/common/expfmt | 43 | github.com/prometheus/common/expfmt |
44 | github.com/prometheus/common/model | 44 | github.com/prometheus/common/model |
45 | github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg | 45 | github.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 |
47 | github.com/prometheus/procfs | 47 | github.com/prometheus/procfs |
48 | github.com/prometheus/procfs/bcache | 48 | github.com/prometheus/procfs/bcache |
49 | github.com/prometheus/procfs/nfs | 49 | github.com/prometheus/procfs/nfs |
50 | github.com/prometheus/procfs/sysfs | 50 | github.com/prometheus/procfs/sysfs |
51 | github.com/prometheus/procfs/xfs | 51 | github.com/prometheus/procfs/xfs |
52 | github.com/prometheus/procfs/internal/fs | ||
52 | github.com/prometheus/procfs/internal/util | 53 | github.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 |
54 | github.com/siebenmann/go-kstat | 55 | github.com/siebenmann/go-kstat |
@@ -61,7 +62,7 @@ golang.org/x/net/ipv4 | |||
61 | golang.org/x/net/bpf | 62 | golang.org/x/net/bpf |
62 | golang.org/x/net/internal/iana | 63 | golang.org/x/net/internal/iana |
63 | golang.org/x/net/internal/socket | 64 | golang.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 |
65 | golang.org/x/sync/errgroup | 66 | golang.org/x/sync/errgroup |
66 | # golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c | 67 | # golang.org/x/sys v0.0.0-20190402142545-baf5eb976a8c |
67 | golang.org/x/sys/unix | 68 | golang.org/x/sys/unix |