Skip to content

Instantly share code, notes, and snippets.

@cyring
Last active June 21, 2019 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyring/34808eea247ed0bcaf3d01dd2ecea7cc to your computer and use it in GitHub Desktop.
Save cyring/34808eea247ed0bcaf3d01dd2ecea7cc to your computer and use it in GitHub Desktop.
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
Copy link
Author

cyring commented Jun 21, 2019

@cyring
Copy link
Author

cyring commented Jun 21, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment