Struct blaze_normalize_opts

Source
#[repr(C)]
pub struct blaze_normalize_opts { pub type_size: usize, pub sorted_addrs: bool, pub map_files: bool, pub apk_to_elf: bool, pub reserved: [u8; 21], }
Expand description

Options influencing the address normalization process.

Fields§

§type_size: usize

The size of this object’s type.

Make sure to initialize it to sizeof(<type>). This member is used to ensure compatibility in the presence of member additions.

§sorted_addrs: bool

Whether or not addresses are sorted (in ascending order) already.

Normalization always happens on sorted addresses and if the addresses are sorted already, the library does not need to sort and later restore original ordering, speeding up the normalization process.

§map_files: bool

Whether to report /proc/<pid>/map_files/ entry paths or work with symbolic paths mentioned in /proc/<pid>/maps instead.

Relying on map_files may make sense in cases where symbolization happens on the local system and the reported paths can be worked with directly. In most other cases where one wants to attach meaning to symbolic paths on a remote system (e.g., by using them for file look up) symbolic paths are probably the better choice.

§apk_to_elf: bool

Normalize addresses inside APKs to the contained ELF file and report a regular blaze_user_meta_kind::ELF meta data entry instead of an blaze_user_meta_kind::APK one. As a result, the reported file offset will also be relative to the contained ELF file and not to the APK itself.

§reserved: [u8; 21]

Unused member available for future expansion. Must be initialized to zero.

Trait Implementations§

Source§

impl Debug for blaze_normalize_opts

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for blaze_normalize_opts

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<blaze_normalize_opts> for NormalizeOpts

Source§

fn from(opts: blaze_normalize_opts) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more