Skip to content

Commit 34aab6b

Browse files
Alexey Dobriyansfrothwell
authored andcommitted
proc: test /proc/*/maps, smaps, smaps_rollup, statm
Start testing VM related fiels found in per-process files. Do it by jiting small executable which brings its address space to precisely known state, then comparing /proc/*/maps, smaps, smaps_rollup, and statm files to expected values. Currently only x86_64 is supported. [adobriyan@gmail.com: exit correctly in /proc/*/maps test] Link: http://lkml.kernel.org/r/20190206073659.GB15311@avx2 Link: http://lkml.kernel.org/r/20190203165806.GA14568@avx2 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Shuah Khan <shuah@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
1 parent 448875a commit 34aab6b

File tree

3 files changed

+408
-0
lines changed

3 files changed

+408
-0
lines changed

tools/testing/selftests/proc/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
/fd-002-posix-eq
33
/fd-003-kthread
44
/proc-loadavg-001
5+
/proc-pid-vm
56
/proc-self-map-files-001
67
/proc-self-map-files-002
78
/proc-self-syscall

tools/testing/selftests/proc/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ TEST_GEN_PROGS += fd-001-lookup
66
TEST_GEN_PROGS += fd-002-posix-eq
77
TEST_GEN_PROGS += fd-003-kthread
88
TEST_GEN_PROGS += proc-loadavg-001
9+
TEST_GEN_PROGS += proc-pid-vm
910
TEST_GEN_PROGS += proc-self-map-files-001
1011
TEST_GEN_PROGS += proc-self-map-files-002
1112
TEST_GEN_PROGS += proc-self-syscall

0 commit comments

Comments
 (0)