selftests: coredump: Add stackdump test
authorNam Cao <namcao@linutronix.de>
Thu, 2 Jan 2025 08:22:57 +0000 (09:22 +0100)
committerChristian Brauner <brauner@kernel.org>
Sat, 4 Jan 2025 09:12:18 +0000 (10:12 +0100)
commit15858da53542360931a457f32bcdc4287d13731f
tree196d5c2737f9b6d011e278d8c7562298ca244b52
parentab251dacfbae28772c897f068a4184f478189ff2
selftests: coredump: Add stackdump test

Add a test which checks that the kstkesp field in /proc/pid/stat can be
read for all threads of a coredumping process.

For full details including the motivation for this test and how it works,
see the README file added by this commit.

Reviewed-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/50e737b6576208566d14efcf1934fe840de6b1f4.1735805772.git.namcao@linutronix.de
Signed-off-by: Christian Brauner <brauner@kernel.org>
tools/testing/selftests/coredump/Makefile [new file with mode: 0644]
tools/testing/selftests/coredump/README.rst [new file with mode: 0644]
tools/testing/selftests/coredump/stackdump [new file with mode: 0755]
tools/testing/selftests/coredump/stackdump_test.c [new file with mode: 0644]