#[repr(i32)]pub enum Event {
PTRACE_EVENT_FORK = 1,
PTRACE_EVENT_VFORK = 2,
PTRACE_EVENT_CLONE = 3,
PTRACE_EVENT_EXEC = 4,
PTRACE_EVENT_VFORK_DONE = 5,
PTRACE_EVENT_EXIT = 6,
PTRACE_EVENT_SECCOMP = 7,
}
Expand description
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
.
Variants§
PTRACE_EVENT_FORK = 1
Event that stops before a return from fork or clone.
PTRACE_EVENT_VFORK = 2
Event that stops before a return from vfork or clone.
PTRACE_EVENT_CLONE = 3
Event that stops before a return from clone.
PTRACE_EVENT_EXEC = 4
Event that stops before a return from execve.
PTRACE_EVENT_VFORK_DONE = 5
Event for a return from vfork.
PTRACE_EVENT_EXIT = 6
Event for a stop before an exit. Unlike the waitpid Exit status program. registers can still be examined
PTRACE_EVENT_SECCOMP = 7
STop triggered by a seccomp rule on a tracee.
Trait Implementations§
Source§impl Ord for Event
impl Ord for Event
Source§impl PartialOrd for Event
impl PartialOrd for Event
impl Copy for Event
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more