add sarg without comment.

pull/659/head
pdliyan 2 years ago
parent a89fa33f46
commit 23ef443b24

@ -44,6 +44,17 @@ impl ProbeContext {
T::from_argument(unsafe { &*self.regs }, n)
}
/// Returns the `n`th stack argument to passed to the probe function, starting from 0.
///
/// # Examples
///
/// ```no_run
///
/// ```
pub fn stack_arg<T: FromPtRegs>(&self, n: usize) -> Option<T> {
T::from_stack_argument(unsafe { &*self.regs }, n)
}
/// Returns the return value of the probed function.
///
/// # Examples

Loading…
Cancel
Save