1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-17 00:07:37 +02:00

add test fixtures and tests

This commit is contained in:
Kelly Brazil
2022-09-23 16:58:34 -07:00
parent 45fae976f0
commit 00afd79858
73 changed files with 9871 additions and 0 deletions

1
tests/fixtures/linux-proc/consoles vendored Normal file
View File

@ -0,0 +1 @@
tty0 -WU (EC p ) 4:1

View File

@ -0,0 +1 @@
[{"device":"tty0","operations":"-WU","operations_list":["write","unblank"],"flags":"EC p ","flags_list":["enabled","preferred","printk buffer"],"major":4,"minor":1}]

2
tests/fixtures/linux-proc/consoles2 vendored Normal file
View File

@ -0,0 +1,2 @@
tty0 -WU (ECp) 4:7
ttyS0 -W- (Ep) 4:64

View File

@ -0,0 +1 @@
[{"device":"tty0","operations":"-WU","operations_list":["write","unblank"],"flags":"ECp","flags_list":["enabled","preferred","printk buffer"],"major":4,"minor":7},{"device":"ttyS0","operations":"-W-","operations_list":["write"],"flags":"Ep","flags_list":["enabled","printk buffer"],"major":4,"minor":64}]

24
tests/fixtures/linux-proc/cpuinfo vendored Normal file
View File

@ -0,0 +1,24 @@
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
stepping : 9
cpu MHz : 2303.998
cache size : 4096 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc eagerfpu pni pclmulqdq monitor ssse3 cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt aes xsave avx rdrand hypervisor lahf_lm abm 3dnowprefetch fsgsbase avx2 invpcid rdseed clflushopt md_clear flush_l1d
bogomips : 4607.99
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

View File

@ -0,0 +1 @@
[{"processor":0,"vendor_id":"GenuineIntel","cpu family":6,"model":142,"model name":"Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz","stepping":9,"cpu MHz":2303.998,"cache size":"4096 KB","physical id":0,"siblings":1,"core id":0,"cpu cores":1,"apicid":0,"initial apicid":0,"fpu":true,"fpu_exception":true,"cpuid level":22,"wp":true,"flags":["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","mmx","fxsr","sse","sse2","ht","syscall","nx","rdtscp","lm","constant_tsc","rep_good","nopl","xtopology","nonstop_tsc","eagerfpu","pni","pclmulqdq","monitor","ssse3","cx16","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","aes","xsave","avx","rdrand","hypervisor","lahf_lm","abm","3dnowprefetch","fsgsbase","avx2","invpcid","rdseed","clflushopt","md_clear","flush_l1d"],"bogomips":4607.99,"clflush size":64,"cache_alignment":64,"address sizes":"39 bits physical, 48 bits virtual","power management":null,"address_size_physical":39,"address_size_virtual":48,"cache_size_num":4096,"cache_size_unit":"KB"}]

53
tests/fixtures/linux-proc/cpuinfo2 vendored Normal file
View File

@ -0,0 +1,53 @@
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
stepping : 10
cpu MHz : 2400.000
cache size : 6144 KB
physical id : 0
siblings : 1
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat md_clear flush_l1d arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 45 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 142
model name : Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
stepping : 10
cpu MHz : 2400.000
cache size : 6144 KB
physical id : 2
siblings : 1
core id : 0
cpu cores : 1
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 22
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon nopl xtopology tsc_reliable nonstop_tsc cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch cpuid_fault invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 avx2 smep bmi2 invpcid rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves arat md_clear flush_l1d arch_capabilities
bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs itlb_multihit srbds
bogomips : 4800.00
clflush size : 64
cache_alignment : 64
address sizes : 45 bits physical, 48 bits virtual
power management:

View File

@ -0,0 +1 @@
[{"processor":0,"vendor_id":"GenuineIntel","cpu family":6,"model":142,"model name":"Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz","stepping":10,"cpu MHz":2400.0,"cache size":"6144 KB","physical id":0,"siblings":1,"core id":0,"cpu cores":1,"apicid":0,"initial apicid":0,"fpu":true,"fpu_exception":true,"cpuid level":22,"wp":true,"flags":["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","mmx","fxsr","sse","sse2","ss","syscall","nx","pdpe1gb","rdtscp","lm","constant_tsc","arch_perfmon","nopl","xtopology","tsc_reliable","nonstop_tsc","cpuid","pni","pclmulqdq","ssse3","fma","cx16","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","tsc_deadline_timer","aes","xsave","avx","f16c","rdrand","hypervisor","lahf_lm","abm","3dnowprefetch","cpuid_fault","invpcid_single","pti","ssbd","ibrs","ibpb","stibp","fsgsbase","tsc_adjust","bmi1","avx2","smep","bmi2","invpcid","rdseed","adx","smap","clflushopt","xsaveopt","xsavec","xgetbv1","xsaves","arat","md_clear","flush_l1d","arch_capabilities"],"bugs":["cpu_meltdown","spectre_v1","spectre_v2","spec_store_bypass","l1tf","mds","swapgs","itlb_multihit","srbds"],"bogomips":4800.0,"clflush size":64,"cache_alignment":64,"address sizes":"45 bits physical, 48 bits virtual","power management":null,"address_size_physical":45,"address_size_virtual":48,"cache_size_num":6144,"cache_size_unit":"KB"},{"processor":1,"vendor_id":"GenuineIntel","cpu family":6,"model":142,"model name":"Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz","stepping":10,"cpu MHz":2400.0,"cache size":"6144 KB","physical id":2,"siblings":1,"core id":0,"cpu cores":1,"apicid":2,"initial apicid":2,"fpu":true,"fpu_exception":true,"cpuid level":22,"wp":true,"flags":["fpu","vme","de","pse","tsc","msr","pae","mce","cx8","apic","sep","mtrr","pge","mca","cmov","pat","pse36","clflush","mmx","fxsr","sse","sse2","ss","syscall","nx","pdpe1gb","rdtscp","lm","constant_tsc","arch_perfmon","nopl","xtopology","tsc_reliable","nonstop_tsc","cpuid","pni","pclmulqdq","ssse3","fma","cx16","pcid","sse4_1","sse4_2","x2apic","movbe","popcnt","tsc_deadline_timer","aes","xsave","avx","f16c","rdrand","hypervisor","lahf_lm","abm","3dnowprefetch","cpuid_fault","invpcid_single","pti","ssbd","ibrs","ibpb","stibp","fsgsbase","tsc_adjust","bmi1","avx2","smep","bmi2","invpcid","rdseed","adx","smap","clflushopt","xsaveopt","xsavec","xgetbv1","xsaves","arat","md_clear","flush_l1d","arch_capabilities"],"bugs":["cpu_meltdown","spectre_v1","spectre_v2","spec_store_bypass","l1tf","mds","swapgs","itlb_multihit","srbds"],"bogomips":4800.0,"clflush size":64,"cache_alignment":64,"address sizes":"45 bits physical, 48 bits virtual","power management":null,"address_size_physical":45,"address_size_virtual":48,"cache_size_num":6144,"cache_size_unit":"KB"}]

806
tests/fixtures/linux-proc/crypto vendored Normal file
View File

@ -0,0 +1,806 @@
name : ecdh
driver : ecdh-generic
module : ecdh_generic
priority : 100
refcnt : 1
selftest : passed
internal : no
type : kpp
name : blake2b-512
driver : blake2b-512-generic
module : blake2b_generic
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 128
digestsize : 64
name : blake2b-384
driver : blake2b-384-generic
module : blake2b_generic
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 128
digestsize : 48
name : blake2b-256
driver : blake2b-256-generic
module : blake2b_generic
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 128
digestsize : 32
name : blake2b-160
driver : blake2b-160-generic
module : blake2b_generic
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 128
digestsize : 20
name : crct10dif
driver : crct10dif-pclmul
module : crct10dif_pclmul
priority : 200
refcnt : 2
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 2
name : crc32
driver : crc32-pclmul
module : crc32_pclmul
priority : 200
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 4
name : ghash
driver : ghash-clmulni
module : ghash_clmulni_intel
priority : 400
refcnt : 1
selftest : passed
internal : no
type : ahash
async : yes
blocksize : 16
digestsize : 16
name : __ghash
driver : __ghash-pclmulqdqni
module : ghash_clmulni_intel
priority : 0
refcnt : 1
selftest : passed
internal : yes
type : shash
blocksize : 16
digestsize : 16
name : gcm(aes)
driver : generic-gcm-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 12
maxauthsize : 16
geniv : <none>
name : rfc4106(gcm(aes))
driver : rfc4106-gcm-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : no
type : aead
async : yes
blocksize : 1
ivsize : 8
maxauthsize : 16
geniv : <none>
name : __gcm(aes)
driver : __generic-gcm-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : yes
type : aead
async : no
blocksize : 1
ivsize : 12
maxauthsize : 16
geniv : <none>
name : __rfc4106(gcm(aes))
driver : __rfc4106-gcm-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : yes
type : aead
async : no
blocksize : 1
ivsize : 8
maxauthsize : 16
geniv : <none>
name : xts(aes)
driver : xts-aes-aesni
module : aesni_intel
priority : 401
refcnt : 1
selftest : passed
internal : no
type : skcipher
async : yes
blocksize : 16
min keysize : 32
max keysize : 64
ivsize : 16
chunksize : 16
walksize : 16
name : ctr(aes)
driver : ctr-aes-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : no
type : skcipher
async : yes
blocksize : 1
min keysize : 16
max keysize : 32
ivsize : 16
chunksize : 16
walksize : 16
name : cbc(aes)
driver : cbc-aes-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : no
type : skcipher
async : yes
blocksize : 16
min keysize : 16
max keysize : 32
ivsize : 16
chunksize : 16
walksize : 16
name : ecb(aes)
driver : ecb-aes-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : no
type : skcipher
async : yes
blocksize : 16
min keysize : 16
max keysize : 32
ivsize : 0
chunksize : 16
walksize : 16
name : __xts(aes)
driver : __xts-aes-aesni
module : aesni_intel
priority : 401
refcnt : 1
selftest : passed
internal : yes
type : skcipher
async : no
blocksize : 16
min keysize : 32
max keysize : 64
ivsize : 16
chunksize : 16
walksize : 16
name : __ctr(aes)
driver : __ctr-aes-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : yes
type : skcipher
async : no
blocksize : 1
min keysize : 16
max keysize : 32
ivsize : 16
chunksize : 16
walksize : 16
name : __cbc(aes)
driver : __cbc-aes-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : yes
type : skcipher
async : no
blocksize : 16
min keysize : 16
max keysize : 32
ivsize : 16
chunksize : 16
walksize : 16
name : __ecb(aes)
driver : __ecb-aes-aesni
module : aesni_intel
priority : 400
refcnt : 1
selftest : passed
internal : yes
type : skcipher
async : no
blocksize : 16
min keysize : 16
max keysize : 32
ivsize : 0
chunksize : 16
walksize : 16
name : aes
driver : aes-aesni
module : aesni_intel
priority : 300
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32
name : pkcs1pad(rsa,sha512)
driver : pkcs1pad(rsa-generic,sha512)
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : akcipher
name : hmac(sha256)
driver : hmac(sha256-generic)
module : kernel
priority : 100
refcnt : 129
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 32
name : hmac(sha1)
driver : hmac(sha1-generic)
module : kernel
priority : 100
refcnt : 129
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 20
name : jitterentropy_rng
driver : jitterentropy_rng
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : crc32c
driver : crc32c-intel
module : kernel
priority : 200
refcnt : 6
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 4
name : ghash
driver : ghash-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 16
digestsize : 16
name : stdrng
driver : drbg_nopr_hmac_sha256
module : kernel
priority : 221
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_hmac_sha512
module : kernel
priority : 220
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_hmac_sha384
module : kernel
priority : 219
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_hmac_sha1
module : kernel
priority : 218
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_sha256
module : kernel
priority : 217
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_sha512
module : kernel
priority : 216
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_sha384
module : kernel
priority : 215
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_sha1
module : kernel
priority : 214
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_ctr_aes256
module : kernel
priority : 213
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_ctr_aes192
module : kernel
priority : 212
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_nopr_ctr_aes128
module : kernel
priority : 211
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_hmac_sha256
module : kernel
priority : 210
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_hmac_sha512
module : kernel
priority : 209
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_hmac_sha384
module : kernel
priority : 208
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_hmac_sha1
module : kernel
priority : 207
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_sha256
module : kernel
priority : 206
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_sha512
module : kernel
priority : 205
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_sha384
module : kernel
priority : 204
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_sha1
module : kernel
priority : 203
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_ctr_aes256
module : kernel
priority : 202
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_ctr_aes192
module : kernel
priority : 201
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : stdrng
driver : drbg_pr_ctr_aes128
module : kernel
priority : 200
refcnt : 1
selftest : passed
internal : no
type : rng
seedsize : 0
name : lzo-rle
driver : lzo-rle-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp
name : lzo-rle
driver : lzo-rle-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : compression
name : lzo
driver : lzo-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp
name : lzo
driver : lzo-generic
module : kernel
priority : 0
refcnt : 3
selftest : passed
internal : no
type : compression
name : crct10dif
driver : crct10dif-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 2
name : crc32c
driver : crc32c-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 4
name : zlib-deflate
driver : zlib-deflate-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp
name : deflate
driver : deflate-scomp
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : scomp
name : deflate
driver : deflate-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : compression
name : aes
driver : aes-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 16
min keysize : 16
max keysize : 32
name : sha384
driver : sha384-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 128
digestsize : 48
name : sha512
driver : sha512-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 128
digestsize : 64
name : sha224
driver : sha224-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 28
name : sha256
driver : sha256-generic
module : kernel
priority : 100
refcnt : 130
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 32
name : sha1
driver : sha1-generic
module : kernel
priority : 100
refcnt : 132
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 20
name : md5
driver : md5-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 64
digestsize : 16
name : ecb(cipher_null)
driver : ecb-cipher_null
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : skcipher
async : no
blocksize : 1
min keysize : 0
max keysize : 0
ivsize : 0
chunksize : 1
walksize : 1
name : digest_null
driver : digest_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : shash
blocksize : 1
digestsize : 0
name : compress_null
driver : compress_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : compression
name : cipher_null
driver : cipher_null-generic
module : kernel
priority : 0
refcnt : 1
selftest : passed
internal : no
type : cipher
blocksize : 1
min keysize : 0
max keysize : 0
name : rsa
driver : rsa-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : akcipher
name : dh
driver : dh-generic
module : kernel
priority : 100
refcnt : 1
selftest : passed
internal : no
type : kpp

1
tests/fixtures/linux-proc/crypto.json vendored Normal file

File diff suppressed because one or more lines are too long

67
tests/fixtures/linux-proc/devices vendored Normal file
View File

@ -0,0 +1,67 @@
Character devices:
1 mem
4 /dev/vc/0
4 tty
4 ttyS
5 /dev/tty
5 /dev/console
5 /dev/ptmx
5 ttyprintk
7 vcs
10 misc
13 input
14 sound/midi
14 sound/dmmidi
21 sg
29 fb
81 video4linux
89 i2c
108 ppp
116 alsa
128 ptm
136 pts
180 usb
189 usb_device
204 ttyMAX
226 drm
238 media
239 hidraw
240 aux
241 cec
242 BaseRemoteCtl
243 vfio
244 bsg
245 watchdog
246 ptp
247 pps
248 rtc
249 dma_heap
250 dax
251 dimmctl
252 ndctl
253 tpm
254 gpiochip
Block devices:
7 loop
8 sd
9 md
11 sr
65 sd
66 sd
67 sd
68 sd
69 sd
70 sd
71 sd
128 sd
129 sd
130 sd
131 sd
132 sd
133 sd
134 sd
135 sd
253 device-mapper
254 mdp
259 blkext

View File

@ -0,0 +1 @@
{"character":{"1":["mem"],"4":["/dev/vc/0","tty","ttyS"],"5":["/dev/tty","/dev/console","/dev/ptmx","ttyprintk"],"7":["vcs"],"10":["misc"],"13":["input"],"14":["sound/midi","sound/dmmidi"],"21":["sg"],"29":["fb"],"81":["video4linux"],"89":["i2c"],"108":["ppp"],"116":["alsa"],"128":["ptm"],"136":["pts"],"180":["usb"],"189":["usb_device"],"204":["ttyMAX"],"226":["drm"],"238":["media"],"239":["hidraw"],"240":["aux"],"241":["cec"],"242":["BaseRemoteCtl"],"243":["vfio"],"244":["bsg"],"245":["watchdog"],"246":["ptp"],"247":["pps"],"248":["rtc"],"249":["dma_heap"],"250":["dax"],"251":["dimmctl"],"252":["ndctl"],"253":["tpm"],"254":["gpiochip"]},"block":{"7":["loop"],"8":["sd"],"9":["md"],"11":["sr"],"65":["sd"],"66":["sd"],"67":["sd"],"68":["sd"],"69":["sd"],"70":["sd"],"71":["sd"],"128":["sd"],"129":["sd"],"130":["sd"],"131":["sd"],"132":["sd"],"133":["sd"],"134":["sd"],"135":["sd"],"253":["device-mapper"],"254":["mdp"],"259":["blkext"]}}

16
tests/fixtures/linux-proc/diskstats vendored Normal file
View File

@ -0,0 +1,16 @@
7 0 loop0 48 0 718 19 0 0 0 0 0 36 19 0 0 0 0 0 0
7 1 loop1 41 0 688 17 0 0 0 0 0 28 17 0 0 0 0 0 0
7 2 loop2 119 0 2956 18 0 0 0 0 0 56 18 0 0 0 0 0 0
7 3 loop3 220 0 4432 58 0 0 0 0 0 232 58 0 0 0 0 0 0
7 4 loop4 59 0 2184 19 0 0 0 0 0 28 19 0 0 0 0 0 0
7 5 loop5 810 0 57906 205 0 0 0 0 0 2360 205 0 0 0 0 0 0
7 6 loop6 41 0 688 12 0 0 0 0 0 28 12 0 0 0 0 0 0
7 7 loop7 64 0 2220 17 0 0 0 0 0 40 17 0 0 0 0 0 0
8 0 sda 14200 3361 892828 5058 18736 13416 715384 12604 0 24940 17663 0 0 0 0 0 0
8 1 sda1 171 0 1368 22 0 0 0 0 0 84 22 0 0 0 0 0 0
8 2 sda2 153 20 10906 22 14 13 216 3 0 96 26 0 0 0 0 0 0
8 3 sda3 6983 3341 876106 3409 18722 13403 715168 12601 0 18276 16010 0 0 0 0 0 0
11 0 sr0 283 0 20923 58 0 0 0 0 0 124 58 0 0 0 0 0 0
253 0 dm-0 10298 0 873914 7596 31994 0 715168 13140 0 18220 20736 0 0 0 0 0 0
7 8 loop8 250 0 4496 16 0 0 0 0 0 180 16 0 0 0 0 0 0

File diff suppressed because one or more lines are too long

18
tests/fixtures/linux-proc/driver_rtc vendored Normal file
View File

@ -0,0 +1,18 @@
rtc_time : 16:09:21
rtc_date : 2022-09-03
alrm_time : 00:00:00
alrm_date : 2022-09-03
alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no
periodic IRQ enabled : no
periodic IRQ frequency : 1024
max user IRQ frequency : 64
24hr : yes
periodic_IRQ : no
update_IRQ : no
HPET_emulated : yes
BCD : yes
DST_enable : no
periodic_freq : 1024
batt_status : okay

32
tests/fixtures/linux-proc/filesystems vendored Normal file
View File

@ -0,0 +1,32 @@
nodev sysfs
nodev tmpfs
nodev bdev
nodev proc
nodev cgroup
nodev cgroup2
nodev cpuset
nodev devtmpfs
nodev configfs
nodev debugfs
nodev tracefs
nodev securityfs
nodev sockfs
nodev bpf
nodev pipefs
nodev ramfs
nodev hugetlbfs
nodev devpts
ext3
ext2
ext4
squashfs
vfat
nodev ecryptfs
fuseblk
nodev fuse
nodev fusectl
nodev mqueue
nodev pstore
btrfs
nodev autofs
nodev binfmt_misc

66
tests/fixtures/linux-proc/interrupts vendored Normal file
View File

