]> 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>
Fri, 22 Mar 2013 04:33:53 +0000 (15:33 +1100)
commitab57fe7d0fa898ce9964a61c18b636bdea835da5
tree6a4264f061cb6b6abcb8d31c8a390d6744003293
parent775d593257db8704396601067b85b31ab1d135cd
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]