]> git.baikalelectronics.ru Git - kernel.git/commit
proc: add selftest for last field of /proc/loadavg
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 10 Apr 2018 23:42:23 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Apr 2018 17:28:34 +0000 (10:28 -0700)
commit9b71ae3c4b140ba9db5acd8c84411ffd13c1ec0f
tree44ff6cd7b07ecc1ff6c222be99537327d1595b14
parentc148c5e587ba26a917b682dc1bfe88e2b16f5e06
proc: add selftest for last field of /proc/loadavg

Test fork counter formerly known as ->last_pid, the only part of
/proc/loadavg which can be tested.

Testing in init pid namespace is not reliable because of background
activity.

Link: http://lkml.kernel.org/r/20180311152241.GA26247@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-loadavg-001.c [new file with mode: 0644]