pub struct Registers<'a> {
pub abi: SampleRegsAbi,
pub mask: u64,
pub regs: Cow<'a, [u64]>,
}Expand description
Describes the captured subset of registers when a sample was taken.
See the manpage for all the details.
Fields§
§abi: SampleRegsAbiThe ABI of the program from which the sample was taken.
mask: u64A bitmask indicating which registers were recorded.
This is configured as a part of constructing the sampler.
regs: Cow<'a, [u64]>The recorded values of the registers.
Implementations§
Source§impl<'p> Registers<'p>
impl<'p> Registers<'p>
Sourcepub fn parse_user<B, E>(p: &mut Parser<B, E>) -> ParseResult<Self>
pub fn parse_user<B, E>(p: &mut Parser<B, E>) -> ParseResult<Self>
Parse registers using the user registers mask in the config.
Sourcepub fn parse_intr<B, E>(p: &mut Parser<B, E>) -> ParseResult<Self>
pub fn parse_intr<B, E>(p: &mut Parser<B, E>) -> ParseResult<Self>
Parse registers using the intr registers mask in the config.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Registers<'a>
impl<'a> RefUnwindSafe for Registers<'a>
impl<'a> Send for Registers<'a>
impl<'a> Sync for Registers<'a>
impl<'a> Unpin for Registers<'a>
impl<'a> UnwindSafe for Registers<'a>
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