[][src]Struct redbpf_probes::kprobe::Registers

pub struct Registers {
    pub ctx: *mut pt_regs,
}

Fields

ctx: *mut pt_regs

Methods

impl Registers[src]

Convenience functions wrapping the architecture native struct pt_regs

These methods are ports of the PT_REGS_* macros in the Linux kernel.

The only supported architectures by RedBPF are aarch64/arm64 and x86_64, therefore we only return 64bit registers, as generated by bindgen.

pub fn parm1(&self) -> u64[src]

First parameter to the function

pub fn parm2(&self) -> u64[src]

Second parameter to the function

pub fn parm3(&self) -> u64[src]

Third parameter to the function

pub fn parm4(&self) -> u64[src]

Fourth parameter to the function

pub fn parm5(&self) -> u64[src]

Fifth parameter to the function

pub fn ret(&self) -> u64[src]

Procedure link pointer (return to this IP)

pub fn fp(&self) -> u64[src]

Frame pointer

pub fn rc(&self) -> u64[src]

Return value

pub fn sp(&self) -> u64[src]

Stack pointer

pub fn ip(&self) -> u64[src]

Instruction pointer

Trait Implementations

impl Clone for Registers[src]

impl Copy for Registers[src]

impl From<*mut c_void> for Registers[src]

Auto Trait Implementations

impl !Send for Registers

impl !Sync for Registers

impl Unpin for Registers

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.