Struct kperf_sys::structs::kpep_db

source ·
#[repr(C)]
pub struct kpep_db {
Show 20 fields pub name: *const c_char, pub cpu_id: *const c_char, pub marketing_name: *const c_char, pub plist_data: *mut c_void, pub event_map: *mut c_void, pub event_arr: *mut kpep_event, pub fixed_event_arr: *mut *mut kpep_event, pub alias_map: *mut c_void, pub reserved_1: size_t, pub reserved_2: size_t, pub reserved_3: size_t, pub event_count: size_t, pub alias_count: size_t, pub fixed_counter_count: size_t, pub config_counter_count: size_t, pub power_counter_count: size_t, pub archtecture: c_uint, pub fixed_counter_bits: c_uint, pub config_counter_bits: c_uint, pub power_counter_bits: c_uint,
}
Expand description

KPEP database (size: 144/80 bytes on 64/32 bit OS)

Fields§

§name: *const c_char§cpu_id: *const c_char

< Database name, such as “haswell”.

§marketing_name: *const c_char

< Plist name, such as “cpu_7_8_10b282dc”.

§plist_data: *mut c_void

< Marketing name, such as “Intel Haswell”.

§event_map: *mut c_void

< Plist data (CFDataRef), currently NULL.

§event_arr: *mut kpep_event

< All events (CFDict<CFSTR(event_name), kpep_event *>).

§fixed_event_arr: *mut *mut kpep_event

< Event struct buffer (sizeof(kpep_event) * events_count).

§alias_map: *mut c_void

< Fixed counter events (sizeof(kpep_event *) < * fixed_counter_count)

§reserved_1: size_t

< All aliases (CFDict<CFSTR(event_name), kpep_event *>).

§reserved_2: size_t§reserved_3: size_t§event_count: size_t§alias_count: size_t

< All events count.

§fixed_counter_count: size_t§config_counter_count: size_t§power_counter_count: size_t§archtecture: c_uint§fixed_counter_bits: c_uint

< see KPEP CPU archtecture constants above.

§config_counter_bits: c_uint§power_counter_bits: c_uint

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, 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>,

§

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>,

§

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.