@ -0,0 +1,66 @@
CPU0 CPU1
0: 18 0 IO-APIC 2-edge timer
1: 0 73 IO-APIC 1-edge i8042
8: 1 0 IO-APIC 8-edge rtc0
9: 0 0 IO-APIC 9-fasteoi acpi
12: 18 0 IO-APIC 12-edge i8042
14: 0 0 IO-APIC 14-edge ata_piix
15: 0 0 IO-APIC 15-edge ata_piix
16: 3545 0 IO-APIC 16-fasteoi vmwgfx, snd_ens1371
17: 33795 0 IO-APIC 17-fasteoi ehci_hcd:usb1, ioc0
18: 0 368326 IO-APIC 18-fasteoi uhci_hcd:usb2
19: 0 126705 IO-APIC 19-fasteoi ens33
24: 0 0 PCI-MSI 344064-edge PCIe PME, pciehp
25: 0 0 PCI-MSI 346112-edge PCIe PME, pciehp
26: 0 0 PCI-MSI 348160-edge PCIe PME, pciehp
27: 0 0 PCI-MSI 350208-edge PCIe PME, pciehp
28: 0 0 PCI-MSI 352256-edge PCIe PME, pciehp
29: 0 0 PCI-MSI 354304-edge PCIe PME, pciehp
30: 0 0 PCI-MSI 356352-edge PCIe PME, pciehp
31: 0 0 PCI-MSI 358400-edge PCIe PME, pciehp
32: 0 0 PCI-MSI 360448-edge PCIe PME, pciehp
33: 0 0 PCI-MSI 362496-edge PCIe PME, pciehp
34: 0 0 PCI-MSI 364544-edge PCIe PME, pciehp
35: 0 0 PCI-MSI 366592-edge PCIe PME, pciehp
36: 0 0 PCI-MSI 368640-edge PCIe PME, pciehp
37: 0 0 PCI-MSI 370688-edge PCIe PME, pciehp
38: 0 0 PCI-MSI 372736-edge PCIe PME, pciehp
39: 0 0 PCI-MSI 374784-edge PCIe PME, pciehp
40: 0 0 PCI-MSI 376832-edge PCIe PME, pciehp
41: 0 0 PCI-MSI 378880-edge PCIe PME, pciehp
42: 0 0 PCI-MSI 380928-edge PCIe PME, pciehp
43: 0 0 PCI-MSI 382976-edge PCIe PME, pciehp
44: 0 0 PCI-MSI 385024-edge PCIe PME, pciehp
45: 0 0 PCI-MSI 387072-edge PCIe PME, pciehp
46: 0 0 PCI-MSI 389120-edge PCIe PME, pciehp
47: 0 0 PCI-MSI 391168-edge PCIe PME, pciehp
48: 0 0 PCI-MSI 393216-edge PCIe PME, pciehp
49: 0 0 PCI-MSI 395264-edge PCIe PME, pciehp
50: 0 0 PCI-MSI 397312-edge PCIe PME, pciehp
51: 0 0 PCI-MSI 399360-edge PCIe PME, pciehp
52: 0 0 PCI-MSI 401408-edge PCIe PME, pciehp
53: 0 0 PCI-MSI 403456-edge PCIe PME, pciehp
54: 0 0 PCI-MSI 405504-edge PCIe PME, pciehp
55: 0 0 PCI-MSI 407552-edge PCIe PME, pciehp
56: 0 7937 PCI-MSI 1130496-edge ahci[0000:02:05.0]
57: 0 2061 PCI-MSI 129024-edge vmw_vmci
58: 0 0 PCI-MSI 129025-edge vmw_vmci
NMI: 0 0 Non-maskable interrupts
LOC: 366351 997227 Local timer interrupts
SPU: 0 0 Spurious interrupts
PMI: 0 0 Performance monitoring interrupts
IWI: 0 3 IRQ work interrupts
RTR: 0 0 APIC ICR read retries
RES: 2763 2933 Rescheduling interrupts
CAL: 175136 130374 Function call interrupts
TLB: 3155 3965 TLB shootdowns
TRM: 0 0 Thermal event interrupts
THR: 0 0 Threshold APIC interrupts
DFR: 0 0 Deferred Error APIC interrupts
MCE: 0 0 Machine check exceptions
MCP: 49 50 Machine check polls
ERR: 0
MIS: 0
PIN: 0 0 Posted-interrupt notification event
NPI: 0 0 Nested posted-interrupt event
PIW: 0 0 Posted-interrupt wakeup event

119
tests/fixtures/linux-proc/iomem vendored Normal file
View File

@ -0,0 +1,119 @@
00000000-00000fff : Reserved
00001000-0009e7ff : System RAM
0009e800-0009ffff : Reserved
000a0000-000bffff : PCI Bus 0000:00
000c0000-000c7fff : Video ROM
000ca000-000cafff : Adapter ROM
000cb000-000ccfff : Adapter ROM
000d0000-000d3fff : PCI Bus 0000:00
000d4000-000d7fff : PCI Bus 0000:00
000d8000-000dbfff : PCI Bus 0000:00
000dc000-000fffff : Reserved
000f0000-000fffff : System ROM
00100000-bfecffff : System RAM
66e00000-67c00d56 : Kernel code
67e00000-686abfff : Kernel rodata
68800000-68a7a5bf : Kernel data
68d36000-691fffff : Kernel bss
bfed0000-bfefefff : ACPI Tables
bfeff000-bfefffff : ACPI Non-volatile Storage
bff00000-bfffffff : System RAM
c0000000-febfffff : PCI Bus 0000:00
c0008000-c000bfff : 0000:00:10.0
e5b00000-e5bfffff : PCI Bus 0000:22
e5c00000-e5cfffff : PCI Bus 0000:1a
e5d00000-e5dfffff : PCI Bus 0000:12
e5e00000-e5efffff : PCI Bus 0000:0a
e5f00000-e5ffffff : PCI Bus 0000:21
e6000000-e60fffff : PCI Bus 0000:19
e6100000-e61fffff : PCI Bus 0000:11
e6200000-e62fffff : PCI Bus 0000:09
e6300000-e63fffff : PCI Bus 0000:20
e6400000-e64fffff : PCI Bus 0000:18
e6500000-e65fffff : PCI Bus 0000:10
e6600000-e66fffff : PCI Bus 0000:08
e6700000-e67fffff : PCI Bus 0000:1f
e6800000-e68fffff : PCI Bus 0000:17
e6900000-e69fffff : PCI Bus 0000:0f
e6a00000-e6afffff : PCI Bus 0000:07
e6b00000-e6bfffff : PCI Bus 0000:1e
e6c00000-e6cfffff : PCI Bus 0000:16
e6d00000-e6dfffff : PCI Bus 0000:0e
e6e00000-e6efffff : PCI Bus 0000:06
e6f00000-e6ffffff : PCI Bus 0000:1d
e7000000-e70fffff : PCI Bus 0000:15
e7100000-e71fffff : PCI Bus 0000:0d
e7200000-e72fffff : PCI Bus 0000:05
e7300000-e73fffff : PCI Bus 0000:1c
e7400000-e74fffff : PCI Bus 0000:14
e7500000-e75fffff : PCI Bus 0000:0c
e7600000-e76fffff : PCI Bus 0000:04
e7700000-e77fffff : PCI Bus 0000:1b
e7800000-e78fffff : PCI Bus 0000:13
e7900000-e79fffff : PCI Bus 0000:0b
e7a00000-e7afffff : PCI Bus 0000:03
e7b00000-e7ffffff : PCI Bus 0000:02
e8000000-efffffff : 0000:00:0f.0
e8000000-efffffff : vmwgfx probe
f0000000-f7ffffff : PCI MMCONFIG 0000 [bus 00-7f]
f0000000-f7ffffff : Reserved
f0000000-f7ffffff : pnp 00:06
fb500000-fb5fffff : PCI Bus 0000:22
fb600000-fb6fffff : PCI Bus 0000:1a
fb700000-fb7fffff : PCI Bus 0000:12
fb800000-fb8fffff : PCI Bus 0000:0a
fb900000-fb9fffff : PCI Bus 0000:21
fba00000-fbafffff : PCI Bus 0000:19
fbb00000-fbbfffff : PCI Bus 0000:11
fbc00000-fbcfffff : PCI Bus 0000:09
fbd00000-fbdfffff : PCI Bus 0000:20
fbe00000-fbefffff : PCI Bus 0000:18
fbf00000-fbffffff : PCI Bus 0000:10
fc000000-fc0fffff : PCI Bus 0000:08
fc100000-fc1fffff : PCI Bus 0000:1f
fc200000-fc2fffff : PCI Bus 0000:17
fc300000-fc3fffff : PCI Bus 0000:0f
fc400000-fc4fffff : PCI Bus 0000:07
fc500000-fc5fffff : PCI Bus 0000:1e
fc600000-fc6fffff : PCI Bus 0000:16
fc700000-fc7fffff : PCI Bus 0000:0e
fc800000-fc8fffff : PCI Bus 0000:06
fc900000-fc9fffff : PCI Bus 0000:1d
fca00000-fcafffff : PCI Bus 0000:15
fcb00000-fcbfffff : PCI Bus 0000:0d
fcc00000-fccfffff : PCI Bus 0000:05
fcd00000-fcdfffff : PCI Bus 0000:1c
fce00000-fcefffff : PCI Bus 0000:14
fcf00000-fcffffff : PCI Bus 0000:0c
fd000000-fd0fffff : PCI Bus 0000:04
fd100000-fd1fffff : PCI Bus 0000:1b
fd200000-fd2fffff : PCI Bus 0000:13
fd300000-fd3fffff : PCI Bus 0000:0b
fd400000-fd4fffff : PCI Bus 0000:03
fd500000-fdffffff : PCI Bus 0000:02
fd500000-fd50ffff : 0000:02:01.0
fd510000-fd51ffff : 0000:02:05.0
fd5c0000-fd5dffff : 0000:02:01.0
fd5c0000-fd5dffff : e1000
fd5ee000-fd5eefff : 0000:02:05.0
fd5ee000-fd5eefff : ahci
fd5ef000-fd5effff : 0000:02:03.0
fd5ef000-fd5effff : ehci_hcd
fdff0000-fdffffff : 0000:02:01.0
fdff0000-fdffffff : e1000
fe000000-fe7fffff : 0000:00:0f.0
fe000000-fe7fffff : vmwgfx probe
fe800000-fe9fffff : pnp 00:06
feba0000-febbffff : 0000:00:10.0
feba0000-febbffff : mpt
febc0000-febdffff : 0000:00:10.0
febc0000-febdffff : mpt
febfe000-febfffff : 0000:00:07.7
fec00000-fec0ffff : Reserved
fec00000-fec003ff : IOAPIC 0
fed00000-fed003ff : HPET 0
fed00000-fed003ff : pnp 00:04
fee00000-fee00fff : Local APIC
fee00000-fee00fff : Reserved
fffe0000-ffffffff : Reserved
100000000-13fffffff : System RAM

63
tests/fixtures/linux-proc/ioports vendored Normal file
View File

@ -0,0 +1,63 @@
0000-0cf7 : PCI Bus 0000:00
0000-001f : dma1
0020-0021 : PNP0001:00
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-0060 : keyboard
0061-0061 : PNP0800:00
0064-0064 : keyboard
0070-0071 : rtc0
0080-008f : dma page reg
00a0-00a1 : PNP0001:00
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:07.1
0170-0177 : ata_piix
01f0-01f7 : 0000:00:07.1
01f0-01f7 : ata_piix
0376-0376 : 0000:00:07.1
0376-0376 : ata_piix
03c0-03df : vga+
03f6-03f6 : 0000:00:07.1
03f6-03f6 : ata_piix
03f8-03ff : serial
04d0-04d1 : PNP0001:00
0cf0-0cf1 : pnp 00:00
0cf8-0cff : PCI conf1
0d00-feff : PCI Bus 0000:00
1000-103f : 0000:00:07.3
1000-103f : pnp 00:00
1000-1003 : ACPI PM1a_EVT_BLK
1004-1005 : ACPI PM1a_CNT_BLK
1008-100b : ACPI PM_TMR
100c-100f : ACPI GPE0_BLK
1040-104f : 0000:00:07.3
1040-104f : pnp 00:00
1060-106f : 0000:00:07.1
1060-106f : ata_piix
1070-107f : 0000:00:0f.0
1070-107f : vmwgfx probe
1080-10bf : 0000:00:07.7
1080-10bf : vmw_vmci
1400-14ff : 0000:00:10.0
2000-3fff : PCI Bus 0000:02
2000-203f : 0000:02:01.0
2000-203f : e1000
2040-207f : 0000:02:02.0
2040-207f : Ensoniq AudioPCI
2080-209f : 0000:02:00.0
2080-209f : uhci_hcd
4000-4fff : PCI Bus 0000:03
5000-5fff : PCI Bus 0000:0b
6000-6fff : PCI Bus 0000:13
7000-7fff : PCI Bus 0000:1b
8000-8fff : PCI Bus 0000:04
9000-9fff : PCI Bus 0000:0c
a000-afff : PCI Bus 0000:14
b000-bfff : PCI Bus 0000:1c
c000-cfff : PCI Bus 0000:05
d000-dfff : PCI Bus 0000:0d
e000-efff : PCI Bus 0000:15
fce0-fcff : pnp 00:06

1
tests/fixtures/linux-proc/loadavg vendored Normal file
View File

@ -0,0 +1 @@
0.00 0.01 0.03 2/111 2039

4
tests/fixtures/linux-proc/locks vendored Normal file
View File

@ -0,0 +1,4 @@
1: POSIX ADVISORY WRITE 877 00:19:812 0 EOF
2: FLOCK ADVISORY WRITE 854 00:19:805 0 EOF
3: POSIX ADVISORY WRITE 701 00:19:702 0 EOF
4: FLOCK ADVISORY WRITE 870 fd:00:264967 0 EOF

51
tests/fixtures/linux-proc/meminfo vendored Normal file
View File

@ -0,0 +1,51 @@
MemTotal: 3997272 kB
MemFree: 2760316 kB
MemAvailable: 3386876 kB
Buffers: 40452 kB
Cached: 684856 kB
SwapCached: 0 kB
Active: 475816 kB
Inactive: 322064 kB
Active(anon): 70216 kB
Inactive(anon): 148 kB
Active(file): 405600 kB
Inactive(file): 321916 kB
Unevictable: 19476 kB
Mlocked: 19476 kB
SwapTotal: 3996668 kB
SwapFree: 3996668 kB
Dirty: 152 kB
Writeback: 0 kB
AnonPages: 92064 kB
Mapped: 79464 kB
Shmem: 1568 kB
KReclaimable: 188216 kB
Slab: 288096 kB
SReclaimable: 188216 kB
SUnreclaim: 99880 kB
KernelStack: 5872 kB
PageTables: 1812 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 5995304 kB
Committed_AS: 445240 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 21932 kB
VmallocChunk: 0 kB
Percpu: 107520 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
FileHugePages: 0 kB
FilePmdMapped: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
Hugetlb: 0 kB
DirectMap4k: 192320 kB
DirectMap2M: 4001792 kB
DirectMap1G: 2097152 kB

92
tests/fixtures/linux-proc/modules vendored Normal file
View File

@ -0,0 +1,92 @@
binfmt_misc 24576 1 - Live 0xffffffffc0ab4000
vsock_loopback 16384 0 - Live 0xffffffffc0a14000
vmw_vsock_virtio_transport_common 36864 1 vsock_loopback, Live 0xffffffffc0a03000
vmw_vsock_vmci_transport 32768 1 - Live 0xffffffffc0a1b000
vsock 45056 5 vsock_loopback,vmw_vsock_virtio_transport_common,vmw_vsock_vmci_transport, Live 0xffffffffc09f7000
dm_multipath 36864 0 - Live 0xffffffffc09b6000
scsi_dh_rdac 16384 0 - Live 0xffffffffc09a2000
scsi_dh_emc 16384 0 - Live 0xffffffffc0967000
scsi_dh_alua 20480 0 - Live 0xffffffffc090b000
intel_rapl_msr 20480 0 - Live 0xffffffffc0947000
intel_rapl_common 28672 1 intel_rapl_msr, Live 0xffffffffc09ae000
rapl 20480 0 - Live 0xffffffffc0941000
vmw_balloon 24576 0 - Live 0xffffffffc09a7000
joydev 28672 0 - Live 0xffffffffc092f000
input_leds 16384 0 - Live 0xffffffffc093c000
serio_raw 20480 0 - Live 0xffffffffc0921000
snd_ens1371 32768 0 - Live 0xffffffffc0999000
snd_ac97_codec 163840 1 snd_ens1371, Live 0xffffffffc0970000
uvcvideo 98304 0 - Live 0xffffffffc094e000
btusb 57344 0 - Live 0xffffffffc0912000
btrtl 24576 1 btusb, Live 0xffffffffc0904000
gameport 24576 1 snd_ens1371, Live 0xffffffffc082b000
videobuf2_vmalloc 20480 1 uvcvideo, Live 0xffffffffc0798000
videobuf2_memops 20480 1 videobuf2_vmalloc, Live 0xffffffffc0929000
btbcm 16384 1 btusb, Live 0xffffffffc0937000
snd_rawmidi 36864 1 snd_ens1371, Live 0xffffffffc0851000
btintel 28672 1 btusb, Live 0xffffffffc0823000
snd_seq_device 16384 1 snd_rawmidi, Live 0xffffffffc081e000
ac97_bus 16384 1 snd_ac97_codec, Live 0xffffffffc07b2000
videobuf2_v4l2 28672 1 uvcvideo, Live 0xffffffffc07c3000
bluetooth 602112 5 btusb,btrtl,btbcm,btintel, Live 0xffffffffc086c000
videobuf2_common 57344 2 uvcvideo,videobuf2_v4l2, Live 0xffffffffc085d000
snd_pcm 118784 2 snd_ens1371,snd_ac97_codec, Live 0xffffffffc0833000
videodev 245760 3 uvcvideo,videobuf2_v4l2,videobuf2_common, Live 0xffffffffc07e1000
snd_timer 40960 1 snd_pcm, Live 0xffffffffc07d6000
ecdh_generic 16384 1 bluetooth, Live 0xffffffffc07cf000
ecc 32768 1 ecdh_generic, Live 0xffffffffc07ba000
mc 57344 4 uvcvideo,videobuf2_v4l2,videobuf2_common,videodev, Live 0xffffffffc07a3000
snd 94208 6 snd_ens1371,snd_ac97_codec,snd_rawmidi,snd_seq_device,snd_pcm,snd_timer, Live 0xffffffffc0780000
soundcore 16384 1 snd, Live 0xffffffffc0777000
vmw_vmci 77824 2 vmw_vsock_vmci_transport,vmw_balloon, Live 0xffffffffc0763000
mac_hid 16384 0 - Live 0xffffffffc075e000
sch_fq_codel 20480 2 - Live 0xffffffffc072c000
ip_tables 32768 0 - Live 0xffffffffc0714000
x_tables 49152 1 ip_tables, Live 0xffffffffc0700000
autofs4 45056 2 - Live 0xffffffffc06f4000
btrfs 1323008 0 - Live 0xffffffffc05b0000
blake2b_generic 20480 0 - Live 0xffffffffc038a000
raid10 61440 0 - Live 0xffffffffc05a0000
raid456 155648 0 - Live 0xffffffffc056f000
async_raid6_recov 24576 1 raid456, Live 0xffffffffc0568000
async_memcpy 20480 2 raid456,async_raid6_recov, Live 0xffffffffc0562000
async_pq 24576 2 raid456,async_raid6_recov, Live 0xffffffffc0558000
async_xor 20480 3 raid456,async_raid6_recov,async_pq, Live 0xffffffffc0552000
async_tx 20480 5 raid456,async_raid6_recov,async_memcpy,async_pq,async_xor, Live 0xffffffffc054c000
xor 24576 2 btrfs,async_xor, Live 0xffffffffc046d000
raid6_pq 114688 4 btrfs,raid456,async_raid6_recov,async_pq, Live 0xffffffffc052b000
libcrc32c 16384 2 btrfs,raid456, Live 0xffffffffc0468000
raid1 49152 0 - Live 0xffffffffc03ea000
raid0 24576 0 - Live 0xffffffffc03e3000
multipath 20480 0 - Live 0xffffffffc0348000
linear 20480 0 - Live 0xffffffffc030f000
hid_generic 16384 0 - Live 0xffffffffc0327000
usbhid 57344 0 - Live 0xffffffffc051c000
hid 135168 2 hid_generic,usbhid, Live 0xffffffffc04fa000
crct10dif_pclmul 16384 1 - Live 0xffffffffc03de000
crc32_pclmul 16384 0 - Live 0xffffffffc035e000
ghash_clmulni_intel 16384 0 - Live 0xffffffffc02f0000
aesni_intel 372736 0 - Live 0xffffffffc049e000
crypto_simd 16384 1 aesni_intel, Live 0xffffffffc0338000
cryptd 24576 2 ghash_clmulni_intel,crypto_simd, Live 0xffffffffc02df000
glue_helper 16384 1 aesni_intel, Live 0xffffffffc02da000
psmouse 163840 0 - Live 0xffffffffc0475000
vmwgfx 323584 1 - Live 0xffffffffc0413000
ttm 102400 1 vmwgfx, Live 0xffffffffc03f9000
drm_kms_helper 225280 1 vmwgfx, Live 0xffffffffc03a6000
syscopyarea 16384 1 drm_kms_helper, Live 0xffffffffc02d5000
mptspi 24576 3 - Live 0xffffffffc02ca000
sysfillrect 16384 1 drm_kms_helper, Live 0xffffffffc02c3000
sysimgblt 16384 1 drm_kms_helper, Live 0xffffffffc02be000
fb_sys_fops 16384 1 drm_kms_helper, Live 0xffffffffc02b9000
mptscsih 45056 1 mptspi, Live 0xffffffffc0395000
e1000 151552 0 - Live 0xffffffffc0364000
cec 53248 1 drm_kms_helper, Live 0xffffffffc0350000
ahci 40960 0 - Live 0xffffffffc033d000
libahci 36864 1 ahci, Live 0xffffffffc032e000
rc_core 61440 1 cec, Live 0xffffffffc0317000
mptbase 98304 2 mptspi,mptscsih, Live 0xffffffffc02f6000
scsi_transport_spi 32768 1 mptspi, Live 0xffffffffc02e7000
drm 565248 4 vmwgfx,ttm,drm_kms_helper, Live 0xffffffffc022e000
i2c_piix4 28672 0 - Live 0xffffffffc0222000
pata_acpi 16384 0 - Live 0xffffffffc021a000

12
tests/fixtures/linux-proc/mtrr vendored Normal file
View File

@ -0,0 +1,12 @@
reg00: base=0x000000000 ( 0MB), size= 2048MB, count=1: write-back
reg01: base=0x080000000 ( 2048MB), size= 1024MB, count=1: write-back
reg02: base=0x100000000 ( 4096MB), size= 4096MB, count=1: write-back
reg03: base=0x200000000 ( 8192MB), size= 8192MB, count=1: write-back
reg04: base=0x400000000 (16384MB), size=16384MB, count=1: write-back
reg05: base=0x800000000 (32768MB), size=32768MB, count=1: write-back
reg06: base=0x1000000000 (65536MB), size=65536MB, count=1: write-back
reg07: base=0x00000000 ( 0MB), size= 256MB: write-back, count=1
reg08: base=0xe8000000 (3712MB), size= 32MB: write-combining, count=1
reg09: base=0x00000000 ( 0MB), size= 64MB: write-back, count=1
reg10: base=0xfb000000 (4016MB), size= 16MB: write-combining, count=1
reg11: base=0xfb000000 (4016MB), size= 4kB: uncachable, count=1

4
tests/fixtures/linux-proc/net_arp vendored Normal file
View File

@ -0,0 +1,4 @@
IP address HW type Flags HW address Mask Device
192.168.71.254 0x1 0x2 00:50:56:f3:2f:ae * ens33
192.168.71.2 0x1 0x2 00:50:56:f7:4a:fc * ens33
192.168.71.1 0x1 0x2 a6:83:e7:d2:a9:65 * ens33

