proc: test /proc/self/wchan
This patch starts testing /proc. Many more tests to come (I promise). Read from /proc/self/wchan should always return "0" as current is in TASK_RUNNING state while reading /proc/self/wchan. Link: http://lkml.kernel.org/r/20180226212006.GA742@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>
Showing
- tools/testing/selftests/Makefile 1 addition, 0 deletionstools/testing/selftests/Makefile
- tools/testing/selftests/proc/.gitignore 1 addition, 0 deletionstools/testing/selftests/proc/.gitignore
- tools/testing/selftests/proc/Makefile 6 additions, 0 deletionstools/testing/selftests/proc/Makefile
- tools/testing/selftests/proc/config 1 addition, 0 deletionstools/testing/selftests/proc/config
- tools/testing/selftests/proc/proc-self-wchan.c 25 additions, 0 deletionstools/testing/selftests/proc/proc-self-wchan.c
Loading
Please register or sign in to comment