Skip to content

Instantly share code, notes, and snippets.

@cyring
cyring / gist:7509077959ccc24930526b949380d796
Last active August 22, 2023 04:31
Intel Core i7-6700 [Skylake/S]
CoreFreq version 1.50.2
@cyring
cyring / gist:4e9c13084f78d6515d4063171ecd230a
Created May 9, 2019 08:59
Intel i7-2710QE [SandyBridge]
CoreFreq version 1.50.2
@cyring
cyring / gist:9b7bcc5984f96c9640d2a1eb270a5af7
Last active May 15, 2019 08:00
SNB and SKL Idle States API code
---
corefreq-cli.c
---
REASON_CODE SysInfoPerfMon(Window *win, CUINT width, CELL_FUNC OutFunc)
{
REASON_INIT(reason);
char *item;
if ((item = calloc(1 + width, 1)) == NULL)
{
---
corefreq-api.h
---
struct {
signed int AutoClock,
Experimental,
hotplug,
pci,
nmi;
@cyring
cyring / gist:d90bf2ae2fe31cb3b7921891103ad5ac
Last active October 31, 2022 09:00
Xeon W3690 [Gulftown]
CoreFreq updated to version 1.93.0
Give more room to the Kernel window do display the idle states parameters
@cyring
cyring / gist:34808eea247ed0bcaf3d01dd2ecea7cc
Last active June 21, 2019 11:39
SandyBridge/EP and IvyBridge/EP
#define PKG_Counters_SandyBridge_EP(Core, T) \
({ \
RDTSCP_COUNTERx5(Proc->Counter[T].PTSC, \
MSR_PKG_C2_RESIDENCY, Proc->Counter[T].PC02, \
MSR_PKG_C3_RESIDENCY, Proc->Counter[T].PC03, \
MSR_PKG_C6_RESIDENCY, Proc->Counter[T].PC06, \
MSR_PKG_C7_RESIDENCY, Proc->Counter[T].PC07, \
MSR_SNB_EP_UNCORE_PERF_FIXED_CTR0, Proc->Counter[T].Uncore.FC0);\
})
@cyring
cyring / gist:63aa0c84aec874a0e2f1c4782d338c4a
Last active July 3, 2019 05:10
Intel Core i5-6600K [Skylake/S]
CoreFreq version 1.57
CoreFreq on MacBook Air
CoreFreq version 1.57.6