]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
proc: test /proc/*/maps, smaps, smaps_rollup, statm
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 5 Mar 2019 23:50:39 +0000 (15:50 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 6 Mar 2019 05:07:22 +0000 (21:07 -0800)
commite483b0208784146864a2c195e316230647e9d297
treebb55713074b209ccae7d26bab4395f2ebaad3128
parent08b55775133b77acc9975ad772b41813cbfea674
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: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/proc/.gitignore
tools/testing/selftests/proc/Makefile
tools/testing/selftests/proc/proc-pid-vm.c [new file with mode: 0644]