NetBSD/tests/kernel
kamil 61aff29627 Introduce new interface in ptrace(2) - PT_GET_SIGMASK and PT_SET_SIGMASK
Add new interface to add ability to get/set signal mask of a tracee.
It has been inspired by Linux PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, but
adapted for NetBSD API.

This interface is used for checkpointing software to set/restore context
of a process including signal mask like criu or just to track this property
in reverse-execution software like Record and Replay Framework (rr).


Add new ATF tests for this interface
====================================
getsigmask1:
    Verify that plain PT_SET_SIGMASK can be called

getsigmask2:
    Verify that PT_SET_SIGMASK reports correct mask from tracee

setsigmask1:
    Verify that plain PT_SET_SIGMASK can be called with empty mask

setsigmask2:
    Verify that sigmask is preserved between PT_GET_SIGMASK and
    PT_SET_SIGMASK

setsigmask3:
    Verify that sigmask is preserved between PT_GET_SIGMASK, process
    resumed and PT_SET_SIGMASK

setsigmask4:
    Verify that new sigmask is visible in tracee


Kernel ABI bump delayed as there are more interfaces to come in ptrace(2).

Sponsored by <The NetBSD Foundation>
2017-02-12 06:09:52 +00:00
..
arch Use siginfo_t to validate tests/kernel/arch/amd64/t_ptrace_wait* 2017-01-18 05:14:34 +00:00
kqueue Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
tty Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
Makefile Define -D_KERNTYPES in CPPFLAGS unconditionally to fix MKRUMP=no build 2016-12-14 06:19:59 +00:00
Makefile.inc
gen_t_subr_prf Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
h_ps_strings1.c
h_ps_strings2.c
msg.h - abstract the pipe calls into routines. 2016-12-05 20:10:10 +00:00
t_extattrctl.c
t_extent.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_filedesc.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_kauth_pr_47598.c Skip the curtain test case if curtain is not enabled and we would not 2014-04-28 08:34:16 +00:00
t_lock.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_lockf.c fix unused variable warnings 2013-10-19 17:45:00 +00:00
t_mqueue.c PR/51871: Ngie Cooper: add fcntl.h for O_* fcntl/open constants 2017-01-14 20:57:24 +00:00
t_ps_strings.sh
t_ptrace.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_ptrace_wait.c Introduce new interface in ptrace(2) - PT_GET_SIGMASK and PT_SET_SIGMASK 2017-02-12 06:09:52 +00:00
t_ptrace_wait.h PT_GET_SIGINFO is no longer PT_SET_SIGINFO conditional in ATF tests 2017-01-09 22:09:20 +00:00
t_ptrace_wait3.c Add new tests for combination of wait(2) interfaces with ptrace(2) 2016-11-07 21:09:03 +00:00
t_ptrace_wait4.c Add new tests for combination of wait(2) interfaces with ptrace(2) 2016-11-07 21:09:03 +00:00
t_ptrace_wait6.c Add new tests for combination of wait(2) interfaces with ptrace(2) 2016-11-07 21:09:03 +00:00
t_ptrace_waitid.c Add new tests for combination of wait(2) interfaces with ptrace(2) 2016-11-07 21:09:03 +00:00
t_ptrace_waitpid.c Add new tests for combination of wait(2) interfaces with ptrace(2) 2016-11-07 21:09:03 +00:00
t_pty.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_rnd.c Don't play with "../.." in includes for h_macros.h; deal with it centrally. 2017-01-13 21:30:39 +00:00
t_sysctl.c Test that reading a CTLTYPE_INT sysctl variable into a buffer that is 2014-08-09 07:04:03 +00:00
t_sysv.c Make cleanup routines actually work. 2014-03-02 20:13:12 +00:00
t_umount.sh
t_umountstress.sh Don't rely on "kill -0" to check whether a background shell command 2013-05-31 14:40:48 +00:00