4
tests/fixtures/linux-proc/net_dev vendored Normal file
View File

@ -0,0 +1,4 @@
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 13222 152 0 0 0 0 0 0 13222 152 0 0 0 0 0 0
ens33: 60600053 109378 0 0 0 0 0 0 44256546 121425 0 0 0 0 0 0

View File

@ -0,0 +1,6 @@
2 ens33 1 0 333300000001
2 ens33 1 0 01005e000001
2 ens33 1 0 0180c2000000
2 ens33 1 0 0180c2000003
2 ens33 1 0 0180c200000e
2 ens33 1 0 3333ffa4e315

View File

@ -0,0 +1,2 @@
fe80000000000000020c29fffea4e315 02 40 20 80 ens33
00000000000000000000000000000001 01 80 10 80 lo

5
tests/fixtures/linux-proc/net_igmp vendored Normal file
View File

@ -0,0 +1,5 @@
Idx Device : Count Querier Group Users Timer Reporter
1 lo : 1 V3
010000E0 1 0:00000000 0
2 ens33 : 1 V3
010000E0 1 0:00000000 0

5
tests/fixtures/linux-proc/net_igmp6 vendored Normal file
View File

@ -0,0 +1,5 @@
1 lo ff020000000000000000000000000001 1 0000000C 0
1 lo ff010000000000000000000000000001 1 00000008 0
2 ens33 ff0200000000000000000001ffa4e315 1 00000004 0
2 ens33 ff020000000000000000000000000001 2 0000000C 0
2 ens33 ff010000000000000000000000000001 1 00000008 0

View File

@ -0,0 +1,7 @@
00000000000000000000000000000001 80 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000001 00000000 00000001 lo
fe800000000000000000000000000000 40 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000001 00000000 00000001 ens33
00000000000000000000000000000000 00 00000000000000000000000000000000 00 00000000000000000000000000000000 ffffffff 00000001 00000000 00200200 lo
00000000000000000000000000000001 80 00000000000000000000000000000000 00 00000000000000000000000000000000 00000000 00000004 00000000 80200001 lo
fe80000000000000020c29fffea4e315 80 00000000000000000000000000000000 00 00000000000000000000000000000000 00000000 00000002 00000000 80200001 ens33
ff000000000000000000000000000000 08 00000000000000000000000000000000 00 00000000000000000000000000000000 00000100 00000004 00000000 00000001 ens33
00000000000000000000000000000000 00 00000000000000000000000000000000 00 00000000000000000000000000000000 ffffffff 00000001 00000000 00200200 lo

27
tests/fixtures/linux-proc/net_netlink vendored Normal file
View File

@ -0,0 +1,27 @@
sk Eth Pid Groups Rmem Wmem Dump Locks Drops Inode
ffff9b61adaff000 0 1 800405d5 0 0 0 2 0 29791
ffff9b61a792a000 0 837 00000111 0 0 0 2 0 35337
ffff9b61b8e4d000 0 0 00000000 0 0 0 2 0 17
ffff9b61a7464800 4 0 00000000 0 0 0 2 0 24798
ffff9b61b8216800 7 0 00000000 0 0 0 2 0 17250
ffff9b61a7592000 9 2875 00000000 0 0 0 2 0 89117
ffff9b61adafc000 9 4095138316 00000000 0 0 0 2 0 29927
ffff9b61b8e4e800 9 0 00000000 0 0 0 2 0 22
ffff9b61b71c4800 9 1 00000001 0 0 0 2 0 29784
ffff9b61b82ef000 10 0 00000000 0 0 0 2 0 14333
ffff9b61b821d000 11 0 00000000 0 0 0 2 0 1026
ffff9b61a6ca7800 15 3496194766 00000002 0 0 0 2 0 38994
ffff9b61b5a60800 15 835 00000002 0 0 0 2 0 34728
ffff9b61adafc800 15 3516054882 00000001 0 0 0 2 0 29794
ffff9b61acb18800 15 701 00000002 0 0 0 2 0 33113
ffff9b61b71c0800 15 1 00000002 0 0 0 2 0 29760
ffff9b61a6ca4000 15 4232252993 00000002 0 0 0 2 0 38995
ffff9b61b1f08800 15 1207 00000002 0 0 0 2 0 41861
ffff9b61a768d000 15 872 00000002 0 0 0 2 0 38992
ffff9b61b3c84000 15 870 00000002 0 0 0 2 0 40752
ffff9b61ad435800 15 8470 00000002 0 0 0 2 0 104872
ffff9b61a6ca2800 15 3571242113 00000002 0 0 0 2 0 38993
ffff9b61b8e48800 15 0 00000000 0 0 0 2 0 24
ffff9b61b821b800 16 0 00000000 0 0 0 2 0 1037
ffff9b61b5a64000 16 835 00000000 0 0 0 2 0 34727
ffff9b61b8218800 18 0 00000000 0 0 0 2 0 1029

6
tests/fixtures/linux-proc/net_netstat vendored Normal file
View File

@ -0,0 +1,6 @@
TcpExt: SyncookiesSent SyncookiesRecv SyncookiesFailed EmbryonicRsts PruneCalled RcvPruned OfoPruned OutOfWindowIcmps LockDroppedIcmps ArpFilter TW TWRecycled TWKilled PAWSActive PAWSEstab DelayedACKs DelayedACKLocked DelayedACKLost ListenOverflows ListenDrops TCPHPHits TCPPureAcks TCPHPAcks TCPRenoRecovery TCPSackRecovery TCPSACKReneging TCPSACKReorder TCPRenoReorder TCPTSReorder TCPFullUndo TCPPartialUndo TCPDSACKUndo TCPLossUndo TCPLostRetransmit TCPRenoFailures TCPSackFailures TCPLossFailures TCPFastRetrans TCPSlowStartRetrans TCPTimeouts TCPLossProbes TCPLossProbeRecovery TCPRenoRecoveryFail TCPSackRecoveryFail TCPRcvCollapsed TCPBacklogCoalesce TCPDSACKOldSent TCPDSACKOfoSent TCPDSACKRecv TCPDSACKOfoRecv TCPAbortOnData TCPAbortOnClose TCPAbortOnMemory TCPAbortOnTimeout TCPAbortOnLinger TCPAbortFailed TCPMemoryPressures TCPMemoryPressuresChrono TCPSACKDiscard TCPDSACKIgnoredOld TCPDSACKIgnoredNoUndo TCPSpuriousRTOs TCPMD5NotFound TCPMD5Unexpected TCPMD5Failure TCPSackShifted TCPSackMerged TCPSackShiftFallback TCPBacklogDrop PFMemallocDrop TCPMinTTLDrop TCPDeferAcceptDrop IPReversePathFilter TCPTimeWaitOverflow TCPReqQFullDoCookies TCPReqQFullDrop TCPRetransFail TCPRcvCoalesce TCPOFOQueue TCPOFODrop TCPOFOMerge TCPChallengeACK TCPSYNChallenge TCPFastOpenActive TCPFastOpenActiveFail TCPFastOpenPassive TCPFastOpenPassiveFail TCPFastOpenListenOverflow TCPFastOpenCookieReqd TCPFastOpenBlackhole TCPSpuriousRtxHostQueues BusyPollRxPackets TCPAutoCorking TCPFromZeroWindowAdv TCPToZeroWindowAdv TCPWantZeroWindowAdv TCPSynRetrans TCPOrigDataSent TCPHystartTrainDetect TCPHystartTrainCwnd TCPHystartDelayDetect TCPHystartDelayCwnd TCPACKSkippedSynRecv TCPACKSkippedPAWS TCPACKSkippedSeq TCPACKSkippedFinWait2 TCPACKSkippedTimeWait TCPACKSkippedChallenge TCPWinProbe TCPKeepAlive TCPMTUPFail TCPMTUPSuccess TCPDelivered TCPDeliveredCE TCPAckCompressed TCPZeroWindowDrop TCPRcvQDrop TCPWqueueTooBig TCPFastOpenPassiveAltKey TcpTimeoutRehash TcpDuplicateDataRehash
TcpExt: 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 10 53 0 0 0 2387 12711 53535 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2883 0 0 0 0 0 1 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 151 0 0 0 0 0 0 0 0 0 0 0 0 0 0 28376 0 0 0 0 119438 3 60 0 0 0 0 0 0 0 0 0 6 0 0 119453 0 0 0 0 0 0 0 0
IpExt: InNoRoutes InTruncatedPkts InMcastPkts OutMcastPkts InBcastPkts OutBcastPkts InOctets OutOctets InMcastOctets OutMcastOctets InBcastOctets OutBcastOctets InCsumErrors InNoECTPkts InECT1Pkts InECT0Pkts InCEPkts ReasmOverlaps
IpExt: 0 0 0 0 366 0 57734503 42330709 0 0 31466 0 0 106821 0 3273 0 0
MPTcpExt: MPCapableSYNRX MPCapableACKRX MPCapableFallbackACK MPCapableFallbackSYNACK MPTCPRetrans MPJoinNoTokenFound MPJoinSynRx MPJoinSynAckRx MPJoinSynAckHMacFailure MPJoinAckRx MPJoinAckHMacFailure DSSNotMatching InfiniteMapRx
MPTcpExt: 0 0 0 0 0 0 0 0 0 0 0 0 0

2
tests/fixtures/linux-proc/net_packet vendored Normal file
View File

@ -0,0 +1,2 @@
sk RefCnt Type Proto Iface R Rmem User Inode
ffff9b61b56c1800 3 3 88cc 2 1 0 101 34754

21
tests/fixtures/linux-proc/net_protocols vendored Normal file
View File

@ -0,0 +1,21 @@
protocol size sockets memory press maxhdr slab module cl co di ac io in de sh ss gs se re sp bi br ha uh gp em
AF_VSOCK 1216 0 -1 NI 0 yes vsock n n n n n n n n n n n n n n n n n n n
SCO 832 0 -1 NI 0 no bluetooth n n n n n n n n n n n n n n n n n n n
L2CAP 816 0 -1 NI 0 no bluetooth n n n n n n n n n n n n n n n n n n n
HCI 880 0 -1 NI 0 no bluetooth n n n n n n n n n n n n n n n n n n n
PACKET 1472 1 -1 NI 0 no kernel n n n n n n n n n n n n n n n n n n n
MPTCPv6 1824 0 1 no 0 yes kernel y n y y n y y y y y y y n n n y y y n
PINGv6 1176 0 -1 NI 0 yes kernel y y y n n y n n y y y y n y y y y y n
RAWv6 1176 1 -1 NI 0 yes kernel y y y n y y y n y y y y n y y y y n n
UDPLITEv6 1344 0 1 NI 0 yes kernel y y y n y y y n y y y y n n n y y y n
UDPv6 1344 0 1 NI 0 yes kernel y y y n y y y n y y y y n n n y y y n
TCPv6 2368 1 1 no 320 yes kernel y y y y y y y y y y y y y n y y y y y
XDP 960 0 -1 NI 0 no kernel n n n n n n n n n n n n n n n n n n n
UNIX 1024 131 -1 NI 0 yes kernel n n n n n n n n n n n n n n n n n n n
UDP-Lite 1152 0 1 NI 0 yes kernel y y y n y y y n y y y y y n n y y y n
MPTCP 1664 0 1 no 0 yes kernel y n y y n y y y y y y y n n n y y y n
PING 968 0 -1 NI 0 yes kernel y y y n n y n n y y y y n y y y y y n
RAW 976 0 -1 NI 0 yes kernel y y y n y y y n y y y y n y y y y n n
UDP 1152 2 1 NI 0 yes kernel y y y n y y y n y y y y y n n y y y n
TCP 2208 3 1 no 320 yes kernel y y y y y y y y y y y y y n y y y y y
NETLINK 1096 18 -1 NI 0 no kernel n n n n n n n n n n n n n n n n n n n

4
tests/fixtures/linux-proc/net_route vendored Normal file
View File

@ -0,0 +1,4 @@
Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT
ens33 00000000 0247A8C0 0003 0 0 100 00000000 0 0 0
ens33 0047A8C0 00000000 0001 0 0 0 00FFFFFF 0 0 0
ens33 0247A8C0 00000000 0005 0 0 100 FFFFFFFF 0 0 0

131
tests/fixtures/linux-proc/net_unix vendored Normal file
View File

@ -0,0 +1,131 @@
Num RefCount Protocol Flags Type St Inode Path
ffff9b61ac49c400: 00000002 00000000 00010000 0001 01 42776 /var/snap/lxd/common/lxd/unix.socket
ffff9b61b509bc00: 00000002 00000000 00010000 0001 01 35128 /var/run/vmware/guestServicePipe
ffff9b61a77b9800: 00000002 00000000 00010000 0005 01 29792 /run/udev/control
ffff9b61ac49a800: 00000002 00000000 00010000 0001 01 42769 /var/snap/lxd/common/lxd-user/unix.socket
ffff9b61b0e54800: 00000002 00000000 00000000 0002 01 41863 /run/user/1000/systemd/notify
ffff9b61b0e56c00: 00000002 00000000 00010000 0001 01 41866 /run/user/1000/systemd/private
ffff9b61b0e52c00: 00000002 00000000 00010000 0001 01 41874 /run/user/1000/bus
ffff9b61a77bb800: 00000002 00000000 00010000 0001 01 29777 @/org/kernel/linux/storage/multipathd
ffff9b61b0e50000: 00000002 00000000 00010000 0001 01 41875 /run/user/1000/gnupg/S.dirmngr
ffff9b61b0e51000: 00000002 00000000 00010000 0001 01 41876 /run/user/1000/gnupg/S.gpg-agent.browser
ffff9b61b0e50c00: 00000002 00000000 00010000 0001 01 41877 /run/user/1000/gnupg/S.gpg-agent.extra
ffff9b61b0e51400: 00000002 00000000 00010000 0001 01 41878 /run/user/1000/gnupg/S.gpg-agent.ssh
ffff9b61a777d400: 00000002 00000000 00010000 0001 01 35973 /run/dbus/system_bus_socket
ffff9b61b0e52400: 00000002 00000000 00010000 0001 01 41879 /run/user/1000/gnupg/S.gpg-agent
ffff9b61a7779800: 00000002 00000000 00010000 0001 01 35990 /run/snapd.socket
ffff9b61b0e57000: 00000002 00000000 00010000 0001 01 41903 /run/user/1000/pk-debconf-socket
ffff9b61a777d000: 00000002 00000000 00010000 0001 01 35992 /run/snapd-snap.socket
ffff9b61b0e54c00: 00000002 00000000 00010000 0001 01 41904 /run/user/1000/snapd-session-agent.socket
ffff9b61a777ac00: 00000002 00000000 00010000 0001 01 35994 /run/uuidd/request
ffff9b61b2919c00: 00000002 00000000 00010000 0001 01 37637 /run/irqbalance/irqbalance861.sock
ffff9b61a77bfc00: 00000003 00000000 00000000 0002 01 29761 /run/systemd/notify
ffff9b61a77b9c00: 00000002 00000000 00010000 0001 01 29764 /run/systemd/private
ffff9b61a77ba000: 00000002 00000000 00010000 0001 01 29766 /run/systemd/userdb/io.systemd.DynamicUser
ffff9b61a77bec00: 00000002 00000000 00010000 0001 01 29775 /run/lvm/lvmpolld.socket
ffff9b61a77be000: 00000002 00000000 00000000 0002 01 29778 /run/systemd/journal/syslog
ffff9b61a77bdc00: 0000000A 00000000 00000000 0002 01 29785 /run/systemd/journal/dev-log
ffff9b61a77bc000: 00000002 00000000 00010000 0001 01 29787 /run/systemd/journal/stdout
ffff9b61a77bcc00: 00000009 00000000 00000000 0002 01 29789 /run/systemd/journal/socket
ffff9b61a777c000: 00000002 00000000 00010000 0001 01 30858 /run/systemd/journal/io.systemd.journal
ffff9b61a777f800: 00000002 00000000 00010000 0001 01 35985 @ISCSIADM_ABSTRACT_NAMESPACE
ffff9b61b0e55400: 00000003 00000000 00000000 0002 01 41865
ffff9b61b2c07800: 00000003 00000000 00000000 0001 03 40074 /run/dbus/system_bus_socket
ffff9b61b2d56c00: 00000002 00000000 00000000 0002 01 37639
ffff9b61a7842800: 00000002 00000000 00000000 0002 01 34191
ffff9b61b5a91000: 00000003 00000000 00000000 0002 01 34731
ffff9b61a7842c00: 00000003 00000000 00000000 0002 01 34198
ffff9b61b4a40000: 00000003 00000000 00000000 0001 03 37395
ffff9b61ac18a400: 00000002 00000000 00000000 0002 01 34187
ffff9b61b0e54400: 00000003 00000000 00000000 0001 03 41868 /run/dbus/system_bus_socket
ffff9b61ab65dc00: 00000003 00000000 00000000 0001 03 32191 /run/systemd/journal/stdout
ffff9b61b4a40400: 00000003 00000000 00000000 0001 03 37695 /run/dbus/system_bus_socket
ffff9b61b5a90800: 00000003 00000000 00000000 0002 01 34732
ffff9b61a777c400: 00000003 00000000 00000000 0001 03 34123
ffff9b61a77bc400: 00000003 00000000 00000000 0001 03 104866
ffff9b61b279d000: 00000003 00000000 00000000 0001 03 39056
ffff9b61a777cc00: 00000003 00000000 00000000 0001 03 37694 /run/dbus/system_bus_socket
ffff9b61b579d000: 00000003 00000000 00000000 0001 03 35846 /run/systemd/journal/stdout
ffff9b61b4a43000: 00000003 00000000 00000000 0001 03 35594 /run/systemd/journal/stdout
ffff9b61ab65ec00: 00000003 00000000 00000000 0001 03 33108
ffff9b61a7840000: 00000003 00000000 00000000 0002 01 34195
ffff9b61a77bf800: 00000003 00000000 00000000 0001 03 30127
ffff9b61b633a000: 00000003 00000000 00000000 0002 01 30139
ffff9b61a77bf400: 00000003 00000000 00000000 0001 03 37473
ffff9b61b633ac00: 00000003 00000000 00000000 0002 01 30140
ffff9b61b5a93000: 00000003 00000000 00000000 0002 01 34729
ffff9b61a77bf000: 00000003 00000000 00000000 0002 01 29762
ffff9b61ab7fe400: 00000002 00000000 00000000 0002 01 30860
ffff9b61b0e56400: 00000003 00000000 00000000 0002 01 41864
ffff9b61b4058000: 00000003 00000000 00000000 0001 03 35735 /run/systemd/journal/stdout
ffff9b61a777e400: 00000003 00000000 00000000 0001 03 36549
ffff9b61b0e56000: 00000003 00000000 00000000 0001 03 41867
ffff9b61b4820000: 00000003 00000000 00000000 0001 03 37693 /run/dbus/system_bus_socket
ffff9b61b3af2400: 00000003 00000000 00000000 0001 03 37400 /run/systemd/journal/stdout
ffff9b61a77be400: 00000003 00000000 00000000 0002 01 29763
ffff9b61a7841800: 00000003 00000000 00000000 0002 01 34196
ffff9b61a777ec00: 00000003 00000000 00000000 0001 03 36166
ffff9b61b633b800: 00000003 00000000 00000000 0001 03 30891 /run/systemd/journal/stdout
ffff9b61a7779000: 00000003 00000000 00000000 0001 03 36010
ffff9b61b2897800: 00000003 00000000 00000000 0001 03 37635 /run/systemd/journal/stdout
ffff9b61b5a95800: 00000003 00000000 00000000 0001 03 37691 /run/dbus/system_bus_socket
ffff9b61b2798c00: 00000003 00000000 00000000 0001 03 39057
ffff9b61ac18fc00: 00000003 00000000 00000000 0001 03 32701 /run/systemd/journal/stdout
ffff9b61a7846800: 00000003 00000000 00000000 0001 03 33991 /run/systemd/journal/stdout
ffff9b61a7778000: 00000003 00000000 00000000 0001 03 35845
ffff9b61a7847000: 00000003 00000000 00000000 0001 03 35984
ffff9b61a77b8800: 00000003 00000000 00000000 0001 03 35734
ffff9b61b5a94800: 00000002 00000000 00000000 0002 01 34725
ffff9b61a77b8400: 00000003 00000000 00000000 0001 03 35806
ffff9b61a7778800: 00000003 00000000 00000000 0001 03 34722
ffff9b61a7778c00: 00000003 00000000 00000000 0001 03 38537
ffff9b61a77b8000: 00000003 00000000 00000000 0001 03 35593
ffff9b61b5a94000: 00000003 00000000 00000000 0001 03 35262 /run/systemd/journal/stdout
ffff9b61b2799400: 00000003 00000000 00000000 0001 03 39051
ffff9b61a777b000: 00000003 00000000 00000000 0001 03 33989
ffff9b61b2c01400: 00000003 00000000 00000000 0001 03 37547 /run/systemd/journal/stdout
ffff9b61a77bb400: 00000003 00000000 00000000 0001 03 41833 /run/systemd/journal/stdout
ffff9b61b5a97400: 00000003 00000000 00000000 0001 03 35983
ffff9b61b4825c00: 00000003 00000000 00000000 0001 03 35453
ffff9b61a7844800: 00000003 00000000 00000000 0002 01 34197
ffff9b61a77bb000: 00000003 00000000 00000000 0001 03 42102
ffff9b61b0e53800: 00000002 00000000 00000000 0002 01 41844
ffff9b61a7844c00: 00000003 00000000 00000000 0001 03 37692 /run/dbus/system_bus_socket
ffff9b61a777a000: 00000003 00000000 00000000 0001 03 36317
ffff9b61b2c00000: 00000003 00000000 00000000 0001 03 38743
ffff9b61b4824400: 00000002 00000000 00000000 0002 01 35335
ffff9b61b279b800: 00000003 00000000 00000000 0001 03 39052 /run/dbus/system_bus_socket
ffff9b61b08e4800: 00000003 00000000 00000000 0001 03 32702 /run/systemd/journal/stdout
ffff9b61b5a96400: 00000003 00000000 00000000 0002 01 34730
ffff9b61a777a800: 00000003 00000000 00000000 0001 03 34066
ffff9b61a77ba400: 00000002 00000000 00000000 0002 01 30241
ffff9b61b633f800: 00000002 00000000 00000000 0002 01 30136
ffff9b61b288b800: 00000003 00000000 00000000 0001 03 37721 /run/systemd/journal/stdout
ffff9b61b48ab800: 00000003 00000000 00000000 0001 03 39006 /run/systemd/journal/stdout
ffff9b61b0defc00: 00000002 00000000 00000000 0002 01 42110
ffff9b61b3b5ac00: 00000003 00000000 00000000 0001 03 39035 /run/dbus/system_bus_socket
ffff9b612acc4800: 00000003 00000000 00000000 0001 03 104870 /run/dbus/system_bus_socket
ffff9b612acc5000: 00000003 00000000 00000000 0001 03 103612 /run/systemd/journal/stdout
ffff9b61b4121c00: 00000002 00000000 00000000 0002 01 37688
ffff9b61ab534400: 00000002 00000000 00000000 0002 01 40763
ffff9b61b24a3800: 00000003 00000000 00000000 0001 03 37831
ffff9b61b6334400: 00000002 00000000 00000000 0002 01 38990
ffff9b612acc2400: 00000003 00000000 00000000 0001 03 104869
ffff9b61af8ce800: 00000002 00000000 00000000 0002 01 89141
ffff9b61af8cf000: 00000003 00000000 00000000 0001 03 86011
ffff9b61b6335000: 00000003 00000000 00000000 0001 03 38997 /run/dbus/system_bus_socket
ffff9b61b3b5d000: 00000003 00000000 00000000 0001 03 39038
ffff9b61b4127000: 00000003 00000000 00000000 0001 03 35808 /run/systemd/journal/stdout
ffff9b61b3b5e400: 00000003 00000000 00000000 0001 03 37474 /run/systemd/journal/stdout
ffff9b61b42d7c00: 00000002 00000000 00000000 0002 01 36009
ffff9b61b3b5ec00: 00000003 00000000 00000000 0001 03 39037
ffff9b61af8cc800: 00000003 00000000 00000000 0001 03 86012
ffff9b61b3b5e800: 00000003 00000000 00000000 0001 03 39034
ffff9b61b6337400: 00000003 00000000 00000000 0001 03 38996
ffff9b61b4125400: 00000003 00000000 00000000 0001 03 37690
ffff9b61af8cd000: 00000002 00000000 00000000 0002 01 89121
ffff9b61b288cc00: 00000002 00000000 00000000 0002 01 85934
ffff9b61b4125000: 00000003 00000000 00000000 0001 03 37689
ffff9b61b288c000: 00000002 00000000 00000000 0001 03 85914
ffff9b61b24a0400: 00000003 00000000 00000000 0001 03 37832 /run/dbus/system_bus_socket
ffff9b61b288c400: 00000003 00000000 00000000 0001 03 38139

