Struct aya::maps::stack_trace::StackTrace
source · [−]pub struct StackTrace {
pub id: u32,
/* private fields */
}
Expand description
A kernel or user space stack trace.
See the StackTraceMap
documentation for examples.
Fields
id: u32
The stack trace id as returned by bpf_get_stackid()
.
Implementations
sourceimpl StackTrace
impl StackTrace
sourcepub fn resolve(&mut self, symbols: &BTreeMap<u64, String>) -> &StackTrace
pub fn resolve(&mut self, symbols: &BTreeMap<u64, String>) -> &StackTrace
Resolves symbol names using the given symbol map.
You can use util::kernel_symbols()
to load kernel symbols. For
user-space traces you need to provide the symbols, for example loading
them from debug info.
sourcepub fn frames(&self) -> &[StackFrame]
pub fn frames(&self) -> &[StackFrame]
Returns the frames in this stack trace.
Trait Implementations
sourceimpl<T: Deref<Target = Map>> IterableMap<u32, StackTrace> for StackTraceMap<T>
impl<T: Deref<Target = Map>> IterableMap<u32, StackTrace> for StackTraceMap<T>
Auto Trait Implementations
impl RefUnwindSafe for StackTrace
impl Send for StackTrace
impl Sync for StackTrace
impl Unpin for StackTrace
impl UnwindSafe for StackTrace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more