linux/tools/testing/selftests/proc
Suren Baghdasaryan 6d536ed691 selftests/proc: add /proc/pid/smaps tearing tests
Add tearing tests for /proc/pid/smaps file.  New tests reuse the same
logic as with maps file but skipping all the data except for the VMA
addresses, which are the only part relevant for the tearing tests.  Skip
PROCMAP_QUERY parts of the tests because smaps does not implement that
ioctl.

Link: https://lore.kernel.org/20260426062718.1238437-4-surenb@google.com
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Liam R. Howlett <liam@infradead.org>
Cc: Jann Horn <jannh@google.com>
Cc: Lorenzo Stoakes <ljs@kernel.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: "Paul E . McKenney" <paulmck@kernel.org>
Cc: Pedro Falcato <pfalcato@suse.de>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2026-06-04 14:45:06 -07:00
..
.gitignore Patch series in this pull request: 2025-10-02 18:44:54 -07:00
config
fd-001-lookup.c
fd-002-posix-eq.c
fd-003-kthread.c
Makefile Patch series in this pull request: 2025-10-02 18:44:54 -07:00
proc-2-is-kthread.c proc: test "Kthread:" field 2024-06-24 22:25:08 -07:00
proc-empty-vm.c selftests: proc: remove unreached code and fix build warning 2024-06-28 19:36:27 -07:00
proc-fsconfig-hidepid.c
proc-loadavg-001.c
proc-maps-race.c selftests/proc: add /proc/pid/smaps tearing tests 2026-06-04 14:45:06 -07:00
proc-multiple-procfs.c
proc-net-dev-lseek.c proc: test lseek on /proc/net/dev 2025-09-13 17:32:48 -07:00
proc-pid-vm.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
proc-pidns.c selftests: complete kselftest include centralization 2025-11-27 14:24:31 -08:00
proc-self-isnt-kthread.c proc: test "Kthread:" field 2024-06-24 22:25:08 -07:00
proc-self-map-files-001.c
proc-self-map-files-002.c
proc-self-syscall.c
proc-self-wchan.c
proc-subset-pid.c
proc-tid0.c
proc-uptime-001.c
proc-uptime-002.c
proc-uptime.h
proc.h
read.c
self.c
setns-dcache.c
setns-sysvipc.c
thread-self.c