24
tests/fixtures/linux-proc/pagetypeinfo vendored Normal file
View File

@ -0,0 +1,24 @@
Page block order: 9
Pages per block: 512
Free pages count per migrate type at order 0 1 2 3 4 5 6 7 8 9 10
Node 0, zone DMA, type Unmovable 0 0 0 1 1 1 1 1 0 0 0
Node 0, zone DMA, type Movable 0 0 0 0 0 0 0 0 0 1 3
Node 0, zone DMA, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone DMA, type HighAtomic 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone DMA, type Isolate 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone DMA32, type Unmovable 1 2 1 3 5 2 1 0 0 1 0
Node 0, zone DMA32, type Movable 20 52 78 47 32 23 11 9 2 2 629
Node 0, zone DMA32, type Reclaimable 2 1 3 0 1 0 1 0 1 1 0
Node 0, zone DMA32, type HighAtomic 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone DMA32, type Isolate 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone Normal, type Unmovable 0 22 7 9 0 0 0 0 0 0 0
Node 0, zone Normal, type Movable 0 0 1 1 1 1 2 11 13 0 0
Node 0, zone Normal, type Reclaimable 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone Normal, type HighAtomic 0 0 0 0 0 0 0 0 0 0 0
Node 0, zone Normal, type Isolate 0 0 0 0 0 0 0 0 0 0 0
Number of blocks type Unmovable Movable Reclaimable HighAtomic Isolate
Node 0, zone DMA 1 7 0 0 0
Node 0, zone DMA32 8 1472 48 0 0
Node 0, zone Normal 120 345 47 0 0

16
tests/fixtures/linux-proc/partitions vendored Normal file
View File

@ -0,0 +1,16 @@
major minor #blocks name
7 0 56896 loop0
7 1 56868 loop1
7 2 111248 loop2
7 3 63448 loop3
7 5 48088 loop5
7 6 48080 loop6
7 7 105464 loop7
8 0 20971520 sda
8 1 1024 sda1
8 2 1048576 sda2
8 3 19919872 sda3
11 0 1021566 sr0
253 0 19918848 dm-0
7 8 63444 loop8

6
tests/fixtures/linux-proc/pid_fdinfo vendored Normal file
View File

@ -0,0 +1,6 @@
pos: 0
flags: 02004002
mnt_id: 9
scm_fds: 0
ino: 63107
lock: 1: FLOCK ADVISORY WRITE 359 00:13:11691 0 EOF

View File

@ -0,0 +1,7 @@
pos: 0
flags: 04002
mnt_id: 9
ino: 63107
size: 32768
count: 2
exp_name: system-heap

View File

@ -0,0 +1,5 @@
pos: 0
flags: 02
mnt_id: 9
ino: 63107
tfd: 5 events: 1d data: ffffffffffffffff pos:0 ino:61af sdev:7

View File

@ -0,0 +1,7 @@
pos: 0
flags: 02
mnt_id: 9
ino: 63107
fanotify flags:10 event-flags:0
fanotify mnt_id:12 mflags:40 mask:38 ignored_mask:40000003
fanotify ino:4f969 sdev:800013 mflags:0 mask:3b ignored_mask:40000000 fhandle-bytes:8 fhandle-type:1 f_handle:69f90400c275b5b4

View File

@ -0,0 +1,5 @@
pos: 0
flags: 02000000
mnt_id: 9
ino: 63107
inotify wd:3 ino:9e7e sdev:800013 mask:800afce ignored_mask:0 fhandle-bytes:8 fhandle-type:1 f_handle:7e9e0000640d1b6d

View File

@ -0,0 +1,9 @@
pos: 0
flags: 02
mnt_id: 9
ino: 63107
clockid: 0
ticks: 0
settime flags: 01
it_value: (0, 49406829)
it_interval: (1, 0)

7
tests/fixtures/linux-proc/pid_io vendored Normal file
View File

@ -0,0 +1,7 @@
rchar: 4699288382
wchar: 2931802997
syscr: 661897
syscw: 890910
read_bytes: 168468480
write_bytes: 27357184
cancelled_write_bytes: 16883712

214
tests/fixtures/linux-proc/pid_maps vendored Normal file
View File

@ -0,0 +1,214 @@
55a9e753c000-55a9e7570000 r--p 00000000 fd:00 798126 /usr/lib/systemd/systemd
55a9e7570000-55a9e763a000 r-xp 00034000 fd:00 798126 /usr/lib/systemd/systemd
55a9e763a000-55a9e7694000 r--p 000fe000 fd:00 798126 /usr/lib/systemd/systemd
55a9e7695000-55a9e76da000 r--p 00158000 fd:00 798126 /usr/lib/systemd/systemd
55a9e76da000-55a9e76db000 rw-p 0019d000 fd:00 798126 /usr/lib/systemd/systemd
55a9e8cd4000-55a9e8f68000 rw-p 00000000 00:00 0 [heap]
7f53a4000000-7f53a4021000 rw-p 00000000 00:00 0
7f53a4021000-7f53a8000000 ---p 00000000 00:00 0
7f53ac000000-7f53ac021000 rw-p 00000000 00:00 0
7f53ac021000-7f53b0000000 ---p 00000000 00:00 0
7f53b2fb8000-7f53b2fb9000 ---p 00000000 00:00 0
7f53b2fb9000-7f53b37b9000 rw-p 00000000 00:00 0
7f53b37b9000-7f53b37ba000 ---p 00000000 00:00 0
7f53b37ba000-7f53b3fc1000 rw-p 00000000 00:00 0
7f53b3fc1000-7f53b3fd0000 r--p 00000000 fd:00 793156 /usr/lib/x86_64-linux-gnu/libm-2.32.so
7f53b3fd0000-7f53b4077000 r-xp 0000f000 fd:00 793156 /usr/lib/x86_64-linux-gnu/libm-2.32.so
7f53b4077000-7f53b410e000 r--p 000b6000 fd:00 793156 /usr/lib/x86_64-linux-gnu/libm-2.32.so
7f53b410e000-7f53b410f000 r--p 0014c000 fd:00 793156 /usr/lib/x86_64-linux-gnu/libm-2.32.so
7f53b410f000-7f53b4110000 rw-p 0014d000 fd:00 793156 /usr/lib/x86_64-linux-gnu/libm-2.32.so
7f53b4110000-7f53b4114000 r--p 00000000 fd:00 788923 /usr/lib/x86_64-linux-gnu/libudev.so.1.6.18
7f53b4114000-7f53b412d000 r-xp 00004000 fd:00 788923 /usr/lib/x86_64-linux-gnu/libudev.so.1.6.18
7f53b412d000-7f53b4136000 r--p 0001d000 fd:00 788923 /usr/lib/x86_64-linux-gnu/libudev.so.1.6.18
7f53b4136000-7f53b4137000 r--p 00025000 fd:00 788923 /usr/lib/x86_64-linux-gnu/libudev.so.1.6.18
7f53b4137000-7f53b4138000 rw-p 00026000 fd:00 788923 /usr/lib/x86_64-linux-gnu/libudev.so.1.6.18
7f53b4138000-7f53b4148000 r--p 00000000 fd:00 793263 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b4148000-7f53b417e000 r-xp 00010000 fd:00 793263 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b417e000-7f53b42b5000 r--p 00046000 fd:00 793263 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b42b5000-7f53b42b6000 ---p 0017d000 fd:00 793263 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b42b6000-7f53b42b9000 r--p 0017d000 fd:00 793263 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b42b9000-7f53b42ba000 rw-p 00180000 fd:00 793263 /usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b42ba000-7f53b42bf000 r--p 00000000 fd:00 793102 /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42bf000-7f53b42d4000 r-xp 00005000 fd:00 793102 /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42d4000-7f53b42de000 r--p 0001a000 fd:00 793102 /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42de000-7f53b42df000 ---p 00024000 fd:00 793102 /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42df000-7f53b42e0000 r--p 00024000 fd:00 793102 /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42e0000-7f53b42e1000 rw-p 00025000 fd:00 793102 /usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42e1000-7f53b42e5000 r--p 00000000 fd:00 793139 /usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
7f53b42e5000-7f53b42ee000 r-xp 00004000 fd:00 793139 /usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
7f53b42ee000-7f53b42f2000 r--p 0000d000 fd:00 793139 /usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
7f53b42f2000-7f53b42f3000 r--p 00010000 fd:00 793139 /usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
7f53b42f3000-7f53b42f4000 rw-p 00011000 fd:00 793139 /usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
7f53b42f4000-7f53b42f6000 rw-p 00000000 00:00 0
7f53b42f6000-7f53b42f7000 r--p 00000000 fd:00 793030 /usr/lib/x86_64-linux-gnu/libargon2.so.1
7f53b42f7000-7f53b42fc000 r-xp 00001000 fd:00 793030 /usr/lib/x86_64-linux-gnu/libargon2.so.1
7f53b42fc000-7f53b42fe000 r--p 00006000 fd:00 793030 /usr/lib/x86_64-linux-gnu/libargon2.so.1
7f53b42fe000-7f53b42ff000 r--p 00007000 fd:00 793030 /usr/lib/x86_64-linux-gnu/libargon2.so.1
7f53b42ff000-7f53b4300000 rw-p 00008000 fd:00 793030 /usr/lib/x86_64-linux-gnu/libargon2.so.1
7f53b4300000-7f53b430a000 r--p 00000000 fd:00 793061 /usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7f53b430a000-7f53b4352000 r-xp 0000a000 fd:00 793061 /usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7f53b4352000-7f53b4366000 r--p 00052000 fd:00 793061 /usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7f53b4366000-7f53b4367000 r--p 00065000 fd:00 793061 /usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7f53b4367000-7f53b436a000 rw-p 00066000 fd:00 793061 /usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1
7f53b436a000-7f53b436b000 rw-p 00000000 00:00 0
7f53b436b000-7f53b436d000 r--p 00000000 fd:00 793279 /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f53b436d000-7f53b4371000 r-xp 00002000 fd:00 793279 /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f53b4371000-7f53b4372000 r--p 00006000 fd:00 793279 /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f53b4372000-7f53b4373000 r--p 00006000 fd:00 793279 /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f53b4373000-7f53b4374000 rw-p 00007000 fd:00 793279 /usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f53b4374000-7f53b43ec000 r--p 00000000 fd:00 790506 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b43ec000-7f53b458e000 r-xp 00078000 fd:00 790506 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b458e000-7f53b461e000 r--p 0021a000 fd:00 790506 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b461e000-7f53b461f000 ---p 002aa000 fd:00 790506 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b461f000-7f53b464b000 r--p 002aa000 fd:00 790506 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b464b000-7f53b464d000 rw-p 002d6000 fd:00 790506 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b464d000-7f53b4651000 rw-p 00000000 00:00 0
7f53b4651000-7f53b4653000 r--p 00000000 fd:00 793046 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
7f53b4653000-7f53b4656000 r-xp 00002000 fd:00 793046 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
7f53b4656000-7f53b4657000 r--p 00005000 fd:00 793046 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
7f53b4657000-7f53b4658000 r--p 00005000 fd:00 793046 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
7f53b4658000-7f53b4659000 rw-p 00006000 fd:00 793046 /usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
7f53b4659000-7f53b465b000 r--p 00000000 fd:00 793203 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0
7f53b465b000-7f53b46bf000 r-xp 00002000 fd:00 793203 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0
7f53b46bf000-7f53b46e7000 r--p 00066000 fd:00 793203 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0
7f53b46e7000-7f53b46e8000 r--p 0008d000 fd:00 793203 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0
7f53b46e8000-7f53b46e9000 rw-p 0008e000 fd:00 793203 /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0
7f53b46e9000-7f53b46eb000 rw-p 00000000 00:00 0
7f53b46eb000-7f53b46f2000 r--p 00000000 fd:00 793218 /usr/lib/x86_64-linux-gnu/libpthread-2.32.so
7f53b46f2000-7f53b4702000 r-xp 00007000 fd:00 793218 /usr/lib/x86_64-linux-gnu/libpthread-2.32.so
7f53b4702000-7f53b4707000 r--p 00017000 fd:00 793218 /usr/lib/x86_64-linux-gnu/libpthread-2.32.so
7f53b4707000-7f53b4708000 r--p 0001b000 fd:00 793218 /usr/lib/x86_64-linux-gnu/libpthread-2.32.so
7f53b4708000-7f53b4709000 rw-p 0001c000 fd:00 793218 /usr/lib/x86_64-linux-gnu/libpthread-2.32.so
7f53b4709000-7f53b470d000 rw-p 00000000 00:00 0
7f53b470d000-7f53b470e000 r--p 00000000 fd:00 793062 /usr/lib/x86_64-linux-gnu/libdl-2.32.so
7f53b470e000-7f53b4710000 r-xp 00001000 fd:00 793062 /usr/lib/x86_64-linux-gnu/libdl-2.32.so
7f53b4710000-7f53b4711000 r--p 00003000 fd:00 793062 /usr/lib/x86_64-linux-gnu/libdl-2.32.so
7f53b4711000-7f53b4712000 r--p 00003000 fd:00 793062 /usr/lib/x86_64-linux-gnu/libdl-2.32.so
7f53b4712000-7f53b4713000 rw-p 00004000 fd:00 793062 /usr/lib/x86_64-linux-gnu/libdl-2.32.so
7f53b4713000-7f53b4716000 r--p 00000000 fd:00 793154 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b4716000-7f53b472e000 r-xp 00003000 fd:00 793154 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b472e000-7f53b4739000 r--p 0001b000 fd:00 793154 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b4739000-7f53b473a000 ---p 00026000 fd:00 793154 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b473a000-7f53b473b000 r--p 00026000 fd:00 793154 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b473b000-7f53b473c000 rw-p 00027000 fd:00 793154 /usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b473c000-7f53b4740000 r--p 00000000 fd:00 792974 /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5
7f53b4740000-7f53b47f8000 r-xp 00004000 fd:00 792974 /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5
7f53b47f8000-7f53b480a000 r--p 000bc000 fd:00 792974 /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5
7f53b480a000-7f53b480b000 r--p 000cd000 fd:00 792974 /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5
7f53b480b000-7f53b480c000 rw-p 000ce000 fd:00 792974 /usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5
7f53b480c000-7f53b480e000 r--p 00000000 fd:00 787663 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
7f53b480e000-7f53b4829000 r-xp 00002000 fd:00 787663 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
7f53b4829000-7f53b482c000 r--p 0001d000 fd:00 787663 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
7f53b482c000-7f53b482d000 r--p 0001f000 fd:00 787663 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
7f53b482d000-7f53b482e000 rw-p 00020000 fd:00 787663 /usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
7f53b482e000-7f53b4830000 rw-p 00000000 00:00 0
7f53b4830000-7f53b4832000 r--p 00000000 fd:00 793129 /usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0
7f53b4832000-7f53b4836000 r-xp 00002000 fd:00 793129 /usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0
7f53b4836000-7f53b4838000 r--p 00006000 fd:00 793129 /usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0
7f53b4838000-7f53b4839000 r--p 00007000 fd:00 793129 /usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0
7f53b4839000-7f53b483a000 rw-p 00008000 fd:00 793129 /usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0
7f53b483a000-7f53b483c000 r--p 00000000 fd:00 793128 /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7
7f53b483c000-7f53b4841000 r-xp 00002000 fd:00 793128 /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7
7f53b4841000-7f53b485a000 r--p 00007000 fd:00 793128 /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7
7f53b485a000-7f53b485b000 r--p 0001f000 fd:00 793128 /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7
7f53b485b000-7f53b485c000 rw-p 00020000 fd:00 793128 /usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7
7f53b485c000-7f53b4868000 r--p 00000000 fd:00 793092 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
7f53b4868000-7f53b4936000 r-xp 0000c000 fd:00 793092 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
7f53b4936000-7f53b4973000 r--p 000da000 fd:00 793092 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
7f53b4973000-7f53b4975000 r--p 00116000 fd:00 793092 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
7f53b4975000-7f53b497a000 rw-p 00118000 fd:00 793092 /usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
7f53b497a000-7f53b4981000 r--p 00000000 fd:00 793052 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b4981000-7f53b49d2000 r-xp 00007000 fd:00 793052 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49d2000-7f53b49ec000 r--p 00058000 fd:00 793052 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49ec000-7f53b49ed000 ---p 00072000 fd:00 793052 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49ed000-7f53b49ef000 r--p 00072000 fd:00 793052 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49ef000-7f53b49f1000 rw-p 00074000 fd:00 793052 /usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49f1000-7f53b49f3000 r--p 00000000 fd:00 793050 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f53b49f3000-7f53b4a08000 r-xp 00002000 fd:00 793050 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f53b4a08000-7f53b4a22000 r--p 00017000 fd:00 793050 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f53b4a22000-7f53b4a23000 r--p 00030000 fd:00 793050 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f53b4a23000-7f53b4a24000 rw-p 00031000 fd:00 793050 /usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f53b4a24000-7f53b4a2c000 rw-p 00000000 00:00 0
7f53b4a2c000-7f53b4a2f000 r--p 00000000 fd:00 793047 /usr/lib/x86_64-linux-gnu/libcap.so.2.43
7f53b4a2f000-7f53b4a33000 r-xp 00003000 fd:00 793047 /usr/lib/x86_64-linux-gnu/libcap.so.2.43
7f53b4a33000-7f53b4a35000 r--p 00007000 fd:00 793047 /usr/lib/x86_64-linux-gnu/libcap.so.2.43
7f53b4a35000-7f53b4a36000 r--p 00008000 fd:00 793047 /usr/lib/x86_64-linux-gnu/libcap.so.2.43
7f53b4a36000-7f53b4a37000 rw-p 00009000 fd:00 793047 /usr/lib/x86_64-linux-gnu/libcap.so.2.43
7f53b4a37000-7f53b4a39000 rw-p 00000000 00:00 0
7f53b4a39000-7f53b4a42000 r--p 00000000 fd:00 793038 /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a42000-7f53b4a76000 r-xp 00009000 fd:00 793038 /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a76000-7f53b4a86000 r--p 0003d000 fd:00 793038 /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a86000-7f53b4a87000 ---p 0004d000 fd:00 793038 /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a87000-7f53b4a8b000 r--p 0004d000 fd:00 793038 /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a8b000-7f53b4a8c000 rw-p 00051000 fd:00 793038 /usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a8c000-7f53b4a8e000 r--p 00000000 fd:00 793022 /usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253
7f53b4a8e000-7f53b4a93000 r-xp 00002000 fd:00 793022 /usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253
7f53b4a93000-7f53b4a95000 r--p 00007000 fd:00 793022 /usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253
7f53b4a95000-7f53b4a96000 r--p 00008000 fd:00 793022 /usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253
7f53b4a96000-7f53b4a97000 rw-p 00009000 fd:00 793022 /usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253
7f53b4a97000-7f53b4abd000 r--p 00000000 fd:00 793044 /usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4abd000-7f53b4c2a000 r-xp 00026000 fd:00 793044 /usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4c2a000-7f53b4c76000 r--p 00193000 fd:00 793044 /usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4c76000-7f53b4c77000 ---p 001df000 fd:00 793044 /usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4c77000-7f53b4c7a000 r--p 001df000 fd:00 793044 /usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4c7a000-7f53b4c7d000 rw-p 001e2000 fd:00 793044 /usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4c7d000-7f53b4c81000 rw-p 00000000 00:00 0
7f53b4c81000-7f53b4c84000 r--p 00000000 fd:00 793025 /usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0
7f53b4c84000-7f53b4c8d000 r-xp 00003000 fd:00 793025 /usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0
7f53b4c8d000-7f53b4c94000 r--p 0000c000 fd:00 793025 /usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0
7f53b4c94000-7f53b4c95000 r--p 00012000 fd:00 793025 /usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0
7f53b4c95000-7f53b4c96000 rw-p 00013000 fd:00 793025 /usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0
7f53b4c96000-7f53b4c99000 r--p 00000000 fd:00 793143 /usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5
7f53b4c99000-7f53b4ca9000 r-xp 00003000 fd:00 793143 /usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5
7f53b4ca9000-7f53b4caf000 r--p 00013000 fd:00 793143 /usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5
7f53b4caf000-7f53b4cb0000 r--p 00018000 fd:00 793143 /usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5
7f53b4cb0000-7f53b4cb1000 rw-p 00019000 fd:00 793143 /usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5
7f53b4cb1000-7f53b4cb4000 r--p 00000000 fd:00 793036 /usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cb4000-7f53b4cbc000 r-xp 00003000 fd:00 793036 /usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cbc000-7f53b4cd0000 r--p 0000b000 fd:00 793036 /usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cd0000-7f53b4cd1000 ---p 0001f000 fd:00 793036 /usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cd1000-7f53b4cd2000 r--p 0001f000 fd:00 793036 /usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cd2000-7f53b4cd3000 rw-p 00020000 fd:00 793036 /usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cd3000-7f53b4cdf000 rw-p 00000000 00:00 0
7f53b4cdf000-7f53b4ce2000 r--p 00000000 fd:00 793193 /usr/lib/x86_64-linux-gnu/libpam.so.0.84.2
7f53b4ce2000-7f53b4ceb000 r-xp 00003000 fd:00 793193 /usr/lib/x86_64-linux-gnu/libpam.so.0.84.2
7f53b4ceb000-7f53b4cef000 r--p 0000c000 fd:00 793193 /usr/lib/x86_64-linux-gnu/libpam.so.0.84.2
7f53b4cef000-7f53b4cf0000 r--p 0000f000 fd:00 793193 /usr/lib/x86_64-linux-gnu/libpam.so.0.84.2
7f53b4cf0000-7f53b4cf1000 rw-p 00010000 fd:00 793193 /usr/lib/x86_64-linux-gnu/libpam.so.0.84.2
7f53b4cf1000-7f53b4cfb000 r--p 00000000 fd:00 793163 /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0
7f53b4cfb000-7f53b4d39000 r-xp 0000a000 fd:00 793163 /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0
7f53b4d39000-7f53b4d4c000 r--p 00048000 fd:00 793163 /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0
7f53b4d4c000-7f53b4d4e000 r--p 0005a000 fd:00 793163 /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0
7f53b4d4e000-7f53b4d4f000 rw-p 0005c000 fd:00 793163 /usr/lib/x86_64-linux-gnu/libmount.so.1.1.0
7f53b4d4f000-7f53b4d55000 r--p 00000000 fd:00 793228 /usr/lib/x86_64-linux-gnu/libselinux.so.1
7f53b4d55000-7f53b4d6e000 r-xp 00006000 fd:00 793228 /usr/lib/x86_64-linux-gnu/libselinux.so.1
7f53b4d6e000-7f53b4d76000 r--p 0001f000 fd:00 793228 /usr/lib/x86_64-linux-gnu/libselinux.so.1
7f53b4d76000-7f53b4d77000 r--p 00026000 fd:00 793228 /usr/lib/x86_64-linux-gnu/libselinux.so.1
7f53b4d77000-7f53b4d78000 rw-p 00027000 fd:00 793228 /usr/lib/x86_64-linux-gnu/libselinux.so.1
7f53b4d78000-7f53b4d7a000 rw-p 00000000 00:00 0
7f53b4d7a000-7f53b4da2000 r--p 00000000 fd:00 793227 /usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3
7f53b4da2000-7f53b4dad000 r-xp 00028000 fd:00 793227 /usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3
7f53b4dad000-7f53b4db1000 r--p 00033000 fd:00 793227 /usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3
7f53b4db1000-7f53b4dcc000 r--p 00036000 fd:00 793227 /usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3
7f53b4dcc000-7f53b4dcd000 rw-p 00051000 fd:00 793227 /usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3
7f53b4dcd000-7f53b4dd0000 r--p 00000000 fd:00 793224 /usr/lib/x86_64-linux-gnu/librt-2.32.so
7f53b4dd0000-7f53b4dd4000 r-xp 00003000 fd:00 793224 /usr/lib/x86_64-linux-gnu/librt-2.32.so
7f53b4dd4000-7f53b4dd6000 r--p 00007000 fd:00 793224 /usr/lib/x86_64-linux-gnu/librt-2.32.so
7f53b4dd6000-7f53b4dd7000 r--p 00008000 fd:00 793224 /usr/lib/x86_64-linux-gnu/librt-2.32.so
7f53b4dd7000-7f53b4dd8000 rw-p 00009000 fd:00 793224 /usr/lib/x86_64-linux-gnu/librt-2.32.so
7f53b4ddf000-7f53b4e29000 r--p 00000000 fd:00 798124 /usr/lib/systemd/libsystemd-shared-246.so
7f53b4e29000-7f53b4fac000 r-xp 0004a000 fd:00 798124 /usr/lib/systemd/libsystemd-shared-246.so
7f53b4fac000-7f53b503f000 r--p 001cd000 fd:00 798124 /usr/lib/systemd/libsystemd-shared-246.so
7f53b503f000-7f53b5040000 ---p 00260000 fd:00 798124 /usr/lib/systemd/libsystemd-shared-246.so
7f53b5040000-7f53b5050000 r--p 00260000 fd:00 798124 /usr/lib/systemd/libsystemd-shared-246.so
7f53b5050000-7f53b5051000 rw-p 00270000 fd:00 798124 /usr/lib/systemd/libsystemd-shared-246.so
7f53b5051000-7f53b5054000 rw-p 00000000 00:00 0
7f53b5054000-7f53b5055000 r--p 00000000 fd:00 793013 /usr/lib/x86_64-linux-gnu/ld-2.32.so
7f53b5055000-7f53b5079000 r-xp 00001000 fd:00 793013 /usr/lib/x86_64-linux-gnu/ld-2.32.so
7f53b5079000-7f53b5082000 r--p 00025000 fd:00 793013 /usr/lib/x86_64-linux-gnu/ld-2.32.so
7f53b5082000-7f53b5083000 r--p 0002d000 fd:00 793013 /usr/lib/x86_64-linux-gnu/ld-2.32.so
7f53b5083000-7f53b5085000 rw-p 0002e000 fd:00 793013 /usr/lib/x86_64-linux-gnu/ld-2.32.so
7ffd1b23e000-7ffd1b340000 rw-p 00000000 00:00 0 [stack]
7ffd1b3b1000-7ffd1b3b5000 r--p 00000000 00:00 0 [vvar]
7ffd1b3b5000-7ffd1b3b7000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0 [vsyscall]

