freebsd-dev/tests/sys/kern
Andrew Turner 548a2ec49b Add PT_GETREGSET
This adds the PT_GETREGSET and PT_SETREGSET ptrace types. These can be
used to access all the registers from a specified core dump note type.
The NT_PRSTATUS and NT_FPREGSET notes are initially supported. Other
machine-dependant types are expected to be added in the future.

The ptrace addr points to a struct iovec pointing at memory to hold the
registers along with its length. On success the length in the iovec is
updated to tell userspace the actual length the kernel wrote or, if the
base address is NULL, the length the kernel would have written.

Because the data field is an int the arguments are backwards when
compared to the Linux PTRACE_GETREGSET call.

Reviewed by:	kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19831
2022-01-27 11:40:34 +00:00
..
acct
execve tests: add a basic test for argc == 0 2022-01-26 13:40:27 -06:00
pipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
basic_signal.c Fix copyright to be like all my others in the tree 2021-11-23 21:21:18 -07:00
coredump_phnum_helper.c Fix coredump_phnum test with ASLR enabled by default 2021-11-21 12:57:38 -05:00
coredump_phnum_test.sh coredump_phnum_test: handle full file system gracefully 2019-10-11 21:23:46 +00:00
fdgrowtable_test.c fdgrowtable_test.c: appease gcc 2020-12-11 22:52:16 +00:00
kcov.c Allow the kcov buffer to be mmaped multiple times. 2019-02-21 10:11:15 +00:00
kern_copyin.c copyin tests: Use the KERN_PROC_VM_LAYOUT sysctl to fetch layout info 2022-01-17 16:12:43 -05:00
kern_descrip_test.c Fix problems in the kern_maxfiles__increase test 2019-10-08 13:43:05 +00:00
kill_zombie.c Add a test for kill() on a zombie 2019-08-06 21:17:22 +00:00
ktls_test.c ktls: Add a regression test to exercise socket error handling 2021-12-17 13:10:22 -05:00
libkern_crc32.c tests/sys/kern/crc32: Check for SSE4.2 before using it 2021-02-02 09:53:39 +00:00
Makefile tests: Add some regression tests for a couple of KERN_PROC_* sysctls 2021-12-17 13:10:52 -05:00
Makefile.depend
Makefile.inc
pdeathsig_helper.c
pdeathsig.c sys.kern.pdeathsig.signal_delivered_ptrace: fix startup. 2019-08-19 09:33:09 +00:00
ptrace_test.c Add PT_GETREGSET 2022-01-27 11:40:34 +00:00
reaper.c
sendfile_helper.c add a few tests for sendfile. 2020-07-20 20:36:32 +00:00
sendfile_test.sh add a few tests for sendfile. 2020-07-20 20:36:32 +00:00
sigaltstack.c
sonewconn_overflow.py Clear the dmesg buffer to prevent rotating causes issues 2020-10-06 04:18:42 +00:00
sonewconn_overflow.sh Add a regression test for the changes in r359922 and r359923. 2020-04-16 20:07:34 +00:00
sys_getrandom.c
sysctl_kern_proc.c tests: Add some regression tests for a couple of KERN_PROC_* sysctls 2021-12-17 13:10:52 -05:00
unix_passfd_test.c Unbreak MSG_CMSG_CLOEXEC 2021-03-18 20:52:20 +00:00
unix_seqpacket_test.c
unix_socketpair_test.c Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
waitpid_nohang.c