Skip to content
View 0x2000580D's full-sized avatar

Block or report 0x2000580D

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
0x2000580D/README.md

hi

Pinned Loading

  1. Using XCPM to sample P-States on Int... Using XCPM to sample P-States on Intel Macs
    1
    This is a demonstration on a simple way you can get CPU P-State distribution, turbo states, and average package frequency on Intel Macs by accessing the XCPM (XNU CPU Power Manager) through `ioctl`.
    2
    
                  
    3
    I figured it out while reverse engineering the x86 portion of [powermetrics](https://ss64.com/mac/powermetrics.html) and managed to find the function pointers [here](https://github.com/acidanthera/CPUFriend/blob/30c773385312b4b46255d9432aacf02c91fece4e/Tools/FrequencyVectors.bt#L123). Structures recreated from scratch.
    4
    
                  
    5
    Sadly requires root (as does everything of this nature on Intel). This only works on Haswell or newer though (no XCPM before then).