46
tests/fixtures/linux-proc/pid_mountinfo vendored Normal file
View File

@ -0,0 +1,46 @@
24 30 0:22 / /sys rw,nosuid,nodev,noexec,relatime master:1 shared:7 - sysfs sysfs rw
25 30 0:23 / /proc rw,nosuid,nodev,noexec,relatime shared:14 - proc proc rw
26 30 0:5 / /dev rw,nosuid,noexec,relatime - devtmpfs udev rw,size=1951480k,nr_inodes=487870,mode=755
27 26 0:24 / /dev/pts rw,nosuid,noexec,relatime shared:3 - devpts devpts rw,gid=5,mode=620,ptmxmode=000
28 30 0:25 / /run rw,nosuid,nodev,noexec,relatime shared:5 - tmpfs tmpfs rw,size=399728k,mode=755
30 1 253:0 / / rw,relatime shared:1 - ext4 /dev/mapper/ubuntu--vg-ubuntu--lv
31 24 0:6 / /sys/kernel/security rw,nosuid,nodev,noexec,relatime unbindable - securityfs securityfs rw
32 26 0:27 / /dev/shm rw,nosuid,nodev shared:4 - tmpfs tmpfs rw
33 28 0:28 / /run/lock rw,nosuid,nodev,noexec,relatime shared:6 - tmpfs tmpfs rw,size=5120k
34 24 0:29 / /sys/fs/cgroup ro,nosuid,nodev,noexec shared:9 - tmpfs tmpfs ro,size=4096k,nr_inodes=1024,mode=755
35 34 0:30 / /sys/fs/cgroup/unified rw,nosuid,nodev,noexec,relatime shared:10 - cgroup2 cgroup2 rw,nsdelegate
36 34 0:31 / /sys/fs/cgroup/systemd rw,nosuid,nodev,noexec,relatime shared:11 - cgroup cgroup rw,xattr,name=systemd
37 24 0:32 / /sys/fs/pstore rw,nosuid,nodev,noexec,relatime shared:12 - pstore pstore rw
38 24 0:33 / /sys/fs/bpf rw,nosuid,nodev,noexec,relatime shared:13 - bpf none rw,mode=700
39 34 0:34 / /sys/fs/cgroup/hugetlb rw,nosuid,nodev,noexec,relatime shared:15 - cgroup cgroup rw,hugetlb
40 34 0:35 / /sys/fs/cgroup/net_cls,net_prio rw,nosuid,nodev,noexec,relatime shared:16 - cgroup cgroup rw,net_cls,net_prio
41 34 0:36 / /sys/fs/cgroup/pids rw,nosuid,nodev,noexec,relatime shared:17 - cgroup cgroup rw,pids
42 34 0:37 / /sys/fs/cgroup/blkio rw,nosuid,nodev,noexec,relatime shared:18 - cgroup cgroup rw,blkio
43 34 0:38 / /sys/fs/cgroup/memory rw,nosuid,nodev,noexec,relatime shared:19 - cgroup cgroup rw,memory
44 34 0:39 / /sys/fs/cgroup/devices rw,nosuid,nodev,noexec,relatime shared:20 - cgroup cgroup rw,devices
45 34 0:40 / /sys/fs/cgroup/cpu,cpuacct rw,nosuid,nodev,noexec,relatime shared:21 - cgroup cgroup rw,cpu,cpuacct
46 34 0:41 / /sys/fs/cgroup/rdma rw,nosuid,nodev,noexec,relatime shared:22 - cgroup cgroup rw,rdma
47 34 0:42 / /sys/fs/cgroup/perf_event rw,nosuid,nodev,noexec,relatime shared:23 - cgroup cgroup rw,perf_event
48 34 0:43 / /sys/fs/cgroup/freezer rw,nosuid,nodev,noexec,relatime shared:24 - cgroup cgroup rw,freezer
49 34 0:44 / /sys/fs/cgroup/cpuset rw,nosuid,nodev,noexec,relatime shared:25 - cgroup cgroup rw,cpuset
50 25 0:45 / /proc/sys/fs/binfmt_misc rw,relatime shared:26 - autofs systemd-1 rw,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=29773
51 26 0:46 / /dev/hugepages rw,relatime shared:27 - hugetlbfs hugetlbfs rw,pagesize=2M
52 26 0:20 / /dev/mqueue rw,nosuid,nodev,noexec,relatime shared:28 - mqueue mqueue rw
53 24 0:7 / /sys/kernel/debug rw,nosuid,nodev,noexec,relatime shared:29 - debugfs debugfs rw
54 24 0:11 / /sys/kernel/tracing rw,nosuid,nodev,noexec,relatime shared:30 - tracefs tracefs rw
55 24 0:47 / /sys/fs/fuse/connections rw,nosuid,nodev,noexec,relatime shared:31 - fusectl fusectl rw
56 24 0:21 / /sys/kernel/config rw,nosuid,nodev,noexec,relatime shared:32 - configfs configfs rw
125 30 8:2 / /boot rw,relatime shared:67 - ext4 /dev/sda2 rw
131 30 7:0 / /snap/core18/2538 ro,nodev,relatime shared:71 - squashfs /dev/loop0 ro
134 30 7:1 / /snap/core18/2409 ro,nodev,relatime shared:73 - squashfs /dev/loop1 ro
137 30 7:3 / /snap/core20/1587 ro,nodev,relatime shared:75 - squashfs /dev/loop3 ro
140 30 7:5 / /snap/snapd/16292 ro,nodev,relatime shared:77 - squashfs /dev/loop5 ro
146 30 7:7 / /snap/lxd/23339 ro,nodev,relatime shared:81 - squashfs /dev/loop7 ro
149 30 7:6 / /snap/snapd/16010 ro,nodev,relatime shared:83 - squashfs /dev/loop6 ro
466 28 0:25 /snapd/ns /run/snapd/ns rw,nosuid,nodev,noexec,relatime - tmpfs tmpfs rw,size=399728k,mode=755
832 28 0:52 / /run/user/1000 rw,nosuid,nodev,relatime shared:426 - tmpfs tmpfs rw,size=399724k,nr_inodes=99931,mode=700,uid=1000,gid=1000
849 30 7:8 / /snap/core20/1611 ro,nodev,relatime shared:434 - squashfs /dev/loop8 ro
128 30 7:2 / /snap/lxd/23537 ro,nodev,relatime shared:69 - squashfs /dev/loop2 ro
481 466 0:4 mnt:[4026532641] /run/snapd/ns/lxd.mnt rw - nsfs nsfs rw
143 50 0:53 / /proc/sys/fs/binfmt_misc rw,nosuid,nodev,noexec,relatime shared:70 - binfmt_misc binfmt_misc rw
493 53 0:11 / /sys/kernel/debug/tracing rw,nosuid,nodev,noexec,relatime shared:265 - tracefs tracefs rw

213
tests/fixtures/linux-proc/pid_numa_maps vendored Normal file
View File

