Struct libbpf_rs::UprobeOpts
source · pub struct UprobeOpts {
pub ref_ctr_offset: usize,
pub cookie: u64,
pub retprobe: bool,
pub func_name: String,
/* private fields */
}
Expand description
Options to optionally be provided when attaching to a uprobe.
Fields§
§ref_ctr_offset: usize
Offset of kernel reference counted USDT semaphore.
Custom user-provided value accessible through bpf_get_attach_cookie
.
retprobe: bool
uprobe is return probe, invoked at function return time.
func_name: String
Function name to attach to.
Could be an unqualified (“abc”) or library-qualified “abc@LIBXYZ” name.
To specify function entry, func_name
should be set while func_offset
argument to should be 0. To trace an offset within a function, specify
func_name
and use func_offset
argument to specify offset within the
function. Shared library functions must specify the shared library
binary_path.
Trait Implementations§
source§impl Clone for UprobeOpts
impl Clone for UprobeOpts
source§fn clone(&self) -> UprobeOpts
fn clone(&self) -> UprobeOpts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UprobeOpts
impl Debug for UprobeOpts
source§impl Default for UprobeOpts
impl Default for UprobeOpts
source§fn default() -> UprobeOpts
fn default() -> UprobeOpts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UprobeOpts
impl Send for UprobeOpts
impl Sync for UprobeOpts
impl Unpin for UprobeOpts
impl UnwindSafe for UprobeOpts
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