[go: up one dir, main page]

Module ptrace

Module ptrace 

Source
Available on crate feature ptrace only.
Expand description

Provides helpers for making ptrace system calls

Modules§

regsetlinux_android and Linux and (GNU and (x86-64 or x86 or AArch64 or RISC-V RV64), or musl and AArch64)
Register sets used in getregset and setregset

Structs§

Optionslinux_android
Ptrace options used in conjunction with the PTRACE_SETOPTIONS request. See man ptrace for more details.

Enums§

Eventlinux_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.
RegisterSetValuelinux_android
Defines a specific register set, as used in PTRACE_GETREGSET and PTRACE_SETREGSET.
Requestlinux_android
Ptrace Request enum defining the action to be taken.

Traits§

RegisterSetlinux_android and 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§

attachlinux_android
Attach to a running process, as with ptrace(PTRACE_ATTACH, ...)
contlinux_android
Restart the stopped tracee process, as with ptrace(PTRACE_CONT, ...)
detachlinux_android
Detaches the current running process, as with ptrace(PTRACE_DETACH, ...)
geteventlinux_android
Gets a ptrace event as described by ptrace(PTRACE_GETEVENTMSG, ...)
getregslinux_android and Linux and (x86-64 and (GNU or musl), or x86 and GNU)
Get user registers, as with ptrace(PTRACE_GETREGS, ...)
getregsetlinux_android and 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, ...)
getsiginfolinux_android
Get siginfo as with ptrace(PTRACE_GETSIGINFO, ...)
interruptlinux_android and Linux
Stop a tracee, as with ptrace(PTRACE_INTERRUPT, ...)
killlinux_android
Issues a kill request as with ptrace(PTRACE_KILL, ...)
readlinux_android
Reads a word from a processes memory at the given address, as with ptrace(PTRACE_PEEKDATA, …)
read_userlinux_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.
seizelinux_android and Linux
Attach to a running process, as with ptrace(PTRACE_SEIZE, ...)
setoptionslinux_android
Set options, as with ptrace(PTRACE_SETOPTIONS, ...).
setregslinux_android and Linux and (x86-64 and (GNU or musl), or x86 and GNU)
Set user registers, as with ptrace(PTRACE_SETREGS, ...)
setregsetlinux_android and 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, ...)
setsiginfolinux_android
Set siginfo as with ptrace(PTRACE_SETSIGINFO, ...)
steplinux_android
Move the stopped tracee process forward by a single step as with ptrace(PTRACE_SINGLESTEP, ...)
syscalllinux_android
Continue execution until the next syscall, as with ptrace(PTRACE_SYSCALL, ...)
syscall_infolinux_android and Linux and GNU
Get the informations of the syscall that caused the stop, as with ptrace(PTRACE_GET_SYSCALL_INFO, ....
sysemulinux_android and Linux and GNU and (x86 or x86-64)
Continue execution until the next syscall, as with ptrace(PTRACE_SYSEMU, ...)
sysemu_steplinux_android and 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, ...)
tracemelinux_android
Sets the process as traceable, as with ptrace(PTRACE_TRACEME, ...)
writelinux_android
Writes a word into the processes memory at the given address, as with ptrace(PTRACE_POKEDATA, …)
write_userlinux_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§

AddressTypelinux_android