@ -0,0 +1,213 @@
55a9e753c000 default file=/usr/lib/systemd/systemd mapped=52 mapmax=2 active=16 N0=52 kernelpagesize_kB=4
55a9e7570000 default file=/usr/lib/systemd/systemd mapped=200 mapmax=3 active=120 N0=200 kernelpagesize_kB=4
55a9e763a000 default file=/usr/lib/systemd/systemd mapped=69 mapmax=3 N0=69 kernelpagesize_kB=4
55a9e7695000 default file=/usr/lib/systemd/systemd anon=63 dirty=63 mapped=67 mapmax=3 active=63 N0=67 kernelpagesize_kB=4
55a9e76da000 default file=/usr/lib/systemd/systemd anon=1 dirty=1 N0=1 kernelpagesize_kB=4
55a9e8cd4000 default heap anon=611 dirty=611 mapmax=2 N0=611 kernelpagesize_kB=4
7f53a4000000 default anon=3 dirty=3 N0=3 kernelpagesize_kB=4
7f53a4021000 default
7f53ac000000 default anon=3 dirty=3 N0=3 kernelpagesize_kB=4
7f53ac021000 default
7f53b2fb8000 default
7f53b2fb9000 default anon=2 dirty=2 N0=2 kernelpagesize_kB=4
7f53b37b9000 default
7f53b37ba000 default anon=8 dirty=8 mapmax=2 N0=8 kernelpagesize_kB=4
7f53b3fc1000 default file=/usr/lib/x86_64-linux-gnu/libm-2.32.so mapped=14 mapmax=12 N0=14 kernelpagesize_kB=4
7f53b3fd0000 default file=/usr/lib/x86_64-linux-gnu/libm-2.32.so mapped=71 mapmax=12 N0=71 kernelpagesize_kB=4
7f53b4077000 default file=/usr/lib/x86_64-linux-gnu/libm-2.32.so
7f53b410e000 default file=/usr/lib/x86_64-linux-gnu/libm-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b410f000 default file=/usr/lib/x86_64-linux-gnu/libm-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4110000 default file=/usr/lib/x86_64-linux-gnu/libudev.so.1.6.18 mapped=4 mapmax=9 N0=4 kernelpagesize_kB=4
7f53b4114000 default file=/usr/lib/x86_64-linux-gnu/libudev.so.1.6.18 mapped=16 mapmax=9 N0=16 kernelpagesize_kB=4
7f53b412d000 default file=/usr/lib/x86_64-linux-gnu/libudev.so.1.6.18
7f53b4136000 default file=/usr/lib/x86_64-linux-gnu/libudev.so.1.6.18 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4137000 default file=/usr/lib/x86_64-linux-gnu/libudev.so.1.6.18 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4138000 default file=/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0 mapped=16 mapmax=7 N0=16 kernelpagesize_kB=4
7f53b4148000 default file=/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0 mapped=15 mapmax=7 N0=15 kernelpagesize_kB=4
7f53b417e000 default file=/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b42b5000 default file=/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0
7f53b42b6000 default file=/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0 anon=3 dirty=3 mapmax=2 N0=3 kernelpagesize_kB=4
7f53b42b9000 default file=/usr/lib/x86_64-linux-gnu/libunistring.so.2.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b42ba000 default file=/usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0 mapped=5 mapmax=17 N0=5 kernelpagesize_kB=4
7f53b42bf000 default file=/usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0 mapped=20 mapmax=17 N0=20 kernelpagesize_kB=4
7f53b42d4000 default file=/usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0 mapped=9 mapmax=17 N0=9 kernelpagesize_kB=4
7f53b42de000 default file=/usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0
7f53b42df000 default file=/usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b42e0000 default file=/usr/lib/x86_64-linux-gnu/libgpg-error.so.0.29.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b42e1000 default file=/usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0 mapped=4 mapmax=7 N0=4 kernelpagesize_kB=4
7f53b42e5000 default file=/usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0 mapped=8 mapmax=7 N0=8 kernelpagesize_kB=4
7f53b42ee000 default file=/usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0
7f53b42f2000 default file=/usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b42f3000 default file=/usr/lib/x86_64-linux-gnu/libjson-c.so.5.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b42f4000 default anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b42f6000 default file=/usr/lib/x86_64-linux-gnu/libargon2.so.1 mapped=1 mapmax=7 N0=1 kernelpagesize_kB=4
7f53b42f7000 default file=/usr/lib/x86_64-linux-gnu/libargon2.so.1 mapped=5 mapmax=7 N0=5 kernelpagesize_kB=4
7f53b42fc000 default file=/usr/lib/x86_64-linux-gnu/libargon2.so.1
7f53b42fe000 default file=/usr/lib/x86_64-linux-gnu/libargon2.so.1 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b42ff000 default file=/usr/lib/x86_64-linux-gnu/libargon2.so.1 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4300000 default file=/usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 mapped=10 mapmax=8 N0=10 kernelpagesize_kB=4
7f53b430a000 default file=/usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 mapped=15 mapmax=8 N0=15 kernelpagesize_kB=4
7f53b4352000 default file=/usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 mapped=16 mapmax=8 N0=16 kernelpagesize_kB=4
7f53b4366000 default file=/usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4367000 default file=/usr/lib/x86_64-linux-gnu/libdevmapper.so.1.02.1 anon=2 dirty=2 mapped=3 mapmax=8 N0=3 kernelpagesize_kB=4
7f53b436a000 default
7f53b436b000 default file=/usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0 mapped=2 mapmax=8 N0=2 kernelpagesize_kB=4
7f53b436d000 default file=/usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0 mapped=4 mapmax=8 N0=4 kernelpagesize_kB=4
7f53b4371000 default file=/usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0
7f53b4372000 default file=/usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4373000 default file=/usr/lib/x86_64-linux-gnu/libuuid.so.1.3.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4374000 default file=/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 mapped=120 mapmax=13 N0=120 kernelpagesize_kB=4
7f53b43ec000 default file=/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 mapped=45 mapmax=13 N0=45 kernelpagesize_kB=4
7f53b458e000 default file=/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 mapped=16 mapmax=13 N0=16 kernelpagesize_kB=4
7f53b461e000 default file=/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1
7f53b461f000 default file=/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 anon=44 dirty=44 mapmax=2 N0=44 kernelpagesize_kB=4
7f53b464b000 default file=/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b464d000 default anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4651000 default file=/usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0 mapped=2 mapmax=17 N0=2 kernelpagesize_kB=4
7f53b4653000 default file=/usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0 mapped=3 mapmax=18 N0=3 kernelpagesize_kB=4
7f53b4656000 default file=/usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0
7f53b4657000 default file=/usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4658000 default file=/usr/lib/x86_64-linux-gnu/libcap-ng.so.0.0.0 anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b4659000 default file=/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0 mapped=2 mapmax=22 N0=2 kernelpagesize_kB=4
7f53b465b000 default file=/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0 mapped=15 mapmax=21 N0=15 kernelpagesize_kB=4
7f53b46bf000 default file=/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0
7f53b46e7000 default file=/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b46e8000 default file=/usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.9.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b46e9000 default anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b46eb000 default file=/usr/lib/x86_64-linux-gnu/libpthread-2.32.so mapped=7 mapmax=26 N0=7 kernelpagesize_kB=4
7f53b46f2000 default file=/usr/lib/x86_64-linux-gnu/libpthread-2.32.so mapped=16 mapmax=28 N0=16 kernelpagesize_kB=4
7f53b4702000 default file=/usr/lib/x86_64-linux-gnu/libpthread-2.32.so mapped=5 mapmax=17 N0=5 kernelpagesize_kB=4
7f53b4707000 default file=/usr/lib/x86_64-linux-gnu/libpthread-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4708000 default file=/usr/lib/x86_64-linux-gnu/libpthread-2.32.so anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b4709000 default anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b470d000 default file=/usr/lib/x86_64-linux-gnu/libdl-2.32.so mapped=1 mapmax=28 N0=1 kernelpagesize_kB=4
7f53b470e000 default file=/usr/lib/x86_64-linux-gnu/libdl-2.32.so mapped=2 mapmax=27 N0=2 kernelpagesize_kB=4
7f53b4710000 default file=/usr/lib/x86_64-linux-gnu/libdl-2.32.so
7f53b4711000 default file=/usr/lib/x86_64-linux-gnu/libdl-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4712000 default file=/usr/lib/x86_64-linux-gnu/libdl-2.32.so anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b4713000 default file=/usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4 mapped=3 mapmax=19 N0=3 kernelpagesize_kB=4
7f53b4716000 default file=/usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4 mapped=15 mapmax=19 N0=15 kernelpagesize_kB=4
7f53b472e000 default file=/usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b4739000 default file=/usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4
7f53b473a000 default file=/usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b473b000 default file=/usr/lib/x86_64-linux-gnu/liblzma.so.5.2.4 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b473c000 default file=/usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5 mapped=4 mapmax=17 N0=4 kernelpagesize_kB=4
7f53b4740000 default file=/usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5 mapped=16 mapmax=17 N0=16 kernelpagesize_kB=4
7f53b47f8000 default file=/usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5
7f53b480a000 default file=/usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b480b000 default file=/usr/lib/x86_64-linux-gnu/libzstd.so.1.4.5 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b480c000 default file=/usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2 mapped=2 mapmax=17 N0=2 kernelpagesize_kB=4
7f53b480e000 default file=/usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2 mapped=16 mapmax=17 N0=16 kernelpagesize_kB=4
7f53b4829000 default file=/usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2
7f53b482c000 default file=/usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b482d000 default file=/usr/lib/x86_64-linux-gnu/liblz4.so.1.9.2 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b482e000 default anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b4830000 default file=/usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0 mapped=2 mapmax=7 N0=2 kernelpagesize_kB=4
7f53b4832000 default file=/usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0 mapped=4 mapmax=7 N0=4 kernelpagesize_kB=4
7f53b4836000 default file=/usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0
7f53b4838000 default file=/usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4839000 default file=/usr/lib/x86_64-linux-gnu/libip4tc.so.2.0.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b483a000 default file=/usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7 mapped=2 mapmax=7 N0=2 kernelpagesize_kB=4
7f53b483c000 default file=/usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7 mapped=5 mapmax=7 N0=5 kernelpagesize_kB=4
7f53b4841000 default file=/usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7
7f53b485a000 default file=/usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b485b000 default file=/usr/lib/x86_64-linux-gnu/libidn2.so.0.3.7 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b485c000 default file=/usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5 mapped=12 mapmax=17 N0=12 kernelpagesize_kB=4
7f53b4868000 default file=/usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5 mapped=15 mapmax=17 N0=15 kernelpagesize_kB=4
7f53b4936000 default file=/usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5
7f53b4973000 default file=/usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5 anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b4975000 default file=/usr/lib/x86_64-linux-gnu/libgcrypt.so.20.2.5 anon=5 dirty=5 mapmax=2 N0=5 kernelpagesize_kB=4
7f53b497a000 default file=/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0 mapped=7 mapmax=7 N0=7 kernelpagesize_kB=4
7f53b4981000 default file=/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0 mapped=16 mapmax=7 N0=16 kernelpagesize_kB=4
7f53b49d2000 default file=/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49ec000 default file=/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0
7f53b49ed000 default file=/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0 anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b49ef000 default file=/usr/lib/x86_64-linux-gnu/libcryptsetup.so.12.6.0 anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b49f1000 default file=/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 mapped=2 mapmax=13 N0=2 kernelpagesize_kB=4
7f53b49f3000 default file=/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 mapped=12 mapmax=12 N0=12 kernelpagesize_kB=4
7f53b4a08000 default file=/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0
7f53b4a22000 default file=/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a23000 default file=/usr/lib/x86_64-linux-gnu/libcrypt.so.1.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a24000 default
7f53b4a2c000 default file=/usr/lib/x86_64-linux-gnu/libcap.so.2.43 mapped=3 mapmax=11 N0=3 kernelpagesize_kB=4
7f53b4a2f000 default file=/usr/lib/x86_64-linux-gnu/libcap.so.2.43 mapped=4 mapmax=12 N0=4 kernelpagesize_kB=4
7f53b4a33000 default file=/usr/lib/x86_64-linux-gnu/libcap.so.2.43
7f53b4a35000 default file=/usr/lib/x86_64-linux-gnu/libcap.so.2.43 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a36000 default file=/usr/lib/x86_64-linux-gnu/libcap.so.2.43 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a37000 default anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b4a39000 default file=/usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0 mapped=9 mapmax=12 N0=9 kernelpagesize_kB=4
7f53b4a42000 default file=/usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0 mapped=15 mapmax=12 N0=15 kernelpagesize_kB=4
7f53b4a76000 default file=/usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a86000 default file=/usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0
7f53b4a87000 default file=/usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0 anon=4 dirty=4 mapmax=2 N0=4 kernelpagesize_kB=4
7f53b4a8b000 default file=/usr/lib/x86_64-linux-gnu/libblkid.so.1.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a8c000 default file=/usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253 mapped=2 mapmax=8 N0=2 kernelpagesize_kB=4
7f53b4a8e000 default file=/usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253 mapped=5 mapmax=8 N0=5 kernelpagesize_kB=4
7f53b4a93000 default file=/usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253
7f53b4a95000 default file=/usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a96000 default file=/usr/lib/x86_64-linux-gnu/libacl.so.1.1.2253 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4a97000 default file=/usr/lib/x86_64-linux-gnu/libc-2.32.so mapped=37 mapmax=31 N0=37 kernelpagesize_kB=4
7f53b4abd000 default file=/usr/lib/x86_64-linux-gnu/libc-2.32.so mapped=314 mapmax=32 N0=314 kernelpagesize_kB=4
7f53b4c2a000 default file=/usr/lib/x86_64-linux-gnu/libc-2.32.so mapped=36 mapmax=32 N0=36 kernelpagesize_kB=4
7f53b4c76000 default file=/usr/lib/x86_64-linux-gnu/libc-2.32.so
7f53b4c77000 default file=/usr/lib/x86_64-linux-gnu/libc-2.32.so anon=3 dirty=3 mapmax=2 N0=3 kernelpagesize_kB=4
7f53b4c7a000 default file=/usr/lib/x86_64-linux-gnu/libc-2.32.so anon=3 dirty=3 N0=3 kernelpagesize_kB=4
7f53b4c7d000 default anon=3 dirty=3 N0=3 kernelpagesize_kB=4
7f53b4c81000 default file=/usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0 mapped=3 mapmax=3 N0=3 kernelpagesize_kB=4
7f53b4c84000 default file=/usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0 mapped=9 mapmax=3 active=0 N0=9 kernelpagesize_kB=4
7f53b4c8d000 default file=/usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0 mapped=6 mapmax=2 active=0 N0=6 kernelpagesize_kB=4
7f53b4c94000 default file=/usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4c95000 default file=/usr/lib/x86_64-linux-gnu/libapparmor.so.1.7.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4c96000 default file=/usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5 mapped=3 mapmax=8 N0=3 kernelpagesize_kB=4
7f53b4c99000 default file=/usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5 mapped=16 mapmax=8 N0=16 kernelpagesize_kB=4
7f53b4ca9000 default file=/usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5 mapped=6 mapmax=2 N0=6 kernelpagesize_kB=4
7f53b4caf000 default file=/usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4cb0000 default file=/usr/lib/x86_64-linux-gnu/libkmod.so.2.3.5 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4cb1000 default file=/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0 mapped=3 mapmax=16 N0=3 kernelpagesize_kB=4
7f53b4cb4000 default file=/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0 mapped=8 mapmax=16 N0=8 kernelpagesize_kB=4
7f53b4cbc000 default file=/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0 mapped=15 mapmax=6 active=14 N0=15 kernelpagesize_kB=4
7f53b4cd0000 default file=/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0
7f53b4cd1000 default file=/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4cd2000 default file=/usr/lib/x86_64-linux-gnu/libaudit.so.1.0.0 anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b4cd3000 default anon=3 dirty=3 mapmax=2 N0=3 kernelpagesize_kB=4
7f53b4cdf000 default file=/usr/lib/x86_64-linux-gnu/libpam.so.0.84.2 mapped=3 mapmax=15 N0=3 kernelpagesize_kB=4
7f53b4ce2000 default file=/usr/lib/x86_64-linux-gnu/libpam.so.0.84.2 mapped=8 mapmax=15 N0=8 kernelpagesize_kB=4
7f53b4ceb000 default file=/usr/lib/x86_64-linux-gnu/libpam.so.0.84.2
7f53b4cef000 default file=/usr/lib/x86_64-linux-gnu/libpam.so.0.84.2 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4cf0000 default file=/usr/lib/x86_64-linux-gnu/libpam.so.0.84.2 anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b4cf1000 default file=/usr/lib/x86_64-linux-gnu/libmount.so.1.1.0 mapped=10 mapmax=11 N0=10 kernelpagesize_kB=4
7f53b4cfb000 default file=/usr/lib/x86_64-linux-gnu/libmount.so.1.1.0 mapped=52 mapmax=11 N0=52 kernelpagesize_kB=4
7f53b4d39000 default file=/usr/lib/x86_64-linux-gnu/libmount.so.1.1.0 mapped=15 mapmax=2 N0=15 kernelpagesize_kB=4
7f53b4d4c000 default file=/usr/lib/x86_64-linux-gnu/libmount.so.1.1.0 anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b4d4e000 default file=/usr/lib/x86_64-linux-gnu/libmount.so.1.1.0 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4d4f000 default file=/usr/lib/x86_64-linux-gnu/libselinux.so.1 mapped=6 mapmax=22 N0=6 kernelpagesize_kB=4
7f53b4d55000 default file=/usr/lib/x86_64-linux-gnu/libselinux.so.1 mapped=25 mapmax=22 N0=25 kernelpagesize_kB=4
7f53b4d6e000 default file=/usr/lib/x86_64-linux-gnu/libselinux.so.1 mapped=8 mapmax=21 N0=8 kernelpagesize_kB=4
7f53b4d76000 default file=/usr/lib/x86_64-linux-gnu/libselinux.so.1 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4d77000 default file=/usr/lib/x86_64-linux-gnu/libselinux.so.1 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4d78000 default anon=2 dirty=2 mapmax=2 N0=2 kernelpagesize_kB=4
7f53b4d7a000 default file=/usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3 mapped=40 mapmax=7 N0=40 kernelpagesize_kB=4
7f53b4da2000 default file=/usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3 mapped=11 mapmax=7 N0=11 kernelpagesize_kB=4
7f53b4dad000 default file=/usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3 mapped=4 N0=4 kernelpagesize_kB=4
7f53b4db1000 default file=/usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3 anon=27 dirty=27 mapmax=2 N0=27 kernelpagesize_kB=4
7f53b4dcc000 default file=/usr/lib/x86_64-linux-gnu/libseccomp.so.2.4.3 anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4dcd000 default file=/usr/lib/x86_64-linux-gnu/librt-2.32.so mapped=3 mapmax=17 N0=3 kernelpagesize_kB=4
7f53b4dd0000 default file=/usr/lib/x86_64-linux-gnu/librt-2.32.so mapped=4 mapmax=17 N0=4 kernelpagesize_kB=4
7f53b4dd4000 default file=/usr/lib/x86_64-linux-gnu/librt-2.32.so
7f53b4dd6000 default file=/usr/lib/x86_64-linux-gnu/librt-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4dd7000 default file=/usr/lib/x86_64-linux-gnu/librt-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b4ddf000 default file=/usr/lib/systemd/libsystemd-shared-246.so mapped=74 mapmax=7 N0=74 kernelpagesize_kB=4
7f53b4e29000 default file=/usr/lib/systemd/libsystemd-shared-246.so mapped=354 mapmax=8 active=348 N0=354 kernelpagesize_kB=4
7f53b4fac000 default file=/usr/lib/systemd/libsystemd-shared-246.so mapped=84 mapmax=7 N0=84 kernelpagesize_kB=4
7f53b503f000 default file=/usr/lib/systemd/libsystemd-shared-246.so
7f53b5040000 default file=/usr/lib/systemd/libsystemd-shared-246.so anon=16 dirty=16 mapmax=2 N0=16 kernelpagesize_kB=4
7f53b5050000 default file=/usr/lib/systemd/libsystemd-shared-246.so anon=1 dirty=1 N0=1 kernelpagesize_kB=4
7f53b5051000 default anon=3 dirty=3 N0=3 kernelpagesize_kB=4
7f53b5054000 default file=/usr/lib/x86_64-linux-gnu/ld-2.32.so mapped=1 mapmax=31 N0=1 kernelpagesize_kB=4
7f53b5055000 default file=/usr/lib/x86_64-linux-gnu/ld-2.32.so mapped=36 mapmax=32 N0=36 kernelpagesize_kB=4
7f53b5079000 default file=/usr/lib/x86_64-linux-gnu/ld-2.32.so mapped=8 mapmax=31 N0=8 kernelpagesize_kB=4
7f53b5082000 default file=/usr/lib/x86_64-linux-gnu/ld-2.32.so anon=1 dirty=1 mapmax=2 N0=1 kernelpagesize_kB=4
7f53b5083000 default file=/usr/lib/x86_64-linux-gnu/ld-2.32.so anon=2 dirty=2 N0=2 kernelpagesize_kB=4
7ffd1b23e000 default stack anon=258 dirty=258 N0=258 kernelpagesize_kB=4
7ffd1b3b1000 default
7ffd1b3b5000 default

4922
tests/fixtures/linux-proc/pid_smaps vendored Normal file

File diff suppressed because it is too large Load Diff

1
tests/fixtures/linux-proc/pid_stat vendored Normal file
View File

@ -0,0 +1 @@
1 (systemd) S 0 1 1 0 -1 4194560 23478 350218 99 472 107 461 2672 4402 20 0 1 0 128 174063616 3313 18446744073709551615 94188219072512 94188219899461 140725059845296 0 0 0 671173123 4096 1260 1 0 0 17 0 0 0 18 0 0 94188220274448 94188220555504 94188243599360 140725059845923 140725059845934 140725059845934 140725059846125 0

1
tests/fixtures/linux-proc/pid_statm vendored Normal file
View File

@ -0,0 +1 @@
42496 3313 2169 202 0 5180 0

56
tests/fixtures/linux-proc/pid_status vendored Normal file
View File

@ -0,0 +1,56 @@
Name: systemd
Umask: 0000
State: S (sleeping)
Tgid: 1
Ngid: 0
Pid: 1
PPid: 0
TracerPid: 0
Uid: 0 0 0 0
Gid: 0 0 0 0
FDSize: 128
Groups:
NStgid: 1
NSpid: 1
NSpgid: 1
NSsid: 1
VmPeak: 235380 kB
VmSize: 169984 kB
VmLck: 0 kB
VmPin: 0 kB
VmHWM: 13252 kB
VmRSS: 13252 kB
RssAnon: 4576 kB
RssFile: 8676 kB
RssShmem: 0 kB
VmData: 19688 kB
VmStk: 1032 kB
VmExe: 808 kB
VmLib: 9772 kB
VmPTE: 96 kB
VmSwap: 0 kB
HugetlbPages: 0 kB
CoreDumping: 0
THP_enabled: 1
Threads: 1
SigQ: 0/15245
SigPnd: 0000000000000000
ShdPnd: 0000000000000000
SigBlk: 7be3c0fe28014a03
SigIgn: 0000000000001000
SigCgt: 00000001800004ec
CapInh: 0000000000000000
CapPrm: 000000ffffffffff
CapEff: 000000ffffffffff
CapBnd: 000000ffffffffff
CapAmb: 0000000000000000
NoNewPrivs: 0
Seccomp: 0
Speculation_Store_Bypass: thread vulnerable
Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff
Cpus_allowed_list: 0-127
Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
Mems_allowed_list: 0
voluntary_ctxt_switches: 1856
nonvoluntary_ctxt_switches: 6620

View File

@ -0,0 +1,181 @@
'Aashima' 'IMAGERY 2400SP' 0x1
'CHINON' 'CD-ROM CDS-431' 0x1
'CHINON' 'CD-ROM CDS-535' 0x1
'DENON' 'DRD-25X' 0x1
'HITACHI' 'DK312C' 0x1
'HITACHI' 'DK314C' 0x1
'IBM' '2104-DU3' 0x1
'IBM' '2104-TU3' 0x1
'IMS' 'CDD521/10' 0x1
'MAXTOR' 'XT-3280' 0x1
'MAXTOR' 'XT-4380S' 0x1
'MAXTOR' 'MXT-1240S' 0x1
'MAXTOR' 'XT-4170S' 0x1
'MAXTOR' 'XT-8760S' 0x1
'MEDIAVIS' 'RENO CD-ROMX2A' 0x1
'MICROTEK' 'ScanMakerIII' 0x1
'NEC' 'CD-ROM DRIVE:841' 0x1
'PHILIPS' 'PCA80SC' 0x1
'RODIME' 'RO3000S' 0x1
'SUN' 'SENA' 0x1
'SANYO' 'CRD-250S' 0x1
'SEAGATE' 'ST157N' 0x1
'SEAGATE' 'ST296' 0x1
'SEAGATE' 'ST1581' 0x1
'SONY' 'CD-ROM CDU-541' 0x1
'SONY' 'CD-ROM CDU-55S' 0x1
'SONY' 'CD-ROM CDU-561' 0x1
'SONY' 'CD-ROM CDU-8012' 0x1
'SONY' 'SDT-5000' 0x200000
'TANDBERG' 'TDC 3600' 0x1
'TEAC' 'CD-R55S' 0x1
'TEAC' 'CD-ROM' 0x1
'TEAC' 'MT-2ST/45S2-27' 0x1
'HP' 'C1750A' 0x1
'HP' 'C1790A' 0x1
'HP' 'C2500A' 0x1
'MEDIAVIS' 'CDR-H93MV' 0x1
'MICROTEK' 'ScanMaker II' 0x1
'MITSUMI' 'CD-R CR-2201CS' 0x1
'NEC' 'D3856' 0x1
'QUANTUM' 'LPS525S' 0x1
'QUANTUM' 'PD1225S' 0x1
'QUANTUM' 'FIREBALL ST4.3S' 0x1
'RELISYS' 'Scorpio' 0x1
'SANKYO' 'CP525' 0x1
'TEXEL' 'CD-ROM' 0x5
'transtec' 'T5008' 0x40000
'YAMAHA' 'CDR100' 0x1
'YAMAHA' 'CDR102' 0x1
'YAMAHA' 'CRW8424S' 0x1
'YAMAHA' 'CRW6416S' 0x1
'' 'Scanner' 0x1
'3PARdata' 'VV' 0x20000
'ADAPTEC' 'AACRAID' 0x2
'ADAPTEC' 'Adaptec 5400S' 0x2
'AIX' 'VDASD' 0x10000000
'AFT PRO' '-IX CF' 0x2
'BELKIN' 'USB 2 HS-CF' 0x402
'BROWNIE' '1200U3P' 0x40000
'BROWNIE' '1600U3P' 0x40000
'CANON' 'IPUBJD' 0x40
'CBOX3' 'USB Storage-SMC' 0x402
'CMD' 'CRA-7280' 0x40
'CNSI' 'G7324' 0x40
'CNSi' 'G8324' 0x40
'COMPAQ' 'ARRAY CONTROLLER' 0x820240
'COMPAQ' 'LOGICAL VOLUME' 0x800002
'COMPAQ' 'CR3500' 0x2
'COMPAQ' 'MSA1000' 0x1040
'COMPAQ' 'MSA1000 VOLUME' 0x1040
'COMPAQ' 'HSV110' 0x21000
'DDN' 'SAN DataDirector' 0x40
'DEC' 'HSG80' 0x21000
'DELL' 'PV660F' 0x40
'DELL' 'PV660F PSEUDO' 0x40
'DELL' 'PSEUDO DEVICE .' 0x40
'DELL' 'PV530F' 0x40
'DELL' 'PERCRAID' 0x2
'DGC' 'RAID' 0x40
'DGC' 'DISK' 0x40
'EMC' 'Invista' 0x240
'EMC' 'SYMMETRIX' 0x100020240
'EMULEX' 'MD21/S2 ESDI' 0x10
'easyRAID' '16P' 0x40000
'easyRAID' 'X6P' 0x40000
'easyRAID' 'F8' 0x40000
'FSC' 'CentricStor' 0x240
'FUJITSU' 'ETERNUS_DXM' 0x200000000
'Generic' 'USB SD Reader' 0x402
'Generic' 'USB Storage-SMC' 0x402
'HITACHI' 'DF400' 0x20000
'HITACHI' 'DF500' 0x20000
'HITACHI' 'DISK-SUBSYSTEM' 0x20000
'HITACHI' 'HUS1530' 0x2000000
'HITACHI' 'OPEN-' 0x10020000
'HP' 'A6189A' 0x240
'HP' 'OPEN-' 0x10020000
'HP' 'NetRAID-4M' 0x2
'HP' 'HSV100' 0x21000
'HP' 'C1557A' 0x2
'HP' 'C3323-300' 0x20
'HP' 'C5713A' 0x40000
'HP' 'DISK-SUBSYSTEM' 0x20000
'IBM' 'AuSaV1S2' 0x2
'IBM' 'ProFibre 4000R' 0x240
'IBM' '2105' 0x400000
'iomega' 'jaz 1GB' 0x21
'IOMEGA' 'ZIP' 0x21
'IOMEGA' 'Io20S *F' 0x8
'INSITE' 'Floptical F*8I' 0x8
'INSITE' 'I325VM' 0x8
'Intel' 'Multi-Flex' 0x20000000
'iRiver' 'iFP Mass Driver' 0x80400
'LASOUND' 'CDX7405' 0x90
'Marvell' 'Console' 0x4000000
'Marvell' '91xx Config' 0x4000000
'MATSHITA' 'PD-1' 0x12
'MATSHITA' 'DMC-LC5' 0x80400
'MATSHITA' 'DMC-LC40' 0x80400
'Medion' 'Flash XL MMC/SD' 0x2
'MegaRAID' 'LD' 0x2
'MICROP' '4110' 0x20
'MSFT' 'Virtual HD' 0x60000000
'MYLEX' 'DACARMRB' 0x20000
'nCipher' 'Fastness Crypto' 0x2
'NAKAMICH' 'MJ-4.8S' 0x12
'NAKAMICH' 'MJ-5.16S' 0x12
'NEC' 'PD-1 ODX654P' 0x12
'NEC' 'iStorage' 0x20000
'NRC' 'MBR-7' 0x12
'NRC' 'MBR-7.4' 0x12
'PIONEER' 'CD-ROM DRM-600' 0x12
'PIONEER' 'CD-ROM DRM-602X' 0x12
'PIONEER' 'CD-ROM DRM-604X' 0x12
'PIONEER' 'CD-ROM DRM-624X' 0x12
'Promise' 'VTrak E610f' 0x20000040
'Promise' '' 0x40
'QEMU' 'QEMU CD-ROM' 0x4000000
'QNAP' 'iSCSI Storage' 0x40000000
'SYNOLOGY' 'iSCSI Storage' 0x40000000
'QUANTUM' 'XP34301' 0x20
'REGAL' 'CDC-4X' 0x90
'SanDisk' 'ImageMate CF-SD1' 0x2
'SEAGATE' 'ST34555N' 0x20
'SEAGATE' 'ST3390N' 0x20
'SEAGATE' 'ST900MM0006' 0x4000000
'SGI' 'RAID3' 0x40
'SGI' 'RAID5' 0x40
'SGI' 'TP9100' 0x20000
'SGI' 'Universal Xport' 0x100000
'IBM' 'Universal Xport' 0x100000
'SUN' 'Universal Xport' 0x100000
'DELL' 'Universal Xport' 0x100000
'STK' 'Universal Xport' 0x100000
'NETAPP' 'Universal Xport' 0x100000
'LSI' 'Universal Xport' 0x100000
'ENGENIO' 'Universal Xport' 0x100000
'LENOVO' 'Universal Xport' 0x100000
'FUJITSU' 'Universal Xport' 0x100000
'SanDisk' 'Cruzer Blade' 0x10000400
'SMSC' 'USB 2 HS-CF' 0x440
'SONY' 'CD-ROM CDU-8001' 0x4
'SONY' 'TSL' 0x2
'ST650211' 'CF' 0x400000
'SUN' 'T300' 0x40
'SUN' 'T4' 0x40
'Tornado-' 'F4' 0x40000
'TOSHIBA' 'CDROM' 0x100
'TOSHIBA' 'CD-ROM' 0x100
'Traxdata' 'CDR4120' 0x1
'USB2.0' 'SMARTMEDIA/XD' 0x402
'WangDAT' 'Model 2600' 0x200000
'WangDAT' 'Model 3200' 0x200000
'WangDAT' 'Model 1300' 0x200000
'WDC WD25' '00JB-00FUA0' 0x40000
'XYRATEX' 'RS' 0x240
'Zzyzx' 'RocketStor 500S' 0x40
'Zzyzx' 'RocketStor 2000' 0x40
[SCSI Parallel Transport Class]:
'HP' 'Ultrium 3-SCSI' 0x1
'IBM' 'ULTRIUM-TD3' 0x1

