]> git.baikalelectronics.ru Git - kernel.git/commit
kselftest/arm64: Log the PIDs of the parent and child in sve-ptrace
authorMark Brown <broonie@kernel.org>
Thu, 3 Mar 2022 19:28:17 +0000 (19:28 +0000)
committerWill Deacon <will@kernel.org>
Mon, 7 Mar 2022 21:46:57 +0000 (21:46 +0000)
commit43b2c5e0fe5a67e4e94da292f405de5a5fdcfa48
tree372273bc947bef8f526b1a242f587254d52de3a3
parent98fb60ac849a092633d217c5c3ec51eb5a5c042d
kselftest/arm64: Log the PIDs of the parent and child in sve-ptrace

If the test triggers a problem it may well result in a log message from
the kernel such as a WARN() or BUG(). If these include a PID it can help
with debugging to know if it was the parent or child process that triggered
the issue, since the test is just creating a new thread the process name
will be the same either way. Print the PIDs of the parent and child on
startup so users have this information to hand should it be needed.

Signed-off-by: Mark Brown <broonie@kernel.org>
Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20220303192817.2732509-1-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/fp/sve-ptrace.c