548a2ec49b
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 |
||
---|---|---|
.. | ||
acct | ||
execve | ||
pipe | ||
basic_signal.c | ||
coredump_phnum_helper.c | ||
coredump_phnum_test.sh | ||
fdgrowtable_test.c | ||
kcov.c | ||
kern_copyin.c | ||
kern_descrip_test.c | ||
kill_zombie.c | ||
ktls_test.c | ||
libkern_crc32.c | ||
Makefile | ||
Makefile.depend | ||
Makefile.inc | ||
pdeathsig_helper.c | ||
pdeathsig.c | ||
ptrace_test.c | ||
reaper.c | ||
sendfile_helper.c | ||
sendfile_test.sh | ||
sigaltstack.c | ||
sonewconn_overflow.py | ||
sonewconn_overflow.sh | ||
sys_getrandom.c | ||
sysctl_kern_proc.c | ||
unix_passfd_test.c | ||
unix_seqpacket_test.c | ||
unix_socketpair_test.c | ||
waitpid_nohang.c |