Available on crate feature
ptrace only.Expand description
Provides helpers for making ptrace system calls
Modules§
- regset
linux_androidand Linux and (GNU and (x86-64 or x86 or AArch64 or RISC-V RV64), or musl and AArch64) - Register sets used in
getregsetandsetregset
Structs§
- Options
linux_android - Ptrace options used in conjunction with the PTRACE_SETOPTIONS request.
See
man ptracefor more details.
Enums§
- Event
linux_android - Using the ptrace options the tracer can configure the tracee to stop
at certain events. This enum is used to define those events as defined
in
man ptrace. - Register
SetValue linux_android - Defines a specific register set, as used in
PTRACE_GETREGSETandPTRACE_SETREGSET. - Request
linux_android - Ptrace Request enum defining the action to be taken.
Traits§
- Register
Set linux_androidand Linux and (GNU and (x86-64 or x86 or AArch64 or RISC-V RV64), or musl and AArch64) - Represents register set areas, such as general-purpose registers or floating-point registers.
Functions§
- attach
linux_android - Attach to a running process, as with
ptrace(PTRACE_ATTACH, ...) - cont
linux_android - Restart the stopped tracee process, as with
ptrace(PTRACE_CONT, ...) - detach
linux_android - Detaches the current running process, as with
ptrace(PTRACE_DETACH, ...) - getevent
linux_android - Gets a ptrace event as described by
ptrace(PTRACE_GETEVENTMSG, ...) - getregs
linux_androidand Linux and (x86-64 and (GNU or musl), or x86 and GNU) - Get user registers, as with
ptrace(PTRACE_GETREGS, ...) - getregset
linux_androidand Linux and (GNU and (x86-64 or x86 or AArch64 or RISC-V RV64), or musl and AArch64) - Get a particular set of user registers, as with
ptrace(PTRACE_GETREGSET, ...) - getsiginfo
linux_android - Get siginfo as with
ptrace(PTRACE_GETSIGINFO, ...) - interrupt
linux_androidand Linux - Stop a tracee, as with
ptrace(PTRACE_INTERRUPT, ...) - kill
linux_android - Issues a kill request as with
ptrace(PTRACE_KILL, ...) - read
linux_android - Reads a word from a processes memory at the given address, as with ptrace(PTRACE_PEEKDATA, …)
- read_
user linux_android - Reads a word from a user area at
offset, as with ptrace(PTRACE_PEEKUSER, …). The user struct definition can be found in/usr/include/sys/user.h. - seize
linux_androidand Linux - Attach to a running process, as with
ptrace(PTRACE_SEIZE, ...) - setoptions
linux_android - Set options, as with
ptrace(PTRACE_SETOPTIONS, ...). - setregs
linux_androidand Linux and (x86-64 and (GNU or musl), or x86 and GNU) - Set user registers, as with
ptrace(PTRACE_SETREGS, ...) - setregset
linux_androidand Linux and (GNU and (x86-64 or x86 or AArch64 or RISC-V RV64), or musl and AArch64) - Set a particular set of user registers, as with
ptrace(PTRACE_SETREGSET, ...) - setsiginfo
linux_android - Set siginfo as with
ptrace(PTRACE_SETSIGINFO, ...) - step
linux_android - Move the stopped tracee process forward by a single step as with
ptrace(PTRACE_SINGLESTEP, ...) - syscall
linux_android - Continue execution until the next syscall, as with
ptrace(PTRACE_SYSCALL, ...) - syscall_
info linux_androidand Linux and GNU - Get the informations of the syscall that caused the stop, as with
ptrace(PTRACE_GET_SYSCALL_INFO, .... - sysemu
linux_androidand Linux and GNU and (x86 or x86-64) - Continue execution until the next syscall, as with
ptrace(PTRACE_SYSEMU, ...) - sysemu_
step linux_androidand Linux and GNU and (x86 or x86-64) - Move the stopped tracee process forward by a single step or stop at the next syscall
as with
ptrace(PTRACE_SYSEMU_SINGLESTEP, ...) - traceme
linux_android - Sets the process as traceable, as with
ptrace(PTRACE_TRACEME, ...) - write
linux_android - Writes a word into the processes memory at the given address, as with ptrace(PTRACE_POKEDATA, …)
- write_
user linux_android - Writes a word to a user area at
offset, as with ptrace(PTRACE_POKEUSER, …). The user struct definition can be found in/usr/include/sys/user.h.
Type Aliases§
- Address
Type linux_android