[][src]Struct libpapi_sys::event_info

#[repr(C)]pub struct event_info {
    pub event_code: c_uint,
    pub symbol: [c_char; 1024],
    pub short_descr: [c_char; 64],
    pub long_descr: [c_char; 1024],
    pub component_index: c_int,
    pub units: [c_char; 64],
    pub location: c_int,
    pub data_type: c_int,
    pub value_type: c_int,
    pub timescope: c_int,
    pub update_type: c_int,
    pub update_freq: c_int,
    pub count: c_uint,
    pub event_type: c_uint,
    pub derived: [c_char; 64],
    pub postfix: [c_char; 256],
    pub code: [c_uint; 12],
    pub name: [[c_char; 256]; 12],
    pub note: [c_char; 1024],
}

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]

impl Copy for event_info[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.