#[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_charDatabase name, such as “haswell”.
cpu_id: *const c_charPlist name, such as “cpu_7_8_10b282dc”.
marketing_name: *const c_charMarketing name, such as “Intel Haswell”.
plist_data: *mut c_voidPlist data (CFDataRef), currently NULL.
event_map: *mut c_voidAll events (CFDict<CFSTR(event_name), kpep_event *>).
event_arr: *mut kpep_eventEvent struct buffer (sizeof(kpep_event) * events_count).
fixed_event_arr: *mut *mut kpep_eventFixed counter events (sizeof(kpep_event *)
alias_map: *mut c_voidAll aliases (CFDict<CFSTR(event_name), kpep_event *>).
reserved_1: size_t§reserved_2: size_t§reserved_3: size_t§event_count: size_tAll events count.
alias_count: size_t§fixed_counter_count: size_t§config_counter_count: size_t§power_counter_count: size_t§archtecture: c_uintsee KPEP CPU archtecture constants above.
fixed_counter_bits: c_uint§config_counter_bits: c_uint§power_counter_bits: c_uintAuto Trait Implementations§
impl Freeze for kpep_db
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