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 Freeze for UprobeOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)