OpenCloudOS-Kernel/tools/testing/selftests/proc
Alexey Dobriyan 61d47c4e71 proc: test /proc/self symlink
There are plans to change how /proc/self result is calculated,
for that a test is necessary.

Use direct system call because of this whole getpid caching story.

Link: http://lkml.kernel.org/r/20180627195103.GB18113@avx2
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-08-22 10:52:45 -07:00
..
.gitignore proc: test /proc/self symlink 2018-08-22 10:52:45 -07:00
Makefile proc: test /proc/self symlink 2018-08-22 10:52:45 -07:00
config proc: test /proc/self/wchan 2018-04-11 10:28:34 -07:00
fd-001-lookup.c tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
fd-002-posix-eq.c tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
fd-003-kthread.c tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
proc-loadavg-001.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-self-map-files-001.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-self-map-files-002.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-self-syscall.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-self-wchan.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-uptime-001.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-uptime-002.c proc: fixup copyright sign 2018-04-12 20:52:25 -07:00
proc-uptime.h tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
proc.h proc: test /proc/self symlink 2018-08-22 10:52:45 -07:00
read.c tools/testing/selftests/proc: test /proc/*/fd a bit (+ PF_KTHREAD is ABI!) 2018-06-07 17:34:38 -07:00
self.c proc: test /proc/self symlink 2018-08-22 10:52:45 -07:00