#[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_uintAuto Trait Implementations§
impl RefUnwindSafe for kpep_db
impl !Send for kpep_db
impl !Sync for kpep_db
impl Unpin for kpep_db
impl UnwindSafe for kpep_db
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more