diff options
author | Suresh Siddha <[email protected]> | 2010-02-11 11:51:00 -0800 |
---|---|---|
committer | H. Peter Anvin <[email protected]> | 2010-02-11 15:08:33 -0800 |
commit | 2225a122ae26d542bdce523d9d87a4a7ba10e07b (patch) | |
tree | 861117cc1711cdf3c10f76212afe2e57b05d34c4 /net/lapb/lapb_in.c | |
parent | 5b3efd500854d45d305b53c54c97db5970959980 (diff) |
ptrace: Add support for generic PTRACE_GETREGSET/PTRACE_SETREGSET
Generic support for PTRACE_GETREGSET/PTRACE_SETREGSET commands which
export the regsets supported by each architecture using the correponding
NT_* types. These NT_* types are already part of the userland ABI, used
in representing the architecture specific register sets as different NOTES
in an ELF core file.
'addr' parameter for the ptrace system call encode the REGSET type (using
the corresppnding NT_* type) and the 'data' parameter points to the
struct iovec having the user buffer and the length of that buffer.
struct iovec iov = { buf, len};
ret = ptrace(PTRACE_GETREGSET/PTRACE_SETREGSET, pid, NT_XXX_TYPE, &iov);
On successful completion, iov.len will be updated by the kernel specifying
how much the kernel has written/read to/from the user's iov.buf.
x86 extended state registers are primarily exported using this interface.
Signed-off-by: Suresh Siddha <[email protected]>
LKML-Reference: <[email protected]>
Acked-by: Hongjiu Lu <[email protected]>
Cc: Roland McGrath <[email protected]>
Signed-off-by: H. Peter Anvin <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions