]> git.karo-electronics.de Git - karo-tx-linux.git/commit
selftest: add a test case for PTRACE_PEEKSIGINFO
authorAndrey Vagin <avagin@openvz.org>
Wed, 20 Mar 2013 04:08:27 +0000 (15:08 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:34:27 +0000 (16:34 +1100)
commit3abe100a33cebc5c62d8e0096c8d73a26cfb06b2
treec4ee701ac0e3e3114ad413a43786ae4121268ba1
parent87ee437f2aed1f15e4040e0616df2e11a6c91431
selftest: add a test case for PTRACE_PEEKSIGINFO

* Dump signals from process-wide and per-thread queues with
  different sizes of buffers.
* Check error paths for buffers with restricted permissions. A part of
  buffer or a whole buffer is for read-only.
* Try to get nonexistent signal.

Signed-off-by: Andrew Vagin <avagin@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Dave Jones <davej@redhat.com>
Cc: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
Cc: Pavel Emelyanov <xemul@parallels.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Pedro Alves <palves@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/Makefile
tools/testing/selftests/ptrace/Makefile [new file with mode: 0644]
tools/testing/selftests/ptrace/peeksiginfo.c [new file with mode: 0644]