[−][src]Struct perfcnt::linux::perf_format::SampleFormatFlags
Implementations
impl SampleFormatFlags
[src]
pub const PERF_SAMPLE_IP: SampleFormatFlags
[src]
Records instruction pointer.
pub const PERF_SAMPLE_TID: SampleFormatFlags
[src]
Records the process and thread IDs.
pub const PERF_SAMPLE_TIME: SampleFormatFlags
[src]
Records a timestamp.
pub const PERF_SAMPLE_ADDR: SampleFormatFlags
[src]
Records an address, if applicable.
pub const PERF_SAMPLE_READ: SampleFormatFlags
[src]
Record counter values for all events in a group, not just the group leader.
pub const PERF_SAMPLE_CALLCHAIN: SampleFormatFlags
[src]
Records the callchain (stack backtrace).
pub const PERF_SAMPLE_ID: SampleFormatFlags
[src]
Records a unique ID for the opened event's group leader.
pub const PERF_SAMPLE_CPU: SampleFormatFlags
[src]
Records CPU number.
pub const PERF_SAMPLE_PERIOD: SampleFormatFlags
[src]
Records the current sampling period.
pub const PERF_SAMPLE_STREAM_ID: SampleFormatFlags
[src]
Records a unique ID for the opened event. Unlike PERF_SAMPLE_ID the actual ID is returned, not the group leader. This ID is the same as the one returned by PERF_FORMAT_ID.
pub const PERF_SAMPLE_RAW: SampleFormatFlags
[src]
Records additional data, if applicable. Usually returned by tracepoint events.
pub const PERF_SAMPLE_BRANCH_STACK: SampleFormatFlags
[src]
This provides a record of recent branches, as provided by CPU branch sampling hardware (such as Intel Last Branch Record). Not all hardware supports this feature. See the branch_sample_type field for how to filter which branches are reported.
pub const PERF_SAMPLE_REGS_USER: SampleFormatFlags
[src]
Records the current user-level CPU register state (the values in the process before the kernel was called).
pub const PERF_SAMPLE_STACK_USER: SampleFormatFlags
[src]
Records the user level stack, allowing stack unwinding.
pub const PERF_SAMPLE_WEIGHT: SampleFormatFlags
[src]
Records a hardware provided weight value that expresses how costly the sampled event was. This allows the hardware to highlight expensive events in a profile.
pub const PERF_SAMPLE_DATA_SRC: SampleFormatFlags
[src]
Records the data source: where in the memory hierarchy the data associated with the sampled instruction came from. This is only available if the underlying hardware supports this feature.
pub const PERF_SAMPLE_IDENTIFIER: SampleFormatFlags
[src]
pub const PERF_SAMPLE_TRANSACTION: SampleFormatFlags
[src]
pub const PERF_SAMPLE_REGS_INTR: SampleFormatFlags
[src]
pub const fn empty() -> SampleFormatFlags
[src]
Returns an empty set of flags
pub const fn all() -> SampleFormatFlags
[src]
Returns the set containing all flags.
pub const fn bits(&self) -> u64
[src]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u64) -> Option<SampleFormatFlags>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u64) -> SampleFormatFlags
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u64) -> SampleFormatFlags
[src]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: SampleFormatFlags) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: SampleFormatFlags) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: SampleFormatFlags)
[src]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: SampleFormatFlags)
[src]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: SampleFormatFlags)
[src]
Toggles the specified flags in-place.
pub fn set(&mut self, other: SampleFormatFlags, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
impl SampleFormatFlags
[src]
pub fn has_ip(&self) -> bool
[src]
pub fn has_tid(&self) -> bool
[src]
pub fn has_time(&self) -> bool
[src]
pub fn has_addr(&self) -> bool
[src]
pub fn has_read(&self) -> bool
[src]
pub fn has_callchain(&self) -> bool
[src]
pub fn has_sample_id(&self) -> bool
[src]
pub fn has_cpu(&self) -> bool
[src]
pub fn has_period(&self) -> bool
[src]
pub fn has_stream_id(&self) -> bool
[src]
pub fn has_raw(&self) -> bool
[src]
pub fn has_branch_stack(&self) -> bool
[src]
pub fn has_regs_user(&self) -> bool
[src]
pub fn has_stack_user(&self) -> bool
[src]
pub fn has_weight(&self) -> bool
[src]
pub fn has_data_src(&self) -> bool
[src]
pub fn has_identifier(&self) -> bool
[src]
pub fn has_transaction(&self) -> bool
[src]
pub fn has_regs_intr(&self) -> bool
[src]
Trait Implementations
impl Binary for SampleFormatFlags
[src]
impl BitAnd<SampleFormatFlags> for SampleFormatFlags
[src]
type Output = SampleFormatFlags
The resulting type after applying the &
operator.
fn bitand(self, other: SampleFormatFlags) -> SampleFormatFlags
[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<SampleFormatFlags> for SampleFormatFlags
[src]
fn bitand_assign(&mut self, other: SampleFormatFlags)
[src]
Disables all flags disabled in the set.
impl BitOr<SampleFormatFlags> for SampleFormatFlags
[src]
type Output = SampleFormatFlags
The resulting type after applying the |
operator.
fn bitor(self, other: SampleFormatFlags) -> SampleFormatFlags
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<SampleFormatFlags> for SampleFormatFlags
[src]
fn bitor_assign(&mut self, other: SampleFormatFlags)
[src]
Adds the set of flags.
impl BitXor<SampleFormatFlags> for SampleFormatFlags
[src]
type Output = SampleFormatFlags
The resulting type after applying the ^
operator.
fn bitxor(self, other: SampleFormatFlags) -> SampleFormatFlags
[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<SampleFormatFlags> for SampleFormatFlags
[src]
fn bitxor_assign(&mut self, other: SampleFormatFlags)
[src]
Toggles the set of flags.
impl Clone for SampleFormatFlags
[src]
fn clone(&self) -> SampleFormatFlags
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SampleFormatFlags
[src]
impl Debug for SampleFormatFlags
[src]
impl Eq for SampleFormatFlags
[src]
impl Extend<SampleFormatFlags> for SampleFormatFlags
[src]
fn extend<T: IntoIterator<Item = SampleFormatFlags>>(&mut self, iterator: T)
[src]
fn extend_one(&mut self, item: A)
[src]
fn extend_reserve(&mut self, additional: usize)
[src]
impl FromIterator<SampleFormatFlags> for SampleFormatFlags
[src]
fn from_iter<T: IntoIterator<Item = SampleFormatFlags>>(
iterator: T
) -> SampleFormatFlags
[src]
iterator: T
) -> SampleFormatFlags
impl Hash for SampleFormatFlags
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for SampleFormatFlags
[src]
impl Not for SampleFormatFlags
[src]
type Output = SampleFormatFlags
The resulting type after applying the !
operator.
fn not(self) -> SampleFormatFlags
[src]
Returns the complement of this set of flags.
impl Octal for SampleFormatFlags
[src]
impl Ord for SampleFormatFlags
[src]
fn cmp(&self, other: &SampleFormatFlags) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<SampleFormatFlags> for SampleFormatFlags
[src]
fn eq(&self, other: &SampleFormatFlags) -> bool
[src]
fn ne(&self, other: &SampleFormatFlags) -> bool
[src]
impl PartialOrd<SampleFormatFlags> for SampleFormatFlags
[src]
fn partial_cmp(&self, other: &SampleFormatFlags) -> Option<Ordering>
[src]
fn lt(&self, other: &SampleFormatFlags) -> bool
[src]
fn le(&self, other: &SampleFormatFlags) -> bool
[src]
fn gt(&self, other: &SampleFormatFlags) -> bool
[src]
fn ge(&self, other: &SampleFormatFlags) -> bool
[src]
impl StructuralEq for SampleFormatFlags
[src]
impl StructuralPartialEq for SampleFormatFlags
[src]
impl Sub<SampleFormatFlags> for SampleFormatFlags
[src]
type Output = SampleFormatFlags
The resulting type after applying the -
operator.
fn sub(self, other: SampleFormatFlags) -> SampleFormatFlags
[src]
Returns the set difference of the two sets of flags.
impl SubAssign<SampleFormatFlags> for SampleFormatFlags
[src]
fn sub_assign(&mut self, other: SampleFormatFlags)
[src]
Disables all flags enabled in the set.
impl UpperHex for SampleFormatFlags
[src]
Auto Trait Implementations
impl RefUnwindSafe for SampleFormatFlags
impl Send for SampleFormatFlags
impl Sync for SampleFormatFlags
impl Unpin for SampleFormatFlags
impl UnwindSafe for SampleFormatFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,