aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gier <pgier@redhat.com>2019-09-15 16:53:22 -0500
committerPaul Gier <pgier@redhat.com>2019-09-15 16:57:37 -0500
commitcbfb4966290c09ec48e24beb05947dea653bda1b (patch)
treeacb67fce532b42d7ac152834e184c0f6ffb36032
parenteb19c5c20b62b1e63949e96b08dd199b159512bc (diff)
downloadprometheus_node_collector-cbfb4966290c09ec48e24beb05947dea653bda1b.tar.bz2
prometheus_node_collector-cbfb4966290c09ec48e24beb05947dea653bda1b.tar.xz
prometheus_node_collector-cbfb4966290c09ec48e24beb05947dea653bda1b.zip
update procfs to v0.0.5
- Fixes (#1465) failure in netclass collector - Adds parsing of CPU information Signed-off-by: Paul Gier <pgier@redhat.com>
-rw-r--r--go.mod2
-rw-r--r--go.sum4
-rw-r--r--vendor/github.com/prometheus/procfs/buddyinfo.go2
-rw-r--r--vendor/github.com/prometheus/procfs/cpuinfo.go166
-rw-r--r--vendor/github.com/prometheus/procfs/fixtures.ttar863
-rw-r--r--vendor/github.com/prometheus/procfs/proc_status.go7
-rw-r--r--vendor/github.com/prometheus/procfs/schedstat.go4
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/class_infiniband.go10
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go6
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/net_class.go6
-rw-r--r--vendor/github.com/prometheus/procfs/sysfs/system_cpu.go97
-rw-r--r--vendor/modules.txt2
12 files changed, 1038 insertions, 131 deletions
diff --git a/go.mod b/go.mod
index 4c26dd2..4de53f9 100644
--- a/go.mod
+++ b/go.mod
@@ -14,7 +14,7 @@ require (
14 github.com/prometheus/client_golang v1.0.0 14 github.com/prometheus/client_golang v1.0.0
15 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90 15 github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
16 github.com/prometheus/common v0.4.1 16 github.com/prometheus/common v0.4.1
17 github.com/prometheus/procfs v0.0.4 17 github.com/prometheus/procfs v0.0.5
18 github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 18 github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745
19 github.com/sirupsen/logrus v1.4.2 // indirect 19 github.com/sirupsen/logrus v1.4.2 // indirect
20 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a 20 github.com/soundcloud/go-runit v0.0.0-20150630195641-06ad41a06c4a
diff --git a/go.sum b/go.sum
index b9c3d45..3e03bfc 100644
--- a/go.sum
+++ b/go.sum
@@ -75,8 +75,8 @@ github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y8
75github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= 75github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
76github.com/prometheus/procfs v0.0.2 h1:6LJUbpNm42llc4HRCuvApCSWB/WfhuNo9K98Q9sNGfs= 76github.com/prometheus/procfs v0.0.2 h1:6LJUbpNm42llc4HRCuvApCSWB/WfhuNo9K98Q9sNGfs=
77github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= 77github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
78github.com/prometheus/procfs v0.0.4 h1:w8DjqFMJDjuVwdZBQoOozr4MVWOnwF7RcL/7uxBjY78= 78github.com/prometheus/procfs v0.0.5 h1:3+auTFlqw+ZaQYJARz6ArODtkaIwtvBTx3N2NehQlL8=
79github.com/prometheus/procfs v0.0.4/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ= 79github.com/prometheus/procfs v0.0.5/go.mod h1:4A/X28fw3Fc593LaREMrKMqOKvUAntwMDaekg4FpcdQ=
80github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA= 80github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745 h1:IuH7WumZNax0D+rEqmy2TyhKCzrtMGqbZO0b8rO00JA=
81github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8= 81github.com/siebenmann/go-kstat v0.0.0-20160321171754-d34789b79745/go.mod h1:G81aIFAMS9ECrwBYR9YxhlPjWgrItd+Kje78O6+uqm8=
82github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= 82github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
diff --git a/vendor/github.com/prometheus/procfs/buddyinfo.go b/vendor/github.com/prometheus/procfs/buddyinfo.go
index 63d4229..10bd067 100644
--- a/vendor/github.com/prometheus/procfs/buddyinfo.go
+++ b/vendor/github.com/prometheus/procfs/buddyinfo.go
@@ -31,7 +31,7 @@ type BuddyInfo struct {
31 Sizes []float64 31 Sizes []float64
32} 32}
33 33
34// NewBuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem. 34// BuddyInfo reads the buddyinfo statistics from the specified `proc` filesystem.
35func (fs FS) BuddyInfo() ([]BuddyInfo, error) { 35func (fs FS) BuddyInfo() ([]BuddyInfo, error) {
36 file, err := os.Open(fs.proc.Path("buddyinfo")) 36 file, err := os.Open(fs.proc.Path("buddyinfo"))
37 if err != nil { 37 if err != nil {
diff --git a/vendor/github.com/prometheus/procfs/cpuinfo.go b/vendor/github.com/prometheus/procfs/cpuinfo.go
new file mode 100644
index 0000000..16491d6
--- /dev/null
+++ b/vendor/github.com/prometheus/procfs/cpuinfo.go
@@ -0,0 +1,166 @@
1// Copyright 2019 The Prometheus Authors
2// Licensed under the Apache License, Version 2.0 (the "License");
3// you may not use this file except in compliance with the License.
4// You may obtain a copy of the License at
5//
6// http://www.apache.org/licenses/LICENSE-2.0
7//
8// Unless required by applicable law or agreed to in writing, software
9// distributed under the License is distributed on an "AS IS" BASIS,
10// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11// See the License for the specific language governing permissions and
12// limitations under the License.
13
14package procfs
15
16import (
17 "bufio"
18 "bytes"
19 "io/ioutil"
20 "strconv"
21 "strings"
22)
23
24// CPUInfo contains general information about a system CPU found in /proc/cpuinfo
25type CPUInfo struct {
26 Processor uint
27 VendorID string
28 CPUFamily string
29 Model string
30 ModelName string
31 Stepping string
32 Microcode string
33 CPUMHz float64
34 CacheSize string
35 PhysicalID string
36 Siblings uint
37 CoreID string
38 CPUCores uint
39 APICID string
40 InitialAPICID string
41 FPU string
42 FPUException string
43 CPUIDLevel uint
44 WP string
45 Flags []string
46 Bugs []string
47 BogoMips float64
48 CLFlushSize uint
49 CacheAlignment uint
50 AddressSizes string
51 PowerManagement string
52}
53
54// CPUInfo returns information about current system CPUs.
55// See https://www.kernel.org/doc/Documentation/filesystems/proc.txt
56func (fs FS) CPUInfo() ([]CPUInfo, error) {
57 data, err := ioutil.ReadFile(fs.proc.Path("cpuinfo"))
58 if err != nil {
59 return nil, err
60 }
61 return parseCPUInfo(data)
62}
63
64// parseCPUInfo parses data from /proc/cpuinfo
65func parseCPUInfo(info []byte) ([]CPUInfo, error) {
66 cpuinfo := []CPUInfo{}
67 i := -1
68 scanner := bufio.NewScanner(bytes.NewReader(info))
69 for scanner.Scan() {
70 line := scanner.Text()
71 if strings.TrimSpace(line) == "" {
72 continue
73 }
74 field := strings.SplitN(line, ": ", 2)
75 switch strings.TrimSpace(field[0]) {
76 case "processor":
77 cpuinfo = append(cpuinfo, CPUInfo{}) // start of the next processor
78 i++
79 v, err := strconv.ParseUint(field[1], 0, 32)
80 if err != nil {
81 return nil, err
82 }
83 cpuinfo[i].Processor = uint(v)
84 case "vendor_id":
85 cpuinfo[i].VendorID = field[1]
86 case "cpu family":
87 cpuinfo[i].CPUFamily = field[1]
88 case "model":
89 cpuinfo[i].Model = field[1]
90 case "model name":
91 cpuinfo[i].ModelName = field[1]
92 case "stepping":
93 cpuinfo[i].Stepping = field[1]
94 case "microcode":
95 cpuinfo[i].Microcode = field[1]
96 case "cpu MHz":
97 v, err := strconv.ParseFloat(field[1], 64)
98 if err != nil {
99 return nil, err
100 }
101 cpuinfo[i].CPUMHz = v
102 case "cache size":
103 cpuinfo[i].CacheSize = field[1]
104 case "physical id":
105 cpuinfo[i].PhysicalID = field[1]
106 case "siblings":
107 v, err := strconv.ParseUint(field[1], 0, 32)
108 if err != nil {
109 return nil, err
110 }
111 cpuinfo[i].Siblings = uint(v)
112 case "core id":
113 cpuinfo[i].CoreID = field[1]
114 case "cpu cores":
115 v, err := strconv.ParseUint(field[1], 0, 32)
116 if err != nil {
117 return nil, err
118 }
119 cpuinfo[i].CPUCores = uint(v)
120 case "apicid":
121 cpuinfo[i].APICID = field[1]
122 case "initial apicid":
123 cpuinfo[i].InitialAPICID = field[1]
124 case "fpu":
125 cpuinfo[i].FPU = field[1]
126 case "fpu_exception":
127 cpuinfo[i].FPUException = field[1]
128 case "cpuid level":
129 v, err := strconv.ParseUint(field[1], 0, 32)
130 if err != nil {
131 return nil, err
132 }
133 cpuinfo[i].CPUIDLevel = uint(v)
134 case "wp":
135 cpuinfo[i].WP = field[1]
136 case "flags":
137 cpuinfo[i].Flags = strings.Fields(field[1])
138 case "bugs":
139 cpuinfo[i].Bugs = strings.Fields(field[1])
140 case "bogomips":
141 v, err := strconv.ParseFloat(field[1], 64)
142 if err != nil {
143 return nil, err
144 }
145 cpuinfo[i].BogoMips = v
146 case "clflush size":
147 v, err := strconv.ParseUint(field[1], 0, 32)
148 if err != nil {
149 return nil, err
150 }
151 cpuinfo[i].CLFlushSize = uint(v)
152 case "cache_alignment":
153 v, err := strconv.ParseUint(field[1], 0, 32)
154 if err != nil {
155 return nil, err
156 }
157 cpuinfo[i].CacheAlignment = uint(v)
158 case "address sizes":
159 cpuinfo[i].AddressSizes = field[1]
160 case "power management":
161 cpuinfo[i].PowerManagement = field[1]
162 }
163 }
164 return cpuinfo, nil
165
166}
diff --git a/vendor/github.com/prometheus/procfs/fixtures.ttar b/vendor/github.com/prometheus/procfs/fixtures.ttar
index 8591c27..0b29055 100644
--- a/vendor/github.com/prometheus/procfs/fixtures.ttar
+++ b/vendor/github.com/prometheus/procfs/fixtures.ttar
@@ -184,10 +184,10 @@ Lines: 53
184Name: prometheus 184Name: prometheus
185Umask: 0022 185Umask: 0022
186State: S (sleeping) 186State: S (sleeping)
187Tgid: 1 187Tgid: 26231
188Ngid: 0 188Ngid: 0
189Pid: 1 189Pid: 26231
190PPid: 0 190PPid: 1
191TracerPid: 0 191TracerPid: 0
192Uid: 0 0 0 0 192Uid: 0 0 0 0
193Gid: 0 0 0 0 193Gid: 0 0 0 0
@@ -333,6 +333,226 @@ Node 0, zone DMA32 759 572 791 475 194 45 12 0
333Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 0 333Node 0, zone Normal 4381 1093 185 1530 567 102 4 0 0 0 0
334Mode: 644 334Mode: 644
335# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 335# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
336Path: fixtures/proc/cpuinfo
337Lines: 216
338processor : 0
339vendor_id : GenuineIntel
340cpu family : 6
341model : 142
342model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
343stepping : 10
344microcode : 0xb4
345cpu MHz : 799.998
346cache size : 8192 KB
347physical id : 0
348siblings : 8
349core id : 0
350cpu cores : 4
351apicid : 0
352initial apicid : 0
353fpu : yes
354fpu_exception : yes
355cpuid level : 22
356wp : yes
357flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
358bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
359bogomips : 4224.00
360clflush size : 64
361cache_alignment : 64
362address sizes : 39 bits physical, 48 bits virtual
363power management:
364
365processor : 1
366vendor_id : GenuineIntel
367cpu family : 6
368model : 142
369model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
370stepping : 10
371microcode : 0xb4
372cpu MHz : 800.037
373cache size : 8192 KB
374physical id : 0
375siblings : 8
376core id : 1
377cpu cores : 4
378apicid : 2
379initial apicid : 2
380fpu : yes
381fpu_exception : yes
382cpuid level : 22
383wp : yes
384flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
385bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
386bogomips : 4224.00
387clflush size : 64
388cache_alignment : 64
389address sizes : 39 bits physical, 48 bits virtual
390power management:
391
392processor : 2
393vendor_id : GenuineIntel
394cpu family : 6
395model : 142
396model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
397stepping : 10
398microcode : 0xb4
399cpu MHz : 800.010
400cache size : 8192 KB
401physical id : 0
402siblings : 8
403core id : 2
404cpu cores : 4
405apicid : 4
406initial apicid : 4
407fpu : yes
408fpu_exception : yes
409cpuid level : 22
410wp : yes
411flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
412bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
413bogomips : 4224.00
414clflush size : 64
415cache_alignment : 64
416address sizes : 39 bits physical, 48 bits virtual
417power management:
418
419processor : 3
420vendor_id : GenuineIntel
421cpu family : 6
422model : 142
423model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
424stepping : 10
425microcode : 0xb4
426cpu MHz : 800.028
427cache size : 8192 KB
428physical id : 0
429siblings : 8
430core id : 3
431cpu cores : 4
432apicid : 6
433initial apicid : 6
434fpu : yes
435fpu_exception : yes
436cpuid level : 22
437wp : yes
438flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
439bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
440bogomips : 4224.00
441clflush size : 64
442cache_alignment : 64
443address sizes : 39 bits physical, 48 bits virtual
444power management:
445
446processor : 4
447vendor_id : GenuineIntel
448cpu family : 6
449model : 142
450model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
451stepping : 10
452microcode : 0xb4
453cpu MHz : 799.989
454cache size : 8192 KB
455physical id : 0
456siblings : 8
457core id : 0
458cpu cores : 4
459apicid : 1
460initial apicid : 1
461fpu : yes
462fpu_exception : yes
463cpuid level : 22
464wp : yes
465flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
466bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
467bogomips : 4224.00
468clflush size : 64
469cache_alignment : 64
470address sizes : 39 bits physical, 48 bits virtual
471power management:
472
473processor : 5
474vendor_id : GenuineIntel
475cpu family : 6
476model : 142
477model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
478stepping : 10
479microcode : 0xb4
480cpu MHz : 800.083
481cache size : 8192 KB
482physical id : 0
483siblings : 8
484core id : 1
485cpu cores : 4
486apicid : 3
487initial apicid : 3
488fpu : yes
489fpu_exception : yes
490cpuid level : 22
491wp : yes
492flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
493bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
494bogomips : 4224.00
495clflush size : 64
496cache_alignment : 64
497address sizes : 39 bits physical, 48 bits virtual
498power management:
499
500processor : 6
501vendor_id : GenuineIntel
502cpu family : 6
503model : 142
504model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
505stepping : 10
506microcode : 0xb4
507cpu MHz : 800.017
508cache size : 8192 KB
509physical id : 0
510siblings : 8
511core id : 2
512cpu cores : 4
513apicid : 5
514initial apicid : 5
515fpu : yes
516fpu_exception : yes
517cpuid level : 22
518wp : yes
519flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
520bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
521bogomips : 4224.00
522clflush size : 64
523cache_alignment : 64
524address sizes : 39 bits physical, 48 bits virtual
525power management:
526
527processor : 7
528vendor_id : GenuineIntel
529cpu family : 6
530model : 142
531model name : Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
532stepping : 10
533microcode : 0xb4
534cpu MHz : 800.030
535cache size : 8192 KB
536physical id : 0
537siblings : 8
538core id : 3
539cpu cores : 4
540apicid : 7
541initial apicid : 7
542fpu : yes
543fpu_exception : yes
544cpuid level : 22
545wp : yes
546flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d
547bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
548bogomips : 4224.00
549clflush size : 64
550cache_alignment : 64
551address sizes : 39 bits physical, 48 bits virtual
552power management:
553
554Mode: 444
555# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
336Path: fixtures/proc/crypto 556Path: fixtures/proc/crypto
337Lines: 971 557Lines: 971
338name : ccm(aes) 558name : ccm(aes)
@@ -2463,6 +2683,9 @@ Lines: 1
24630x20 26830x20
2464Mode: 644 2684Mode: 644
2465# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2685# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2686Path: fixtures/sys/class/net/eth0/device
2687SymlinkTo: ../../../devices/pci0000:00/0000:00:1f.6/
2688# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2466Path: fixtures/sys/class/net/eth0/dormant 2689Path: fixtures/sys/class/net/eth0/dormant
2467Lines: 1 2690Lines: 1
24681 26911
@@ -2547,230 +2770,419 @@ Mode: 644
2547Directory: fixtures/sys/class/power_supply 2770Directory: fixtures/sys/class/power_supply
2548Mode: 755 2771Mode: 755
2549# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2772# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2550Directory: fixtures/sys/class/power_supply/AC 2773Path: fixtures/sys/class/power_supply/AC
2774SymlinkTo: ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC
2775# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2776Path: fixtures/sys/class/power_supply/BAT0
2777SymlinkTo: ../../devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
2778# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2779Directory: fixtures/sys/class/thermal
2780Mode: 775
2781# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2782Directory: fixtures/sys/class/thermal/cooling_device0
2551Mode: 755 2783Mode: 755
2552# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2784# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2553Path: fixtures/sys/class/power_supply/AC/online 2785Path: fixtures/sys/class/thermal/cooling_device0/cur_state
2554Lines: 1 2786Lines: 1
25550 27870
2556Mode: 444 2788Mode: 644
2557# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2789# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2558Path: fixtures/sys/class/power_supply/AC/type 2790Path: fixtures/sys/class/thermal/cooling_device0/max_state
2559Lines: 1 2791Lines: 1
2560Mains 279250
2561Mode: 444 2793Mode: 644
2562# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2794# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2563Path: fixtures/sys/class/power_supply/AC/uevent 2795Path: fixtures/sys/class/thermal/cooling_device0/type
2564Lines: 2 2796Lines: 1
2565POWER_SUPPLY_NAME=AC 2797Processor
2566POWER_SUPPLY_ONLINE=0
2567Mode: 644 2798Mode: 644
2568# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2799# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2569Directory: fixtures/sys/class/power_supply/BAT0 2800Directory: fixtures/sys/class/thermal/cooling_device1
2570Mode: 755 2801Mode: 755
2571# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2802# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2572Path: fixtures/sys/class/power_supply/BAT0/alarm 2803Path: fixtures/sys/class/thermal/cooling_device1/cur_state
2573Lines: 1 2804Lines: 1
25742503000 2805-1
2575Mode: 644 2806Mode: 644
2576# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2807# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2577Path: fixtures/sys/class/power_supply/BAT0/capacity 2808Path: fixtures/sys/class/thermal/cooling_device1/max_state
2578Lines: 1 2809Lines: 1
257998 281027
2580Mode: 444 2811Mode: 644
2581# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2812# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2582Path: fixtures/sys/class/power_supply/BAT0/capacity_level 2813Path: fixtures/sys/class/thermal/cooling_device1/type
2583Lines: 1 2814Lines: 1
2584Normal 2815intel_powerclamp
2816Mode: 644
2817# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2818Directory: fixtures/sys/class/thermal/thermal_zone0
2819Mode: 775
2820# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2821Path: fixtures/sys/class/thermal/thermal_zone0/policy
2822Lines: 1
2823step_wise
2824Mode: 664
2825# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2826Path: fixtures/sys/class/thermal/thermal_zone0/temp
2827Lines: 1
282849925
2829Mode: 664
2830# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2831Path: fixtures/sys/class/thermal/thermal_zone0/type
2832Lines: 1
2833bcm2835_thermal
2834Mode: 664
2835# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2836Directory: fixtures/sys/class/thermal/thermal_zone1
2837Mode: 755
2838# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2839Path: fixtures/sys/class/thermal/thermal_zone1/mode
2840Lines: 1
2841enabled
2842Mode: 664
2843# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2844Path: fixtures/sys/class/thermal/thermal_zone1/passive
2845Lines: 1
28460
2847Mode: 664
2848# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2849Path: fixtures/sys/class/thermal/thermal_zone1/policy
2850Lines: 1
2851step_wise
2852Mode: 664
2853# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2854Path: fixtures/sys/class/thermal/thermal_zone1/temp
2855Lines: 1
285644000
2857Mode: 664
2858# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2859Path: fixtures/sys/class/thermal/thermal_zone1/type
2860Lines: 1
2861acpitz
2862Mode: 664
2863# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2864Directory: fixtures/sys/devices
2865Mode: 755
2866# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2867Directory: fixtures/sys/devices/LNXSYSTM:00
2868Mode: 755
2869# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2870Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00
2871Mode: 755
2872# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2873Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00
2874Mode: 755
2875# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2876Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00
2877Mode: 755
2878# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2879Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00
2880Mode: 755
2881# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2882Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00
2883Mode: 755
2884# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2885Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply
2886Mode: 755
2887# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2888Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC
2889Mode: 755
2890# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2891Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/device
2892SymlinkTo: ../../../ACPI0003:00
2893# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2894Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/online
2895Lines: 1
28960
2585Mode: 444 2897Mode: 444
2586# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2898# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2587Path: fixtures/sys/class/power_supply/BAT0/charge_start_threshold 2899Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power
2900Mode: 755
2901# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2902Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/async
2588Lines: 1 2903Lines: 1
258995 2904disabled
2905Mode: 644
2906# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2907Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/autosuspend_delay_ms
2908Lines: 0
2590Mode: 644 2909Mode: 644
2591# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2910# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2592Path: fixtures/sys/class/power_supply/BAT0/charge_stop_threshold 2911Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/control
2593Lines: 1 2912Lines: 1
2594100 2913auto
2595Mode: 644 2914Mode: 644
2596# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2915# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2597Path: fixtures/sys/class/power_supply/BAT0/cycle_count 2916Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/runtime_active_kids
2598Lines: 1 2917Lines: 1
25990 29180
2600Mode: 444 2919Mode: 444
2601# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2920# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2602Path: fixtures/sys/class/power_supply/BAT0/energy_full 2921Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/runtime_active_time
2603Lines: 1 2922Lines: 1
260450060000 29230
2605Mode: 444 2924Mode: 444
2606# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2925# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2607Path: fixtures/sys/class/power_supply/BAT0/energy_full_design 2926Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/runtime_enabled
2608Lines: 1 2927Lines: 1
260947520000 2928disabled
2610Mode: 444 2929Mode: 444
2611# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2930# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2612Path: fixtures/sys/class/power_supply/BAT0/energy_now 2931Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/runtime_status
2613Lines: 1 2932Lines: 1
261449450000 2933unsupported
2615Mode: 444 2934Mode: 444
2616# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2935# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2617Path: fixtures/sys/class/power_supply/BAT0/manufacturer 2936Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/runtime_suspended_time
2618Lines: 1 2937Lines: 1
2619LGC 29380
2620Mode: 444 2939Mode: 444
2621# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2940# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2622Path: fixtures/sys/class/power_supply/BAT0/model_name 2941Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/runtime_usage
2623Lines: 1 2942Lines: 1
2624LNV-45N1 29430
2625Mode: 444 2944Mode: 444
2626# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2945# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2627Path: fixtures/sys/class/power_supply/BAT0/power_now 2946Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup
2628Lines: 1 2947Lines: 1
26294830000 2948enabled
2949Mode: 644
2950# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2951Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_abort_count
2952Lines: 1
29530
2954Mode: 444
2955# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2956Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_active
2957Lines: 1
29580
2630Mode: 444 2959Mode: 444
2631# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2960# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2632Path: fixtures/sys/class/power_supply/BAT0/present 2961Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_active_count
2633Lines: 1 2962Lines: 1
26341 29631
2635Mode: 444 2964Mode: 444
2636# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2965# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2637Path: fixtures/sys/class/power_supply/BAT0/serial_number 2966Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_count
2638Lines: 1 2967Lines: 1
263938109 29680
2640Mode: 444 2969Mode: 444
2641# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2970# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2642Path: fixtures/sys/class/power_supply/BAT0/status 2971Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_expire_count
2643Lines: 1 2972Lines: 1
2644Discharging 29730
2645Mode: 444 2974Mode: 444
2646# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2975# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2647Path: fixtures/sys/class/power_supply/BAT0/technology 2976Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_last_time_ms
2648Lines: 1 2977Lines: 1
2649Li-ion 297810598
2650Mode: 444 2979Mode: 444
2651# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2980# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2652Path: fixtures/sys/class/power_supply/BAT0/type 2981Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_max_time_ms
2653Lines: 1 2982Lines: 1
2654Battery 29831
2655Mode: 444 2984Mode: 444
2656# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2985# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2657Path: fixtures/sys/class/power_supply/BAT0/uevent 2986Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_prevent_sleep_time_ms
2658Lines: 16 2987Lines: 1
2659POWER_SUPPLY_NAME=BAT0 29880
2660POWER_SUPPLY_STATUS=Discharging 2989Mode: 444
2661POWER_SUPPLY_PRESENT=1
2662POWER_SUPPLY_TECHNOLOGY=Li-ion
2663POWER_SUPPLY_CYCLE_COUNT=0
2664POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
2665POWER_SUPPLY_VOLTAGE_NOW=12229000
2666POWER_SUPPLY_POWER_NOW=4830000
2667POWER_SUPPLY_ENERGY_FULL_DESIGN=47520000
2668POWER_SUPPLY_ENERGY_FULL=50060000
2669POWER_SUPPLY_ENERGY_NOW=49450000
2670POWER_SUPPLY_CAPACITY=98
2671POWER_SUPPLY_CAPACITY_LEVEL=Normal
2672POWER_SUPPLY_MODEL_NAME=LNV-45N1
2673POWER_SUPPLY_MANUFACTURER=LGC
2674POWER_SUPPLY_SERIAL_NUMBER=38109
2675Mode: 644
2676# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2990# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2677Path: fixtures/sys/class/power_supply/BAT0/voltage_min_design 2991Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/power/wakeup_total_time_ms
2678Lines: 1 2992Lines: 1
267910800000 29931
2680Mode: 444 2994Mode: 444
2681# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2995# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2682Path: fixtures/sys/class/power_supply/BAT0/voltage_now 2996Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/subsystem
2997SymlinkTo: ../../../../../../../../../class/power_supply
2998# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2999Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/type
2683Lines: 1 3000Lines: 1
268412229000 3001Mains
2685Mode: 444 3002Mode: 444
2686# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3003# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2687Directory: fixtures/sys/class/thermal 3004Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/ACPI0003:00/power_supply/AC/uevent
2688Mode: 775 3005Lines: 2
3006POWER_SUPPLY_NAME=AC
3007POWER_SUPPLY_ONLINE=0
3008Mode: 644
2689# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3009# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2690Directory: fixtures/sys/class/thermal/cooling_device0 3010Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00
2691Mode: 755 3011Mode: 755
2692# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3012# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2693Path: fixtures/sys/class/thermal/cooling_device0/cur_state 3013Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply
3014Mode: 755
3015# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3016Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0
3017Mode: 755
3018# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3019Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/alarm
2694Lines: 1 3020Lines: 1
26950 30212369000
2696Mode: 644 3022Mode: 644
2697# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3023# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2698Path: fixtures/sys/class/thermal/cooling_device0/max_state 3024Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/capacity
2699Lines: 1 3025Lines: 1
270050 302698
3027Mode: 444
3028# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3029Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/capacity_level
3030Lines: 1
3031Normal
3032Mode: 444
3033# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3034Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_start_threshold
3035Lines: 1
303695
2701Mode: 644 3037Mode: 644
2702# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3038# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2703Path: fixtures/sys/class/thermal/cooling_device0/type 3039Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/charge_stop_threshold
2704Lines: 1 3040Lines: 1
2705Processor 3041100
2706Mode: 644 3042Mode: 644
2707# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3043# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2708Directory: fixtures/sys/class/thermal/cooling_device1 3044Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/cycle_count
3045Lines: 1
30460
3047Mode: 444
3048# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3049Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/device
3050SymlinkTo: ../../../PNP0C0A:00
3051# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3052Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/energy_full
3053Lines: 1
305450060000
3055Mode: 444
3056# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3057Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/energy_full_design
3058Lines: 1
305947520000
3060Mode: 444
3061# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3062Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/energy_now
3063Lines: 1
306449450000
3065Mode: 444
3066# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3067Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/manufacturer
3068Lines: 1
3069LGC
3070Mode: 444
3071# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3072Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/model_name
3073Lines: 1
3074LNV-45N1
3075Mode: 444
3076# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3077Directory: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power
2709Mode: 755 3078Mode: 755
2710# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3079# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2711Path: fixtures/sys/class/thermal/cooling_device1/cur_state 3080Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/async
2712Lines: 1 3081Lines: 1
2713-1 3082disabled
2714Mode: 644 3083Mode: 644
2715# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3084# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2716Path: fixtures/sys/class/thermal/cooling_device1/max_state 3085Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/autosuspend_delay_ms
2717Lines: 1 3086Lines: 0
271827
2719Mode: 644 3087Mode: 644
2720# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3088# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2721Path: fixtures/sys/class/thermal/cooling_device1/type 3089Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/control
2722Lines: 1 3090Lines: 1
2723intel_powerclamp 3091auto
2724Mode: 644 3092Mode: 644
2725# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3093# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2726Directory: fixtures/sys/class/thermal/thermal_zone0 3094Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/runtime_active_kids
2727Mode: 775
2728# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2729Path: fixtures/sys/class/thermal/thermal_zone0/policy
2730Lines: 1 3095Lines: 1
2731step_wise 30960
2732Mode: 664 3097Mode: 444
2733# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3098# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2734Path: fixtures/sys/class/thermal/thermal_zone0/temp 3099Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/runtime_active_time
2735Lines: 1 3100Lines: 1
273649925 31010
2737Mode: 664 3102Mode: 444
2738# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3103# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2739Path: fixtures/sys/class/thermal/thermal_zone0/type 3104Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/runtime_enabled
2740Lines: 1 3105Lines: 1
2741bcm2835_thermal 3106disabled
2742Mode: 664 3107Mode: 444
2743# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3108# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2744Directory: fixtures/sys/class/thermal/thermal_zone1 3109Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/runtime_status
2745Mode: 755 3110Lines: 1
3111unsupported
3112Mode: 444
2746# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3113# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2747Path: fixtures/sys/class/thermal/thermal_zone1/mode 3114Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/runtime_suspended_time
2748Lines: 1 3115Lines: 1
2749enabled 31160
2750Mode: 664 3117Mode: 444
2751# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3118# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2752Path: fixtures/sys/class/thermal/thermal_zone1/passive 3119Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power/runtime_usage
2753Lines: 1 3120Lines: 1
27540 31210
2755Mode: 664 3122Mode: 444
2756# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3123# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2757Path: fixtures/sys/class/thermal/thermal_zone1/policy 3124Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/power_now
2758Lines: 1 3125Lines: 1
2759step_wise 31264830000
2760Mode: 664 3127Mode: 444
2761# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3128# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2762Path: fixtures/sys/class/thermal/thermal_zone1/temp 3129Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/present
2763Lines: 1 3130Lines: 1
276444000 31311
2765Mode: 664 3132Mode: 444
2766# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3133# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2767Path: fixtures/sys/class/thermal/thermal_zone1/type 3134Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/serial_number
2768Lines: 1 3135Lines: 1
2769acpitz 313638109
2770Mode: 664 3137Mode: 444
2771# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3138# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2772Directory: fixtures/sys/devices 3139Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/status
2773Mode: 755 3140Lines: 1
3141Discharging
3142Mode: 444
3143# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3144Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/subsystem
3145SymlinkTo: ../../../../../../../../../class/power_supply
3146# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3147Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/technology
3148Lines: 1
3149Li-ion
3150Mode: 444
3151# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3152Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/type
3153Lines: 1
3154Battery
3155Mode: 444
3156# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3157Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/uevent
3158Lines: 16
3159POWER_SUPPLY_NAME=BAT0
3160POWER_SUPPLY_STATUS=Discharging
3161POWER_SUPPLY_PRESENT=1
3162POWER_SUPPLY_TECHNOLOGY=Li-ion
3163POWER_SUPPLY_CYCLE_COUNT=0
3164POWER_SUPPLY_VOLTAGE_MIN_DESIGN=10800000
3165POWER_SUPPLY_VOLTAGE_NOW=11750000
3166POWER_SUPPLY_POWER_NOW=5064000
3167POWER_SUPPLY_ENERGY_FULL_DESIGN=47520000
3168POWER_SUPPLY_ENERGY_FULL=47390000
3169POWER_SUPPLY_ENERGY_NOW=40730000
3170POWER_SUPPLY_CAPACITY=85
3171POWER_SUPPLY_CAPACITY_LEVEL=Normal
3172POWER_SUPPLY_MODEL_NAME=LNV-45N1
3173POWER_SUPPLY_MANUFACTURER=LGC
3174POWER_SUPPLY_SERIAL_NUMBER=38109
3175Mode: 644
3176# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3177Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/voltage_min_design
3178Lines: 1
317910800000
3180Mode: 444
3181# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3182Path: fixtures/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:00/PNP0C09:00/PNP0C0A:00/power_supply/BAT0/voltage_now
3183Lines: 1
318412229000
3185Mode: 444
2774# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3186# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2775Directory: fixtures/sys/devices/pci0000:00 3187Directory: fixtures/sys/devices/pci0000:00
2776Mode: 755 3188Mode: 755
@@ -3021,6 +3433,131 @@ Lines: 1
30210 34330
3022Mode: 644 3434Mode: 644
3023# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3435# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3436Directory: fixtures/sys/devices/pci0000:00/0000:00:1f.6
3437Mode: 755
3438# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3439Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/ari_enabled
3440Lines: 1
34410
3442Mode: 444
3443# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3444Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/broken_parity_status
3445Lines: 1
34460
3447Mode: 644
3448# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3449Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/class
3450Lines: 1
34510x020000
3452Mode: 444
3453# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3454Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/consistent_dma_mask_bits
3455Lines: 1
345664
3457Mode: 444
3458# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3459Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/d3cold_allowed
3460Lines: 1
34611
3462Mode: 644
3463# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3464Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/device
3465Lines: 1
34660x15d7
3467Mode: 444
3468# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3469Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/dma_mask_bits
3470Lines: 1
347164
3472Mode: 444
3473# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3474Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/driver_override
3475Lines: 1
3476(null)
3477Mode: 644
3478# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3479Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/enable
3480Lines: 1
34811
3482Mode: 644
3483# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3484Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/irq
3485Lines: 1
3486140
3487Mode: 444
3488# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3489Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/local_cpulist
3490Lines: 1
34910-7
3492Mode: 444
3493# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3494Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/local_cpus
3495Lines: 1
3496ff
3497Mode: 444
3498# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3499Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/modalias
3500Lines: 1
3501pci:v00008086d000015D7sv000017AAsd0000225Abc02sc00i00
3502Mode: 444
3503# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3504Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/msi_bus
3505Lines: 1
35061
3507Mode: 644
3508# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3509Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/numa_node
3510Lines: 1
3511-1
3512Mode: 644
3513# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3514Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/resource
3515Lines: 13
35160x00000000ec200000 0x00000000ec21ffff 0x0000000000040200
35170x0000000000000000 0x0000000000000000 0x0000000000000000
35180x0000000000000000 0x0000000000000000 0x0000000000000000
35190x0000000000000000 0x0000000000000000 0x0000000000000000
35200x0000000000000000 0x0000000000000000 0x0000000000000000
35210x0000000000000000 0x0000000000000000 0x0000000000000000
35220x0000000000000000 0x0000000000000000 0x0000000000000000
35230x0000000000000000 0x0000000000000000 0x0000000000000000
35240x0000000000000000 0x0000000000000000 0x0000000000000000
35250x0000000000000000 0x0000000000000000 0x0000000000000000
35260x0000000000000000 0x0000000000000000 0x0000000000000000
35270x0000000000000000 0x0000000000000000 0x0000000000000000
35280x0000000000000000 0x0000000000000000 0x0000000000000000
3529Mode: 444
3530# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3531Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/revision
3532Lines: 1
35330x21
3534Mode: 444
3535# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3536Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/subsystem_device
3537Lines: 1
35380x225a
3539Mode: 444
3540# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3541Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/subsystem_vendor
3542Lines: 1
35430x17aa
3544Mode: 444
3545# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3546Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/uevent
3547Lines: 6
3548DRIVER=e1000e
3549PCI_CLASS=20000
3550PCI_ID=8086:15D7
3551PCI_SUBSYS_ID=17AA:225A
3552PCI_SLOT_NAME=0000:00:1f.6
3553MODALIAS=pci:v00008086d000015D7sv000017AAsd0000225Abc02sc00i00
3554Mode: 644
3555# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3556Path: fixtures/sys/devices/pci0000:00/0000:00:1f.6/vendor
3557Lines: 1
35580x8086
3559Mode: 444
3560# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3024Directory: fixtures/sys/devices/rbd 3561Directory: fixtures/sys/devices/rbd
3025Mode: 755 3562Mode: 755
3026# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3563# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -3078,6 +3615,52 @@ Mode: 775
3078Path: fixtures/sys/devices/system/cpu/cpu0/cpufreq 3615Path: fixtures/sys/devices/system/cpu/cpu0/cpufreq
3079SymlinkTo: ../cpufreq/policy0 3616SymlinkTo: ../cpufreq/policy0
3080# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3617# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3618Directory: fixtures/sys/devices/system/cpu/cpu0/thermal_throttle
3619Mode: 755
3620# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3621Path: fixtures/sys/devices/system/cpu/cpu0/thermal_throttle/core_throttle_count
3622Lines: 1
362310084
3624Mode: 444
3625# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3626Path: fixtures/sys/devices/system/cpu/cpu0/thermal_throttle/package_throttle_count
3627Lines: 1
362834818
3629Mode: 444
3630# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3631Directory: fixtures/sys/devices/system/cpu/cpu0/topology
3632Mode: 755
3633# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3634Path: fixtures/sys/devices/system/cpu/cpu0/topology/core_id
3635Lines: 1
36360
3637Mode: 444
3638# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3639Path: fixtures/sys/devices/system/cpu/cpu0/topology/core_siblings
3640Lines: 1
3641ff
3642Mode: 444
3643# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3644Path: fixtures/sys/devices/system/cpu/cpu0/topology/core_siblings_list
3645Lines: 1
36460-7
3647Mode: 444
3648# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3649Path: fixtures/sys/devices/system/cpu/cpu0/topology/physical_package_id
3650Lines: 1
36510
3652Mode: 444
3653# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3654Path: fixtures/sys/devices/system/cpu/cpu0/topology/thread_siblings
3655Lines: 1
365611
3657Mode: 444
3658# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3659Path: fixtures/sys/devices/system/cpu/cpu0/topology/thread_siblings_list
3660Lines: 1
36610,4
3662Mode: 444
3663# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3081Directory: fixtures/sys/devices/system/cpu/cpu1 3664Directory: fixtures/sys/devices/system/cpu/cpu1
3082Mode: 775 3665Mode: 775
3083# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3666# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -3139,6 +3722,52 @@ Lines: 1
3139<unsupported> 3722<unsupported>
3140Mode: 664 3723Mode: 664
3141# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3724# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3725Directory: fixtures/sys/devices/system/cpu/cpu1/thermal_throttle
3726Mode: 755
3727# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3728Path: fixtures/sys/devices/system/cpu/cpu1/thermal_throttle/core_throttle_count
3729Lines: 1
3730523
3731Mode: 444
3732# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3733Path: fixtures/sys/devices/system/cpu/cpu1/thermal_throttle/package_throttle_count
3734Lines: 1
373534818
3736Mode: 444
3737# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3738Directory: fixtures/sys/devices/system/cpu/cpu1/topology
3739Mode: 755
3740# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3741Path: fixtures/sys/devices/system/cpu/cpu1/topology/core_id
3742Lines: 1
37431
3744Mode: 444
3745# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3746Path: fixtures/sys/devices/system/cpu/cpu1/topology/core_siblings
3747Lines: 1
3748ff
3749Mode: 444
3750# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3751Path: fixtures/sys/devices/system/cpu/cpu1/topology/core_siblings_list
3752Lines: 1
37530-7
3754Mode: 444
3755# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3756Path: fixtures/sys/devices/system/cpu/cpu1/topology/physical_package_id
3757Lines: 1
37580
3759Mode: 444
3760# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3761Path: fixtures/sys/devices/system/cpu/cpu1/topology/thread_siblings
3762Lines: 1
376322
3764Mode: 444
3765# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3766Path: fixtures/sys/devices/system/cpu/cpu1/topology/thread_siblings_list
3767Lines: 1
37681,5
3769Mode: 444
3770# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
3142Directory: fixtures/sys/devices/system/cpu/cpufreq 3771Directory: fixtures/sys/devices/system/cpu/cpufreq
3143Mode: 775 3772Mode: 775
3144# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 3773# ttar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
diff --git a/vendor/github.com/prometheus/procfs/proc_status.go b/vendor/github.com/prometheus/procfs/proc_status.go
index 6b4b61f..ad290fa 100644
--- a/vendor/github.com/prometheus/procfs/proc_status.go
+++ b/vendor/github.com/prometheus/procfs/proc_status.go
@@ -21,7 +21,7 @@ import (
21 "strings" 21 "strings"
22) 22)
23 23
24// ProcStat provides status information about the process, 24// ProcStatus provides status information about the process,
25// read from /proc/[pid]/stat. 25// read from /proc/[pid]/stat.
26type ProcStatus struct { 26type ProcStatus struct {
27 // The process ID. 27 // The process ID.
@@ -29,6 +29,9 @@ type ProcStatus struct {
29 // The process name. 29 // The process name.
30 Name string 30 Name string
31 31
32 // Thread group ID.
33 TGID int
34
32 // Peak virtual memory size. 35 // Peak virtual memory size.
33 VmPeak uint64 36 VmPeak uint64
34 // Virtual memory size. 37 // Virtual memory size.
@@ -113,6 +116,8 @@ func (p Proc) NewStatus() (ProcStatus, error) {
113 116
114func (s *ProcStatus) fillStatus(k string, vString string, vUint uint64, vUintBytes uint64) { 117func (s *ProcStatus) fillStatus(k string, vString string, vUint uint64, vUintBytes uint64) {
115 switch k { 118 switch k {
119 case "Tgid":
120 s.TGID = int(vUint)
116 case "Name": 121 case "Name":
117 s.Name = vString 122 s.Name = vString
118 case "VmPeak": 123 case "VmPeak":
diff --git a/vendor/github.com/prometheus/procfs/schedstat.go b/vendor/github.com/prometheus/procfs/schedstat.go
index 98221e3..a4c4089 100644
--- a/vendor/github.com/prometheus/procfs/schedstat.go
+++ b/vendor/github.com/prometheus/procfs/schedstat.go
@@ -26,7 +26,7 @@ var (
26 procLineRE = regexp.MustCompile(`(\d+) (\d+) (\d+)`) 26 procLineRE = regexp.MustCompile(`(\d+) (\d+) (\d+)`)
27) 27)
28 28
29// Schedstat contains scheduler statistics from /proc/schedstats 29// Schedstat contains scheduler statistics from /proc/schedstat
30// 30//
31// See 31// See
32// https://www.kernel.org/doc/Documentation/scheduler/sched-stats.txt 32// https://www.kernel.org/doc/Documentation/scheduler/sched-stats.txt
@@ -36,7 +36,6 @@ var (
36// jiffies when they are actually in nanoseconds since 2.6.23 with the 36// jiffies when they are actually in nanoseconds since 2.6.23 with the
37// introduction of CFS. A fix to the documentation is pending. See 37// introduction of CFS. A fix to the documentation is pending. See
38// https://lore.kernel.org/patchwork/project/lkml/list/?series=403473 38// https://lore.kernel.org/patchwork/project/lkml/list/?series=403473
39
40type Schedstat struct { 39type Schedstat struct {
41 CPUs []*SchedstatCPU 40 CPUs []*SchedstatCPU
42} 41}
@@ -57,6 +56,7 @@ type ProcSchedstat struct {
57 RunTimeslices uint64 56 RunTimeslices uint64
58} 57}
59 58
59// Schedstat reads data from /proc/schedstat
60func (fs FS) Schedstat() (*Schedstat, error) { 60func (fs FS) Schedstat() (*Schedstat, error) {
61 file, err := os.Open(fs.proc.Path("schedstat")) 61 file, err := os.Open(fs.proc.Path("schedstat"))
62 if err != nil { 62 if err != nil {
diff --git a/vendor/github.com/prometheus/procfs/sysfs/class_infiniband.go b/vendor/github.com/prometheus/procfs/sysfs/class_infiniband.go
index e81cb85..9156474 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/class_infiniband.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/class_infiniband.go
@@ -244,13 +244,16 @@ func parseInfiniBandCounters(portPath string) (*InfiniBandCounters, error) {
244 } 244 }
245 245
246 for _, f := range files { 246 for _, f := range files {
247 if f.IsDir() { 247 if !f.Mode().IsRegular() {
248 continue 248 continue
249 } 249 }
250 250
251 name := filepath.Join(path, f.Name()) 251 name := filepath.Join(path, f.Name())
252 value, err := util.SysReadFile(name) 252 value, err := util.SysReadFile(name)
253 if err != nil { 253 if err != nil {
254 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" {
255 continue
256 }
254 return nil, fmt.Errorf("failed to read file %q: %v", name, err) 257 return nil, fmt.Errorf("failed to read file %q: %v", name, err)
255 } 258 }
256 259
@@ -324,13 +327,16 @@ func parseInfiniBandCounters(portPath string) (*InfiniBandCounters, error) {
324 } 327 }
325 328
326 for _, f := range files { 329 for _, f := range files {
327 if f.IsDir() { 330 if !f.Mode().IsRegular() {
328 continue 331 continue
329 } 332 }
330 333
331 name := filepath.Join(path, f.Name()) 334 name := filepath.Join(path, f.Name())
332 value, err := util.SysReadFile(name) 335 value, err := util.SysReadFile(name)
333 if err != nil { 336 if err != nil {
337 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" {
338 continue
339 }
334 return nil, fmt.Errorf("failed to read file %q: %v", name, err) 340 return nil, fmt.Errorf("failed to read file %q: %v", name, err)
335 } 341 }
336 342
diff --git a/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go b/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go
index 3fe7dd4..d12e913 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/class_power_supply.go
@@ -18,6 +18,7 @@ package sysfs
18import ( 18import (
19 "fmt" 19 "fmt"
20 "io/ioutil" 20 "io/ioutil"
21 "os"
21 "path/filepath" 22 "path/filepath"
22 23
23 "github.com/prometheus/procfs/internal/util" 24 "github.com/prometheus/procfs/internal/util"
@@ -134,13 +135,16 @@ func parsePowerSupply(path string) (*PowerSupply, error) {
134 135
135 var ps PowerSupply 136 var ps PowerSupply
136 for _, f := range files { 137 for _, f := range files {
137 if f.IsDir() { 138 if !f.Mode().IsRegular() {
138 continue 139 continue
139 } 140 }
140 141
141 name := filepath.Join(path, f.Name()) 142 name := filepath.Join(path, f.Name())
142 value, err := util.SysReadFile(name) 143 value, err := util.SysReadFile(name)
143 if err != nil { 144 if err != nil {
145 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" {
146 continue
147 }
144 return nil, fmt.Errorf("failed to read file %q: %v", name, err) 148 return nil, fmt.Errorf("failed to read file %q: %v", name, err)
145 } 149 }
146 150
diff --git a/vendor/github.com/prometheus/procfs/sysfs/net_class.go b/vendor/github.com/prometheus/procfs/sysfs/net_class.go
index d5c0d6a..9aa6b57 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/net_class.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/net_class.go
@@ -18,6 +18,7 @@ package sysfs
18import ( 18import (
19 "fmt" 19 "fmt"
20 "io/ioutil" 20 "io/ioutil"
21 "os"
21 "path/filepath" 22 "path/filepath"
22 23
23 "github.com/prometheus/procfs/internal/util" 24 "github.com/prometheus/procfs/internal/util"
@@ -112,12 +113,15 @@ func (nc NetClass) parseNetClassIface(devicePath string) (*NetClassIface, error)
112 } 113 }
113 114
114 for _, f := range files { 115 for _, f := range files {
115 if f.IsDir() { 116 if !f.Mode().IsRegular() {
116 continue 117 continue
117 } 118 }
118 name := filepath.Join(devicePath, f.Name()) 119 name := filepath.Join(devicePath, f.Name())
119 value, err := util.SysReadFile(name) 120 value, err := util.SysReadFile(name)
120 if err != nil { 121 if err != nil {
122 if os.IsNotExist(err) || err.Error() == "operation not supported" || err.Error() == "invalid argument" {
123 continue
124 }
121 return nil, fmt.Errorf("failed to read file %q: %v", name, err) 125 return nil, fmt.Errorf("failed to read file %q: %v", name, err)
122 } 126 }
123 vp := util.NewValueParser(value) 127 vp := util.NewValueParser(value)
diff --git a/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go b/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
index 001039c..ddb9ebf 100644
--- a/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
+++ b/vendor/github.com/prometheus/procfs/sysfs/system_cpu.go
@@ -25,6 +25,28 @@ import (
25 "github.com/prometheus/procfs/internal/util" 25 "github.com/prometheus/procfs/internal/util"
26) 26)
27 27
28// CPU represents a path to a CPU located in /sys/devices/system/cpu/cpu[0-9]*
29type CPU string
30
31// Number returns the ID number of the given CPU
32func (c CPU) Number() string {
33 return strings.TrimPrefix(filepath.Base(string(c)), "cpu")
34}
35
36// CPUTopology contains data located in /sys/devices/system/cpu/cpu[0-9]*/topology
37type CPUTopology struct {
38 CoreID string
39 CoreSiblingsList string
40 PhysicalPackageID string
41 ThreadSiblingsList string
42}
43
44// CPUThermalThrottle contains data from /sys/devices/system/cpu/cpu[0-9]*/thermal_throttle
45type CPUThermalThrottle struct {
46 CoreThrottleCount uint64
47 PackageThrottleCount uint64
48}
49
28// SystemCPUCpufreqStats contains stats from devices/system/cpu/cpu[0-9]*/cpufreq/... 50// SystemCPUCpufreqStats contains stats from devices/system/cpu/cpu[0-9]*/cpufreq/...
29type SystemCPUCpufreqStats struct { 51type SystemCPUCpufreqStats struct {
30 Name string 52 Name string
@@ -42,9 +64,80 @@ type SystemCPUCpufreqStats struct {
42 SetSpeed string 64 SetSpeed string
43} 65}
44 66
45// TODO: Add topology support. 67// CPUs returns a slice of all CPUs in /sys/devices/system/cpu
68func (fs FS) CPUs() ([]CPU, error) {
69 cpuPaths, err := filepath.Glob(fs.sys.Path("devices/system/cpu/cpu[0-9]*"))
70 if err != nil {
71 return nil, err
72 }
73 cpus := make([]CPU, len(cpuPaths))
74 for i, cpu := range cpuPaths {
75 cpus[i] = CPU(cpu)
76 }
77 return cpus, nil
78}
46 79
47// TODO: Add thermal_throttle support. 80// Topology gets the topology information for a single CPU from /sys/devices/system/cpu/cpuN/topology
81func (c CPU) Topology() (*CPUTopology, error) {
82 cpuTopologyPath := filepath.Join(string(c), "topology")
83 if _, err := os.Stat(cpuTopologyPath); err != nil {
84 return nil, err
85 }
86 t, err := parseCPUTopology(cpuTopologyPath)
87 if err != nil {
88 return nil, err
89 }
90 return t, nil
91}
92
93func parseCPUTopology(cpuPath string) (*CPUTopology, error) {
94 t := CPUTopology{}
95 var err error
96 t.CoreID, err = util.SysReadFile(filepath.Join(cpuPath, "core_id"))
97 if err != nil {
98 return nil, err
99 }
100 t.PhysicalPackageID, err = util.SysReadFile(filepath.Join(cpuPath, "physical_package_id"))
101 if err != nil {
102 return nil, err
103 }
104 t.CoreSiblingsList, err = util.SysReadFile(filepath.Join(cpuPath, "core_siblings_list"))
105 if err != nil {
106 return nil, err
107 }
108 t.ThreadSiblingsList, err = util.SysReadFile(filepath.Join(cpuPath, "thread_siblings_list"))
109 if err != nil {
110 return nil, err
111 }
112 return &t, nil
113}
114
115// ThermalThrottle gets the cpu throttle count information for a single CPU from /sys/devices/system/cpu/cpuN/thermal_throttle
116func (c CPU) ThermalThrottle() (*CPUThermalThrottle, error) {
117 cpuPath := filepath.Join(string(c), "thermal_throttle")
118 if _, err := os.Stat(cpuPath); err != nil {
119 return nil, err
120 }
121 t, err := parseCPUThermalThrottle(cpuPath)
122 if err != nil {
123 return nil, err
124 }
125 return t, nil
126}
127
128func parseCPUThermalThrottle(cpuPath string) (*CPUThermalThrottle, error) {
129 t := CPUThermalThrottle{}
130 var err error
131 t.PackageThrottleCount, err = util.ReadUintFromFile(filepath.Join(cpuPath, "package_throttle_count"))
132 if err != nil {
133 return nil, err
134 }
135 t.CoreThrottleCount, err = util.ReadUintFromFile(filepath.Join(cpuPath, "core_throttle_count"))
136 if err != nil {
137 return nil, err
138 }
139 return &t, nil
140}
48 141
49// SystemCpufreq returns CPU frequency metrics for all CPUs. 142// SystemCpufreq returns CPU frequency metrics for all CPUs.
50func (fs FS) SystemCpufreq() ([]SystemCPUCpufreqStats, error) { 143func (fs FS) SystemCpufreq() ([]SystemCPUCpufreqStats, error) {
diff --git a/vendor/modules.txt b/vendor/modules.txt
index df588fb..4d377cc 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -45,7 +45,7 @@ github.com/prometheus/common/version
45github.com/prometheus/common/expfmt 45github.com/prometheus/common/expfmt
46github.com/prometheus/common/model 46github.com/prometheus/common/model
47github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg 47github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg
48# github.com/prometheus/procfs v0.0.4 48# github.com/prometheus/procfs v0.0.5
49github.com/prometheus/procfs 49github.com/prometheus/procfs
50github.com/prometheus/procfs/bcache 50github.com/prometheus/procfs/bcache
51github.com/prometheus/procfs/nfs 51github.com/prometheus/procfs/nfs