7
tests/fixtures/linux-proc/scsi_scsi vendored Normal file
View File

@ -0,0 +1,7 @@
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: IBM Model: DGHS09U Rev: 03E0
Type: Direct-Access ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 06 Lun: 00
Vendor: PIONEER Model: CD-ROM DR-U06S Rev: 1.04
Type: CD-ROM ANSI SCSI revision: 02

147
tests/fixtures/linux-proc/slabinfo vendored Normal file
View File

@ -0,0 +1,147 @@
slabinfo - version: 2.1
# name <active_objs> <num_objs> <objsize> <objperslab> <pagesperslab> : tunables <limit> <batchcount> <sharedfactor> : slabdata <active_slabs> <num_slabs> <sharedavail>
ext4_groupinfo_4k 224 224 144 56 2 : tunables 0 0 0 : slabdata 4 4 0
btrfs_delayed_node 0 0 312 52 4 : tunables 0 0 0 : slabdata 0 0 0
btrfs_ordered_extent 0 0 416 39 4 : tunables 0 0 0 : slabdata 0 0 0
btrfs_inode 0 0 1184 27 8 : tunables 0 0 0 : slabdata 0 0 0
fsverity_info 0 0 256 64 4 : tunables 0 0 0 : slabdata 0 0 0
MPTCPv6 0 0 1856 17 8 : tunables 0 0 0 : slabdata 0 0 0
ip6-frags 0 0 184 44 2 : tunables 0 0 0 : slabdata 0 0 0
PINGv6 104 104 1216 26 8 : tunables 0 0 0 : slabdata 4 4 0
RAWv6 312 312 1216 26 8 : tunables 0 0 0 : slabdata 12 12 0
UDPv6 96 96 1344 24 8 : tunables 0 0 0 : slabdata 4 4 0
tw_sock_TCPv6 0 0 248 66 4 : tunables 0 0 0 : slabdata 0 0 0
request_sock_TCPv6 0 0 304 53 4 : tunables 0 0 0 : slabdata 0 0 0
TCPv6 26 26 2432 13 8 : tunables 0 0 0 : slabdata 2 2 0
kcopyd_job 0 0 3312 9 8 : tunables 0 0 0 : slabdata 0 0 0
dm_uevent 0 0 2888 11 8 : tunables 0 0 0 : slabdata 0 0 0
scsi_sense_cache 1472 1472 128 64 2 : tunables 0 0 0 : slabdata 23 23 0
mqueue_inode_cache 34 34 960 34 8 : tunables 0 0 0 : slabdata 1 1 0
fuse_inode 0 0 832 39 8 : tunables 0 0 0 : slabdata 0 0 0
ecryptfs_key_record_cache 0 0 576 56 8 : tunables 0 0 0 : slabdata 0 0 0
ecryptfs_inode_cache 0 0 1024 32 8 : tunables 0 0 0 : slabdata 0 0 0
ecryptfs_file_cache 0 0 16 256 1 : tunables 0 0 0 : slabdata 0 0 0
ecryptfs_auth_tok_list_item 0 0 832 39 8 : tunables 0 0 0 : slabdata 0 0 0
fat_inode_cache 0 0 744 44 8 : tunables 0 0 0 : slabdata 0 0 0
fat_cache 0 0 40 102 1 : tunables 0 0 0 : slabdata 0 0 0
squashfs_inode_cache 363 552 704 46 8 : tunables 0 0 0 : slabdata 12 12 0
jbd2_journal_head 952 952 120 68 2 : tunables 0 0 0 : slabdata 14 14 0
jbd2_revoke_table_s 512 512 16 256 1 : tunables 0 0 0 : slabdata 2 2 0
ext4_inode_cache 14466 15573 1096 29 8 : tunables 0 0 0 : slabdata 537 537 0
ext4_allocation_context 128 128 128 64 2 : tunables 0 0 0 : slabdata 2 2 0
ext4_io_end 128 128 64 64 1 : tunables 0 0 0 : slabdata 2 2 0
ext4_pending_reservation 256 256 32 128 1 : tunables 0 0 0 : slabdata 2 2 0
ext4_extent_status 4590 4590 40 102 1 : tunables 0 0 0 : slabdata 45 45 0
mbcache 146 146 56 73 1 : tunables 0 0 0 : slabdata 2 2 0
userfaultfd_ctx_cache 0 0 192 42 2 : tunables 0 0 0 : slabdata 0 0 0
dnotify_struct 0 0 32 128 1 : tunables 0 0 0 : slabdata 0 0 0
pid_namespace 0 0 144 56 2 : tunables 0 0 0 : slabdata 0 0 0
ip4-frags 0 0 200 40 2 : tunables 0 0 0 : slabdata 0 0 0
MPTCP 0 0 1664 19 8 : tunables 0 0 0 : slabdata 0 0 0
request_sock_subflow 0 0 360 45 4 : tunables 0 0 0 : slabdata 0 0 0
xfrm_state 0 0 768 42 8 : tunables 0 0 0 : slabdata 0 0 0
PING 2080 2080 1024 32 8 : tunables 0 0 0 : slabdata 65 65 0
RAW 512 512 1024 32 8 : tunables 0 0 0 : slabdata 16 16 0
tw_sock_TCP 66 66 248 66 4 : tunables 0 0 0 : slabdata 1 1 0
request_sock_TCP 53 53 304 53 4 : tunables 0 0 0 : slabdata 1 1 0
TCP 56 56 2240 14 8 : tunables 0 0 0 : slabdata 4 4 0
hugetlbfs_inode_cache 102 102 632 51 8 : tunables 0 0 0 : slabdata 2 2 0
dquot 128 128 256 64 4 : tunables 0 0 0 : slabdata 2 2 0
eventpoll_pwq 1792 1792 72 56 1 : tunables 0 0 0 : slabdata 32 32 0
dax_cache 42 42 768 42 8 : tunables 0 0 0 : slabdata 1 1 0
bio_crypt_ctx 306 306 40 102 1 : tunables 0 0 0 : slabdata 3 3 0
request_queue 30 30 2096 15 8 : tunables 0 0 0 : slabdata 2 2 0
biovec-max 114 120 4096 8 8 : tunables 0 0 0 : slabdata 15 15 0
biovec-128 32 32 2048 16 8 : tunables 0 0 0 : slabdata 2 2 0
biovec-64 64 64 1024 32 8 : tunables 0 0 0 : slabdata 2 2 0
khugepaged_mm_slot 36 36 112 36 1 : tunables 0 0 0 : slabdata 1 1 0
user_namespace 60 60 544 60 8 : tunables 0 0 0 : slabdata 1 1 0
dmaengine-unmap-256 15 15 2112 15 8 : tunables 0 0 0 : slabdata 1 1 0
dmaengine-unmap-128 30 30 1088 30 8 : tunables 0 0 0 : slabdata 1 1 0
sock_inode_cache 2847 2847 832 39 8 : tunables 0 0 0 : slabdata 73 73 0
skbuff_ext_cache 84 84 192 42 2 : tunables 0 0 0 : slabdata 2 2 0
skbuff_fclone_cache 128 128 512 64 8 : tunables 0 0 0 : slabdata 2 2 0
skbuff_head_cache 4160 4416 256 64 4 : tunables 0 0 0 : slabdata 69 69 0
file_lock_cache 74 74 216 37 2 : tunables 0 0 0 : slabdata 2 2 0
file_lock_ctx 219 219 56 73 1 : tunables 0 0 0 : slabdata 3 3 0
fsnotify_mark_connector 384 384 32 128 1 : tunables 0 0 0 : slabdata 3 3 0
net_namespace 6 6 4992 6 8 : tunables 0 0 0 : slabdata 1 1 0
task_delay_info 2958 2958 80 51 1 : tunables 0 0 0 : slabdata 58 58 0
taskstats 92 92 352 46 4 : tunables 0 0 0 : slabdata 2 2 0
proc_dir_entry 882 882 192 42 2 : tunables 0 0 0 : slabdata 21 21 0
pde_opener 3366 3366 40 102 1 : tunables 0 0 0 : slabdata 33 33 0
proc_inode_cache 51317 52752 680 48 8 : tunables 0 0 0 : slabdata 1099 1099 0
seq_file 4760 4760 120 68 2 : tunables 0 0 0 : slabdata 70 70 0
bdev_cache 78 78 832 39 8 : tunables 0 0 0 : slabdata 2 2 0
shmem_inode_cache 2647 2970 720 45 8 : tunables 0 0 0 : slabdata 66 66 0
kernfs_node_cache 115254 115904 128 64 2 : tunables 0 0 0 : slabdata 1811 1811 0
mnt_cache 1251 1326 320 51 4 : tunables 0 0 0 : slabdata 26 26 0
filp 19960 22464 256 64 4 : tunables 0 0 0 : slabdata 351 351 0
inode_cache 137462 138754 608 53 8 : tunables 0 0 0 : slabdata 2618 2618 0
dentry 205198 211008 192 42 2 : tunables 0 0 0 : slabdata 5024 5024 0
names_cache 32 32 4096 8 8 : tunables 0 0 0 : slabdata 4 4 0
iint_cache 0 0 120 68 2 : tunables 0 0 0 : slabdata 0 0 0
lsm_file_cache 2040 2040 24 170 1 : tunables 0 0 0 : slabdata 12 12 0
buffer_head 87912 89349 104 39 1 : tunables 0 0 0 : slabdata 2291 2291 0
uts_namespace 74 74 440 37 4 : tunables 0 0 0 : slabdata 2 2 0
vm_area_struct 19609 20124 208 39 2 : tunables 0 0 0 : slabdata 516 516 0
mm_struct 1050 1050 1088 30 8 : tunables 0 0 0 : slabdata 35 35 0
files_cache 1564 1564 704 46 8 : tunables 0 0 0 : slabdata 34 34 0
signal_cache 1456 1456 1152 28 8 : tunables 0 0 0 : slabdata 52 52 0
sighand_cache 847 885 2112 15 8 : tunables 0 0 0 : slabdata 59 59 0
task_struct 698 770 6016 5 8 : tunables 0 0 0 : slabdata 154 154 0
cred_jar 3864 3864 192 42 2 : tunables 0 0 0 : slabdata 92 92 0
anon_vma_chain 19989 21376 64 64 1 : tunables 0 0 0 : slabdata 334 334 0
anon_vma 11689 11914 88 46 1 : tunables 0 0 0 : slabdata 259 259 0
pid 3456 3456 128 64 2 : tunables 0 0 0 : slabdata 54 54 0
Acpi-Operand 10248 10248 72 56 1 : tunables 0 0 0 : slabdata 183 183 0
Acpi-ParseExt 78 78 104 39 1 : tunables 0 0 0 : slabdata 2 2 0
Acpi-State 408 408 80 51 1 : tunables 0 0 0 : slabdata 8 8 0
numa_policy 186 186 264 62 4 : tunables 0 0 0 : slabdata 3 3 0
trace_event_file 1748 1748 88 46 1 : tunables 0 0 0 : slabdata 38 38 0
ftrace_event_field 12410 12410 48 85 1 : tunables 0 0 0 : slabdata 146 146 0
pool_workqueue 768 768 256 64 4 : tunables 0 0 0 : slabdata 12 12 0
radix_tree_node 10063 12040 584 56 8 : tunables 0 0 0 : slabdata 215 215 0
task_group 204 204 640 51 8 : tunables 0 0 0 : slabdata 4 4 0
vmap_area 2929 3264 64 64 1 : tunables 0 0 0 : slabdata 51 51 0
dma-kmalloc-8k 0 0 8192 4 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-4k 0 0 4096 8 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-2k 0 0 2048 16 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-1k 0 0 1024 32 8 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-512 128 128 512 64 8 : tunables 0 0 0 : slabdata 2 2 0
dma-kmalloc-256 0 0 256 64 4 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-128 0 0 128 64 2 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-64 0 0 64 64 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-32 0 0 32 128 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-16 0 0 16 256 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-8 0 0 8 512 1 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-192 0 0 192 42 2 : tunables 0 0 0 : slabdata 0 0 0
dma-kmalloc-96 0 0 96 42 1 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-8k 0 0 8192 4 8 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-4k 0 0 4096 8 8 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-2k 0 0 2048 16 8 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-1k 0 0 1024 32 8 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-512 0 0 512 64 8 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-256 0 0 256 64 4 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-192 0 0 192 42 2 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-128 560 640 128 64 2 : tunables 0 0 0 : slabdata 10 10 0
kmalloc-rcl-96 631 798 96 42 1 : tunables 0 0 0 : slabdata 19 19 0
kmalloc-rcl-64 3894 4480 64 64 1 : tunables 0 0 0 : slabdata 70 70 0
kmalloc-rcl-32 0 0 32 128 1 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-16 0 0 16 256 1 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-rcl-8 0 0 8 512 1 : tunables 0 0 0 : slabdata 0 0 0
kmalloc-8k 127 136 8192 4 8 : tunables 0 0 0 : slabdata 34 34 0
kmalloc-4k 2056 2056 4096 8 8 : tunables 0 0 0 : slabdata 257 257 0
kmalloc-2k 2132 2192 2048 16 8 : tunables 0 0 0 : slabdata 137 137 0
kmalloc-1k 3600 3840 1024 32 8 : tunables 0 0 0 : slabdata 120 120 0
kmalloc-512 38846 39104 512 64 8 : tunables 0 0 0 : slabdata 611 611 0
kmalloc-256 3648 3648 256 64 4 : tunables 0 0 0 : slabdata 57 57 0
kmalloc-192 2688 2688 192 42 2 : tunables 0 0 0 : slabdata 64 64 0
kmalloc-128 1664 1664 128 64 2 : tunables 0 0 0 : slabdata 26 26 0
kmalloc-96 2142 2142 96 42 1 : tunables 0 0 0 : slabdata 51 51 0
kmalloc-64 21435 21568 64 64 1 : tunables 0 0 0 : slabdata 337 337 0
kmalloc-32 43520 43520 32 128 1 : tunables 0 0 0 : slabdata 340 340 0
kmalloc-16 16640 16640 16 256 1 : tunables 0 0 0 : slabdata 65 65 0
kmalloc-8 49152 49152 8 512 1 : tunables 0 0 0 : slabdata 96 96 0
kmem_cache_node 1728 1728 64 64 1 : tunables 0 0 0 : slabdata 27 27 0
kmem_cache 1728 1728 448 36 4 : tunables 0 0 0 : slabdata 48 48 0

12
tests/fixtures/linux-proc/softirqs vendored Normal file
View File

@ -0,0 +1,12 @@
CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 CPU8 CPU9 CPU10 CPU11 CPU12 CPU13 CPU14 CPU15 CPU16 CPU17 CPU18 CPU19 CPU20 CPU21 CPU22 CPU23 CPU24 CPU25 CPU26 CPU27 CPU28 CPU29 CPU30 CPU31 CPU32 CPU33 CPU34 CPU35 CPU36 CPU37 CPU38 CPU39 CPU40 CPU41 CPU42 CPU43 CPU44 CPU45 CPU46 CPU47 CPU48 CPU49 CPU50 CPU51 CPU52 CPU53 CPU54 CPU55 CPU56 CPU57 CPU58 CPU59 CPU60 CPU61 CPU62 CPU63 CPU64 CPU65 CPU66 CPU67 CPU68 CPU69 CPU70 CPU71 CPU72 CPU73 CPU74 CPU75 CPU76 CPU77 CPU78 CPU79 CPU80 CPU81 CPU82 CPU83 CPU84 CPU85 CPU86 CPU87 CPU88 CPU89 CPU90 CPU91 CPU92 CPU93 CPU94 CPU95 CPU96 CPU97 CPU98 CPU99 CPU100 CPU101 CPU102 CPU103 CPU104 CPU105 CPU106 CPU107 CPU108 CPU109 CPU110 CPU111 CPU112 CPU113 CPU114 CPU115 CPU116 CPU117 CPU118 CPU119 CPU120 CPU121 CPU122 CPU123 CPU124 CPU125 CPU126 CPU127
HI: 1 34056 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 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 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 0 0 0 0 0 0 0 0 0
TIMER: 322970 888166 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 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 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 0 0 0 0 0 0 0 0 0
NET_TX: 2 3350 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 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 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 0 0 0 0 0 0 0 0 0
NET_RX: 61 128016 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 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 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 0 0 0 0 0 0 0 0 0
BLOCK: 22906 26865 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 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 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 0 0 0 0 0 0 0 0 0
IRQ_POLL: 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 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 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 0 0 0 0 0 0 0 0 0 0 0
TASKLET: 47 166383 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 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 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 0 0 0 0 0 0 0 0 0
SCHED: 314955 885432 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 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 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 0 0 0 0 0 0 0 0 0
HRTIMER: 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 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 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 0 0 0 0 0 0 0 0 0 0 0
RCU: 225923 352625 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 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 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 0 0 0 0 0 0 0 0 0

10
tests/fixtures/linux-proc/stat vendored Normal file
View File

@ -0,0 +1,10 @@
cpu 6002 152 8398 3444436 448 0 1174 0 0 0
cpu0 2784 137 4367 1732802 225 0 221 0 0 0
cpu1 3218 15 4031 1711634 223 0 953 0 0 0
intr 2496709 18 73 0 0 0 0 0 0 1 0 0 0 18 0 0 0 4219 37341 423366 128490 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 9063 2363 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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
ctxt 4622716
btime 1662154781
processes 9831
procs_running 1
procs_blocked 0
softirq 3478985 35230 1252057 3467 128583 51014 0 171199 1241297 0 596138

24
tests/fixtures/linux-proc/stat2 vendored Normal file
View File

@ -0,0 +1,24 @@
cpu 259246 7001 60190 34250993 137517 772 0
cpu0 259246 7001 60190 34250993 137517 772 0
intr 354133732 347209999 2272 0 4 4 0 0 3 1 1249247 0 0 80143 0 422626 5169433
ctxt 12547729
btime 1093631447
processes 130523
procs_running 1
procs_blocked 0
preempt 5651840
cpu 209841 1554 21720 118519346 72939 154 27168
cpu0 42536 798 4841 14790880 14778 124 3117
cpu1 24184 569 3875 14794524 30209 29 3130
cpu2 28616 11 2182 14818198 4020 1 3493
cpu3 35350 6 2942 14811519 3045 0 3659
cpu4 18209 135 2263 14820076 12465 0 3373
cpu5 20795 35 1866 14825701 4508 0 3615
cpu6 21607 0 2201 14827053 2325 0 3334
cpu7 18544 0 1550 14831395 1589 0 3447
intr 15239682 14857833 6 0 6 6 0 5 0 1 0 0 0 29 0 2 0 0 0 0 0 0 0 94982 0 286812
ctxt 4209609
btime 1078711415
processes 21905
procs_running 1
procs_blocked 0

2
tests/fixtures/linux-proc/swaps vendored Normal file
View File

@ -0,0 +1,2 @@
Filename Type Size Used Priority
/swap.img file 3996668 0 -2

1
tests/fixtures/linux-proc/uptime vendored Normal file
View File

@ -0,0 +1 @@
46901.13 46856.66

1
tests/fixtures/linux-proc/version vendored Normal file
View File

