[][src]Struct libpapi_sys::_papi_component_option

#[repr(C)]pub struct _papi_component_option {
    pub name: [c_char; 128],
    pub short_name: [c_char; 64],
    pub description: [c_char; 128],
    pub version: [c_char; 64],
    pub support_version: [c_char; 64],
    pub kernel_version: [c_char; 64],
    pub disabled_reason: [c_char; 128],
    pub disabled: c_int,
    pub CmpIdx: c_int,
    pub num_cntrs: c_int,
    pub num_mpx_cntrs: c_int,
    pub num_preset_events: c_int,
    pub num_native_events: c_int,
    pub default_domain: c_int,
    pub available_domains: c_int,
    pub default_granularity: c_int,
    pub available_granularities: c_int,
    pub hardware_intr_sig: c_int,
    pub component_type: c_int,
    pub pmu_names: [*mut c_char; 40],
    pub reserved: [c_int; 8],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4], u16>,
    pub __bindgen_padding_0: u32,
}

@ingroup papi_data_structures

Fields

name: [c_char; 128]

< Name of the component we're using

short_name: [c_char; 64]

< Short name of component, to be prepended to event names

description: [c_char; 128]

< Description of the component

version: [c_char; 64]

< Version of this component

support_version: [c_char; 64]

< Version of the support library

kernel_version: [c_char; 64]

< Version of the kernel PMC support driver

disabled_reason: [c_char; 128]

< Reason for failure of initialization

disabled: c_int

< 0 if enabled, otherwise error code from initialization

CmpIdx: c_int

< Index into the vector array for this component; set at init time

num_cntrs: c_int

< Number of hardware counters the component supports

num_mpx_cntrs: c_int

< Number of hardware counters the component or PAPI can multiplex supports

num_preset_events: c_int

< Number of preset events the component supports

num_native_events: c_int

< Number of native events the component supports

default_domain: c_int

< The default domain when this component is used

available_domains: c_int

< Available domains

default_granularity: c_int

< The default granularity when this component is used

available_granularities: c_int

< Available granularities

hardware_intr_sig: c_int

< Signal used by hardware to deliver PMC events

component_type: c_int

< Type of component

pmu_names: [*mut c_char; 40]

< list of pmu names supported by this component

reserved: [c_int; 8]_bitfield_1: __BindgenBitfieldUnit<[u8; 4], u16>__bindgen_padding_0: u32

Implementations

impl _papi_component_option[src]

pub fn hardware_intr(&self) -> c_uint[src]

pub fn set_hardware_intr(&mut self, val: c_uint)[src]

pub fn precise_intr(&self) -> c_uint[src]

pub fn set_precise_intr(&mut self, val: c_uint)[src]

pub fn posix1b_timers(&self) -> c_uint[src]

pub fn set_posix1b_timers(&mut self, val: c_uint)[src]

pub fn kernel_profile(&self) -> c_uint[src]

pub fn set_kernel_profile(&mut self, val: c_uint)[src]

pub fn kernel_multiplex(&self) -> c_uint[src]

pub fn set_kernel_multiplex(&mut self, val: c_uint)[src]

pub fn fast_counter_read(&self) -> c_uint[src]

pub fn set_fast_counter_read(&mut self, val: c_uint)[src]

pub fn fast_real_timer(&self) -> c_uint[src]

pub fn set_fast_real_timer(&mut self, val: c_uint)[src]

pub fn fast_virtual_timer(&self) -> c_uint[src]

pub fn set_fast_virtual_timer(&mut self, val: c_uint)[src]

pub fn attach(&self) -> c_uint[src]

pub fn set_attach(&mut self, val: c_uint)[src]

pub fn attach_must_ptrace(&self) -> c_uint[src]

pub fn set_attach_must_ptrace(&mut self, val: c_uint)[src]

pub fn cntr_umasks(&self) -> c_uint[src]

pub fn set_cntr_umasks(&mut self, val: c_uint)[src]

pub fn cpu(&self) -> c_uint[src]

pub fn set_cpu(&mut self, val: c_uint)[src]

pub fn inherit(&self) -> c_uint[src]

pub fn set_inherit(&mut self, val: c_uint)[src]

pub fn reserved_bits(&self) -> c_uint[src]

pub fn set_reserved_bits(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    hardware_intr: c_uint,
    precise_intr: c_uint,
    posix1b_timers: c_uint,
    kernel_profile: c_uint,
    kernel_multiplex: c_uint,
    fast_counter_read: c_uint,
    fast_real_timer: c_uint,
    fast_virtual_timer: c_uint,
    attach: c_uint,
    attach_must_ptrace: c_uint,
    cntr_umasks: c_uint,
    cpu: c_uint,
    inherit: c_uint,
    reserved_bits: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u16>
[src]

Trait Implementations

impl Clone for _papi_component_option[src]

impl Copy for _papi_component_option[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.