selftests: Refactor 'peeksiginfo' ptrace test part
authorIvan Orlov <ivan.orlov0322@gmail.com>
Mon, 20 Feb 2023 16:03:02 +0000 (19:03 +0300)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 28 Mar 2023 16:23:45 +0000 (10:23 -0600)
commit350d216dc2507daa03074a3079f0d654eadcac13
tree7eb2a4618d2bd8ba9000d6bea8840f47bd167ebc
parente1e17d7debf486fd3b757df9e009b8d109e4be43
selftests: Refactor 'peeksiginfo' ptrace test part

peeksiginfo creates an array of 10 instances of 'siginfo_t',
but actually uses only one. This patch will reduce amount
of memory on the stack used by the peeksiginfo test.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ptrace/peeksiginfo.c