pub struct EBPFPreProcessor { /* private fields */ }Expand description
eBPF preprocessor for relocating map file descriptors in eBPF instructions.
Implementations§
Source§impl EBPFPreProcessor
impl EBPFPreProcessor
Sourcepub fn preprocess<F: KernelAuxiliaryOps>(
instructions: Vec<u8>,
) -> LinuxResult<Self>
pub fn preprocess<F: KernelAuxiliaryOps>( instructions: Vec<u8>, ) -> LinuxResult<Self>
Preprocess the instructions to relocate the map file descriptors.
Sourcepub fn get_new_insn(&self) -> &Vec<u8> ⓘ
pub fn get_new_insn(&self) -> &Vec<u8> ⓘ
Get the new instructions after preprocessing.
Sourcepub fn get_raw_file_ptr(&self) -> &Vec<usize>
pub fn get_raw_file_ptr(&self) -> &Vec<usize>
Get the raw file pointer after preprocessing. The raw file pointer is a list of pointers to the maps that are used in the program. The pointers are used to access the maps in the program.
Auto Trait Implementations§
impl Freeze for EBPFPreProcessor
impl RefUnwindSafe for EBPFPreProcessor
impl Send for EBPFPreProcessor
impl Sync for EBPFPreProcessor
impl Unpin for EBPFPreProcessor
impl UnsafeUnpin for EBPFPreProcessor
impl UnwindSafe for EBPFPreProcessor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more