[−][src]Struct libpapi_sys::event_info
Fields
event_code: c_uint
< preset (0x8xxxxxxx) or native (0x4xxxxxxx) event code
symbol: [c_char; 1024]
< name of the event
short_descr: [c_char; 64]
< a short description suitable for use as a label
long_descr: [c_char; 1024]
< a longer description: typically a sentence for presets, possibly a paragraph from vendor docs for native events
component_index: c_int
< component this event belongs to
units: [c_char; 64]
< units event is measured in
location: c_int
< location event applies to
data_type: c_int
< data type returned by PAPI
value_type: c_int
< sum or absolute
timescope: c_int
< from start, etc.
update_type: c_int
< how event is updated
update_freq: c_int
< how frequently event is updated
count: c_uint
< number of terms (usually 1) in the code and name fields
- presets: these are native events
- native: these are unused
event_type: c_uint
< event type or category for preset events only
derived: [c_char; 64]
< name of the derived type
- presets: usually NOT_DERIVED
- native: empty string
postfix: [c_char; 256]
< string containing postfix operations; only defined for preset events of derived type DERIVED_POSTFIX
code: [c_uint; 12]
< array of values that further describe the event:
- presets: native event_code values
- native:, register values(?)
name: [[c_char; 256]; 12]
< names of code terms:
note: [c_char; 1024]
< an optional developer note supplied with a preset event to delineate platform specific anomalies or restrictions
Trait Implementations
impl Clone for event_info
[src]
fn clone(&self) -> event_info
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for event_info
[src]
Auto Trait Implementations
impl Send for event_info
impl Sync for event_info
impl Unpin for event_info
impl UnwindSafe for event_info
impl RefUnwindSafe for event_info
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,