Struct hyperpom::tracer::TraceRange
source · pub struct TraceRange(_);
Expand description
A range of virtual addresses where tracing is applied. Arguments are the range’s start and end address.
Implementations
sourceimpl TraceRange
impl TraceRange
sourcepub fn new(start: u64, end: u64) -> Self
pub fn new(start: u64, end: u64) -> Self
Creates a new tracing range.
This structure is instanciated by the crate::loader::Loader
in
crate::loader::Loader::trace_ranges
to specify which virtual address ranges tracing
should be applied to. We can’t just instrument everything, because of data sections
found in code ranges that could be interpreted as instructions. The onus is on the user to
identify which ranges are actual code ranges.
Trait Implementations
sourceimpl Clone for TraceRange
impl Clone for TraceRange
sourcefn clone(&self) -> TraceRange
fn clone(&self) -> TraceRange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TraceRange
impl Debug for TraceRange
sourceimpl Hash for TraceRange
impl Hash for TraceRange
sourceimpl PartialEq<TraceRange> for TraceRange
impl PartialEq<TraceRange> for TraceRange
sourcefn eq(&self, other: &TraceRange) -> bool
fn eq(&self, other: &TraceRange) -> bool
impl Eq for TraceRange
impl StructuralEq for TraceRange
impl StructuralPartialEq for TraceRange
Auto Trait Implementations
impl RefUnwindSafe for TraceRange
impl Send for TraceRange
impl Sync for TraceRange
impl Unpin for TraceRange
impl UnwindSafe for TraceRange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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