@ -0,0 +1 @@
Linux version 5.8.0-63-generic (buildd@lcy01-amd64-028) (gcc (Ubuntu 10.3.0-1ubuntu1~20.10) 10.3.0, GNU ld (GNU Binutils for Ubuntu) 2.35.1) #71-Ubuntu SMP Tue Jul 13 15:59:12 UTC 2021

1
tests/fixtures/linux-proc/version2 vendored Normal file
View File

@ -0,0 +1 @@
Linux version 3.10.0-1062.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC) ) #1 SMP Wed Aug 7 18:08:02 UTC 2019

1
tests/fixtures/linux-proc/version3 vendored Normal file
View File

@ -0,0 +1 @@
Linux version 2.6.8-1.523 (user@foo.redhat.com) (gcc version 3.4.1 20040714 \ (Red Hat Enterprise Linux 3.4.1-7)) #1 Mon Aug 16 13:27:03 EDT 2004

1362
tests/fixtures/linux-proc/vmallocinfo vendored Normal file

File diff suppressed because it is too large Load Diff

147
tests/fixtures/linux-proc/vmstat vendored Normal file
View File

@ -0,0 +1,147 @@
nr_free_pages 615337
nr_zone_inactive_anon 39
nr_zone_active_anon 34838
nr_zone_inactive_file 104036
nr_zone_active_file 130601
nr_zone_unevictable 4897
nr_zone_write_pending 45
nr_mlock 4897
nr_page_table_pages 548
nr_kernel_stack 5984
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 1910597
numa_miss 0
numa_foreign 0
numa_interleave 66040
numa_local 1910597
numa_other 0
nr_inactive_anon 39
nr_active_anon 34838
nr_inactive_file 104036
nr_active_file 130601
nr_unevictable 4897
nr_slab_reclaimable 49011
nr_slab_unreclaimable 26172
nr_isolated_anon 0
nr_isolated_file 0
workingset_nodes 0
workingset_refault 0
workingset_activate 0
workingset_restore 0
workingset_nodereclaim 0
nr_anon_pages 40298
nr_mapped 25087
nr_file_pages 234112
nr_dirty 45
nr_writeback 0
nr_writeback_temp 0
nr_shmem 395
nr_shmem_hugepages 0
nr_shmem_pmdmapped 0
nr_file_hugepages 0
nr_file_pmdmapped 0
nr_anon_transparent_hugepages 0
nr_vmscan_write 0
nr_vmscan_immediate_reclaim 0
nr_dirtied 167091
nr_written 143439
nr_kernel_misc_reclaimable 0
nr_foll_pin_acquired 0
nr_foll_pin_released 0
nr_dirty_threshold 163943
nr_dirty_background_threshold 81871
pgpgin 625466
pgpgout 706252
pswpin 0
pswpout 0
pgalloc_dma 144
pgalloc_dma32 597148
pgalloc_normal 1423654
pgalloc_movable 0
allocstall_dma 0
allocstall_dma32 0
allocstall_normal 0
allocstall_movable 0
pgskip_dma 0
pgskip_dma32 0
pgskip_normal 0
pgskip_movable 0
pgfree 2637206
pgactivate 136726
pgdeactivate 0
pglazyfree 3610
pgfault 1195623
pgmajfault 1713
pglazyfreed 0
pgrefill 0
pgsteal_kswapd 0
pgsteal_direct 0
pgscan_kswapd 0
pgscan_direct 0
pgscan_direct_throttle 0
pgscan_anon 0
pgscan_file 0
pgsteal_anon 0
pgsteal_file 0
zone_reclaim_failed 0
pginodesteal 0
slabs_scanned 0
kswapd_inodesteal 0
kswapd_low_wmark_hit_quickly 0
kswapd_high_wmark_hit_quickly 0
pageoutrun 0
pgrotated 0
drop_pagecache 0
drop_slab 0
oom_kill 0
numa_pte_updates 0
numa_huge_pte_updates 0
numa_hint_faults 0
numa_hint_faults_local 0
numa_pages_migrated 0
pgmigrate_success 0
pgmigrate_fail 0
compact_migrate_scanned 0
compact_free_scanned 0
compact_isolated 0
compact_stall 0
compact_fail 0
compact_success 0
compact_daemon_wake 0
compact_daemon_migrate_scanned 0
compact_daemon_free_scanned 0
htlb_buddy_alloc_success 0
htlb_buddy_alloc_fail 0
unevictable_pgs_culled 66408
unevictable_pgs_scanned 0
unevictable_pgs_rescued 206
unevictable_pgs_mlocked 5103
unevictable_pgs_munlocked 206
unevictable_pgs_cleared 0
unevictable_pgs_stranded 0
thp_fault_alloc 0
thp_fault_fallback 0
thp_fault_fallback_charge 0
thp_collapse_alloc 1
thp_collapse_alloc_failed 0
thp_file_alloc 0
thp_file_fallback 0
thp_file_fallback_charge 0
thp_file_mapped 0
thp_split_page 1
thp_split_page_failed 0
thp_deferred_split_page 1
thp_split_pmd 1
thp_split_pud 0
thp_zero_page_alloc 0
thp_zero_page_alloc_failed 0
thp_swpout 0
thp_swpout_fallback 0
balloon_inflate 0
balloon_deflate 0
balloon_migrate 0
swap_ra 0
swap_ra_hit 0
nr_unstable 0

175
tests/fixtures/linux-proc/zoneinfo vendored Normal file
View File

@ -0,0 +1,175 @@
Node 0, zone DMA
per-node stats
nr_inactive_anon 39
nr_active_anon 34839
nr_inactive_file 104172
nr_active_file 130748
nr_unevictable 4897
nr_slab_reclaimable 49017
nr_slab_unreclaimable 26177
nr_isolated_anon 0
nr_isolated_file 0
workingset_nodes 0
workingset_refault 0
workingset_activate 0
workingset_restore 0
workingset_nodereclaim 0
nr_anon_pages 40299
nr_mapped 25140
nr_file_pages 234396
nr_dirty 0
nr_writeback 0
nr_writeback_temp 0
nr_shmem 395
nr_shmem_hugepages 0
nr_shmem_pmdmapped 0
nr_file_hugepages 0
nr_file_pmdmapped 0
nr_anon_transparent_hugepages 0
nr_vmscan_write 0
nr_vmscan_immediate_reclaim 0
nr_dirtied 168223
nr_written 144616
nr_kernel_misc_reclaimable 0
nr_foll_pin_acquired 0
nr_foll_pin_released 0
pages free 3832
min 68
low 85
high 102
spanned 4095
present 3997
managed 3976
protection: (0, 2871, 3795, 3795, 3795)
nr_free_pages 3832
nr_zone_inactive_anon 0
nr_zone_active_anon 0
nr_zone_inactive_file 0
nr_zone_active_file 0
nr_zone_unevictable 0
nr_zone_write_pending 0
nr_mlock 0
nr_page_table_pages 0
nr_kernel_stack 0
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 3
numa_miss 0
numa_foreign 0
numa_interleave 1
numa_local 3
numa_other 0
pagesets
cpu: 0
count: 0
high: 0
batch: 1
vm stats threshold: 4
cpu: 1
count: 0
high: 0
batch: 1
vm stats threshold: 4
node_unreclaimable: 0
start_pfn: 1
Node 0, zone DMA32
pages free 606010
min 12729
low 15911
high 19093
spanned 1044480
present 782288
managed 758708
protection: (0, 0, 924, 924, 924)
nr_free_pages 606010
nr_zone_inactive_anon 4
nr_zone_active_anon 17380
nr_zone_inactive_file 41785
nr_zone_active_file 64545
nr_zone_unevictable 5
nr_zone_write_pending 0
nr_mlock 5
nr_page_table_pages 101
nr_kernel_stack 224
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 576595
numa_miss 0
numa_foreign 0
numa_interleave 2
numa_local 576595
numa_other 0
pagesets
cpu: 0
count: 253
high: 378
batch: 63
vm stats threshold: 24
cpu: 1
count: 243
high: 378
batch: 63
vm stats threshold: 24
node_unreclaimable: 0
start_pfn: 4096
Node 0, zone Normal
pages free 5113
min 4097
low 5121
high 6145
spanned 262144
present 262144
managed 236634
protection: (0, 0, 0, 0, 0)
nr_free_pages 5113
nr_zone_inactive_anon 35
nr_zone_active_anon 17459
nr_zone_inactive_file 62387
nr_zone_active_file 66203
nr_zone_unevictable 4892
nr_zone_write_pending 0
nr_mlock 4892
nr_page_table_pages 447
nr_kernel_stack 5760
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 1338441
numa_miss 0
numa_foreign 0
numa_interleave 66037
numa_local 1338441
numa_other 0
pagesets
cpu: 0
count: 340
high: 378
batch: 63
vm stats threshold: 16
cpu: 1
count: 174
high: 378
batch: 63
vm stats threshold: 16
node_unreclaimable: 0
start_pfn: 1048576
Node 0, zone Movable
pages free 0
min 0
low 0
high 0
spanned 0
present 0
managed 0
protection: (0, 0, 0, 0, 0)
Node 0, zone Device
pages free 0
min 0
low 0
high 0
spanned 0
present 0
managed 0
protection: (0, 0, 0, 0, 0)

363
tests/fixtures/linux-proc/zoneinfo2 vendored Normal file
View File

@ -0,0 +1,363 @@
Node 0, zone DMA
per-node stats
nr_inactive_anon 39
nr_active_anon 34839
nr_inactive_file 104172
nr_active_file 130748
nr_unevictable 4897
nr_slab_reclaimable 49017
nr_slab_unreclaimable 26177
nr_isolated_anon 0
nr_isolated_file 0
workingset_nodes 0
workingset_refault 0
workingset_activate 0
workingset_restore 0
workingset_nodereclaim 0
nr_anon_pages 40299
nr_mapped 25140
nr_file_pages 234396
nr_dirty 0
nr_writeback 0
nr_writeback_temp 0
nr_shmem 395
nr_shmem_hugepages 0
nr_shmem_pmdmapped 0
nr_file_hugepages 0
nr_file_pmdmapped 0
nr_anon_transparent_hugepages 0
nr_vmscan_write 0
nr_vmscan_immediate_reclaim 0
nr_dirtied 168223
nr_written 144616
nr_kernel_misc_reclaimable 0
nr_foll_pin_acquired 0
nr_foll_pin_released 0
pages free 3832
min 68
low 85
high 102
spanned 4095
present 3997
managed 3976
protection: (0, 2871, 3795, 3795, 3795)
nr_free_pages 3832
nr_zone_inactive_anon 0
nr_zone_active_anon 0
nr_zone_inactive_file 0
nr_zone_active_file 0
nr_zone_unevictable 0
nr_zone_write_pending 0
nr_mlock 0
nr_page_table_pages 0
nr_kernel_stack 0
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 3
numa_miss 0
numa_foreign 0
numa_interleave 1
numa_local 3
numa_other 0
pagesets
cpu: 0
count: 0
high: 0
batch: 1
vm stats threshold: 4
cpu: 1
count: 0
high: 0
batch: 1
vm stats threshold: 4
node_unreclaimable: 0
start_pfn: 1
Node 0, zone DMA32
pages free 606010
min 12729
low 15911
high 19093
spanned 1044480
present 782288
managed 758708
protection: (0, 0, 924, 924, 924)
nr_free_pages 606010
nr_zone_inactive_anon 4
nr_zone_active_anon 17380
nr_zone_inactive_file 41785
nr_zone_active_file 64545
nr_zone_unevictable 5
nr_zone_write_pending 0
nr_mlock 5
nr_page_table_pages 101
nr_kernel_stack 224
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 576595
numa_miss 0
numa_foreign 0
numa_interleave 2
numa_local 576595
numa_other 0
pagesets
cpu: 0
count: 253
high: 378
batch: 63
vm stats threshold: 24
cpu: 1
count: 243
high: 378
batch: 63
vm stats threshold: 24
node_unreclaimable: 0
start_pfn: 4096
Node 0, zone Normal
pages free 5113
min 4097
low 5121
high 6145
spanned 262144
present 262144
managed 236634
protection: (0, 0, 0, 0, 0)
nr_free_pages 5113
nr_zone_inactive_anon 35
nr_zone_active_anon 17459
nr_zone_inactive_file 62387
nr_zone_active_file 66203
nr_zone_unevictable 4892
nr_zone_write_pending 0
nr_mlock 4892
nr_page_table_pages 447
nr_kernel_stack 5760
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 1338441
numa_miss 0
numa_foreign 0
numa_interleave 66037
numa_local 1338441
numa_other 0
pagesets
cpu: 0
count: 340
high: 378
batch: 63
vm stats threshold: 16
cpu: 1
count: 174
high: 378
batch: 63
vm stats threshold: 16
node_unreclaimable: 0
start_pfn: 1048576
Node 0, zone Movable
pages free 0
min 0
low 0
high 0
spanned 0
present 0
managed 0
protection: (0, 0, 0, 0, 0)
Node 0, zone Device
pages free 0
min 0
low 0
high 0
spanned 0
present 0
managed 0
protection: (0, 0, 0, 0, 0)
Node 1, zone DMA
per-node stats
nr_inactive_anon 39
nr_active_anon 34839
nr_inactive_file 104172
nr_active_file 130748
nr_unevictable 4897
nr_slab_reclaimable 49017
nr_slab_unreclaimable 26177
nr_isolated_anon 0
nr_isolated_file 0
workingset_nodes 0
workingset_refault 0
workingset_activate 0
workingset_restore 0
workingset_nodereclaim 0
nr_anon_pages 40299
nr_mapped 25140
nr_file_pages 234396
nr_dirty 0
nr_writeback 0
nr_writeback_temp 0
nr_shmem 395
nr_shmem_hugepages 0
nr_shmem_pmdmapped 0
nr_file_hugepages 0
nr_file_pmdmapped 0
nr_anon_transparent_hugepages 0
nr_vmscan_write 0
nr_vmscan_immediate_reclaim 0
nr_dirtied 168223
nr_written 144616
nr_kernel_misc_reclaimable 0
nr_foll_pin_acquired 0
nr_foll_pin_released 0
pages free 3832
min 68
low 85
high 102
spanned 4095
present 3997
managed 3976
protection: (0, 2871, 3795, 3795, 3795)
nr_free_pages 3832
nr_zone_inactive_anon 0
nr_zone_active_anon 0
nr_zone_inactive_file 0
nr_zone_active_file 0
nr_zone_unevictable 0
nr_zone_write_pending 0
nr_mlock 0
nr_page_table_pages 0
nr_kernel_stack 0
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 3
numa_miss 0
numa_foreign 0
numa_interleave 1
numa_local 3
numa_other 0
pagesets
cpu: 0
count: 0
high: 0
batch: 1
vm stats threshold: 4
cpu: 1
count: 0
high: 0
batch: 1
vm stats threshold: 4
node_unreclaimable: 0
start_pfn: 1
Node 1, zone DMA32
pages free 606010
min 12729
low 15911
high 19093
spanned 1044480
present 782288
managed 758708
protection: (0, 0, 924, 924, 924)
nr_free_pages 606010
nr_zone_inactive_anon 4
nr_zone_active_anon 17380
nr_zone_inactive_file 41785
nr_zone_active_file 64545
nr_zone_unevictable 5
nr_zone_write_pending 0
nr_mlock 5
nr_page_table_pages 101
nr_kernel_stack 224
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 576595
numa_miss 0
numa_foreign 0
numa_interleave 2
numa_local 576595
numa_other 0
pagesets
cpu: 0
count: 253
high: 378
batch: 63
vm stats threshold: 24
cpu: 1
count: 243
high: 378
batch: 63
vm stats threshold: 24
node_unreclaimable: 0
start_pfn: 4096
Node 1, zone Normal
pages free 5113
min 4097
low 5121
high 6145
spanned 262144
present 262144
managed 236634
protection: (0, 0, 0, 0, 0)
nr_free_pages 5113
nr_zone_inactive_anon 35
nr_zone_active_anon 17459
nr_zone_inactive_file 62387
nr_zone_active_file 66203
nr_zone_unevictable 4892
nr_zone_write_pending 0
nr_mlock 4892
nr_page_table_pages 447
nr_kernel_stack 5760
nr_bounce 0
nr_zspages 0
nr_free_cma 0
numa_hit 1338441
numa_miss 0
numa_foreign 0
numa_interleave 66037
numa_local 1338441
numa_other 0
pagesets
cpu: 0
count: 340
high: 378
batch: 63
vm stats threshold: 16
cpu: 1
count: 174
high: 378
batch: 63
vm stats threshold: 16
node_unreclaimable: 0
start_pfn: 1048576
Node 1, zone Movable
pages free 0
min 0
low 0
high 0
spanned 0
present 0
managed 0
protection: (0, 0, 0, 0, 0)
Node 1, zone Device
pages free 0
min 0
low 0
high 0
spanned 0
present 0
managed 0
protection: (0, 0, 0, 0, 0)
pagesets
cpu: 0
count: 8
high: 8
batch: 8
vm stats threshold: 8
cpu: 1
count: 9
high: 9
batch: 9
vm stats threshold: 9
node_unreclaimable: 9
start_pfn: 9

View File

@ -0,0 +1,54 @@
import os
import unittest
import json
from typing import Dict
import jc.parsers.proc_consoles
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
f_in: Dict = {}
f_json: Dict = {}
@classmethod
def setUpClass(cls):
fixtures = {
'proc_consoles': (
'fixtures/linux-proc/consoles',
'fixtures/linux-proc/consoles.json'),
'proc_consoles2': (
'fixtures/linux-proc/consoles2',
'fixtures/linux-proc/consoles2.json')
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_proc_consoles_nodata(self):
"""
Test 'proc_consoles' with no data
"""
self.assertEqual(jc.parsers.proc_consoles.parse('', quiet=True), [])
def test_proc_consoles(self):
"""
Test '/proc/consoles'
"""
self.assertEqual(jc.parsers.proc_consoles.parse(self.f_in['proc_consoles'], quiet=True),
self.f_json['proc_consoles'])
def test_proc_consoles2(self):
"""
Test '/proc/consoles2'
"""
self.assertEqual(jc.parsers.proc_consoles.parse(self.f_in['proc_consoles2'], quiet=True),
self.f_json['proc_consoles2'])
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,54 @@
import os
import unittest
import json
from typing import Dict
import jc.parsers.proc_cpuinfo
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
f_in: Dict = {}
f_json: Dict = {}
@classmethod
def setUpClass(cls):
fixtures = {
'proc_cpuinfo': (
'fixtures/linux-proc/cpuinfo',
'fixtures/linux-proc/cpuinfo.json'),
'proc_cpuinfo2': (
'fixtures/linux-proc/cpuinfo2',
'fixtures/linux-proc/cpuinfo2.json')
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_proc_cpuinfo_nodata(self):
"""
Test 'proc_cpuinfo' with no data
"""
self.assertEqual(jc.parsers.proc_cpuinfo.parse('', quiet=True), [])
def test_proc_cpuinfo(self):
"""
Test '/proc/buddyinfo'
"""
self.assertEqual(jc.parsers.proc_cpuinfo.parse(self.f_in['proc_cpuinfo'], quiet=True),
self.f_json['proc_cpuinfo'])
def test_proc_cpuinfo2(self):
"""
Test '/proc/buddyinfo2'
"""
self.assertEqual(jc.parsers.proc_cpuinfo.parse(self.f_in['proc_cpuinfo2'], quiet=True),
self.f_json['proc_cpuinfo2'])
if __name__ == '__main__':
unittest.main()

44
tests/test_proc_crypto.py Normal file
View File

@ -0,0 +1,44 @@
import os
import unittest
import json
from typing import Dict
import jc.parsers.proc_crypto
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
f_in: Dict = {}
f_json: Dict = {}
@classmethod
def setUpClass(cls):
fixtures = {
'proc_crypto': (
'fixtures/linux-proc/crypto',
'fixtures/linux-proc/crypto.json')
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_proc_crypto_nodata(self):
"""
Test 'proc_crypto' with no data
"""
self.assertEqual(jc.parsers.proc_crypto.parse('', quiet=True), [])
def test_proc_crypto(self):
"""
Test '/proc/crypto'
"""
self.assertEqual(jc.parsers.proc_crypto.parse(self.f_in['proc_crypto'], quiet=True),
self.f_json['proc_crypto'])
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,44 @@
import os
import unittest
import json
from typing import Dict
import jc.parsers.proc_devices
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
f_in: Dict = {}
f_json: Dict = {}
@classmethod
def setUpClass(cls):
fixtures = {
'proc_devices': (
'fixtures/linux-proc/devices',
'fixtures/linux-proc/devices.json')
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_proc_devices_nodata(self):
"""
Test 'proc_devices' with no data
"""
self.assertEqual(jc.parsers.proc_devices.parse('', quiet=True), {})
def test_proc_devices(self):
"""
Test '/proc/devices'
"""
self.assertEqual(jc.parsers.proc_devices.parse(self.f_in['proc_devices'], quiet=True),
self.f_json['proc_devices'])
if __name__ == '__main__':
unittest.main()

View File

@ -0,0 +1,44 @@
import os
import unittest
import json
from typing import Dict
import jc.parsers.proc_diskstats
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
f_in: Dict = {}
f_json: Dict = {}
@classmethod
def setUpClass(cls):
fixtures = {
'proc_diskstats': (
'fixtures/linux-proc/diskstats',
'fixtures/linux-proc/diskstats.json')
}
for file, filepaths in fixtures.items():
with open(os.path.join(THIS_DIR, filepaths[0]), 'r', encoding='utf-8') as a, \
open(os.path.join(THIS_DIR, filepaths[1]), 'r', encoding='utf-8') as b:
cls.f_in[file] = a.read()
cls.f_json[file] = json.loads(b.read())
def test_proc_diskstats_nodata(self):
"""
Test 'proc_diskstats' with no data
"""
self.assertEqual(jc.parsers.proc_diskstats.parse('', quiet=True), [])
def test_proc_diskstats(self):
"""
Test '/proc/diskstats'
"""
self.assertEqual(jc.parsers.proc_diskstats.parse(self.f_in['proc_diskstats'], quiet=True),
self.f_json['proc_diskstats'])
if __name__ == '__main__':
unittest.main()