PMC.SANDYBRIDGEUC(3)
π NAME π
Okay bestie, welcome to the pmc.sandybridgeuc(3) page from the Library Functions Manual β this one is all about uncore measurement events for Intel Sandy Bridge family CPUs. Periodt. β¨
π LIBRARY π
Performance Counters Library (libpmc, -lpmc) π«Ά
β¨ SYNOPSIS β¨
#include <pmc.h>
π¦ DESCRIPTION π¦
Intel Sandy Bridge CPUs contain PMCs conforming to version 3 of the Intel performance measurement architecture. These CPUs contain two classes of PMCs:
PMC_CLASS_UCFβ Fixed-function counters that count only one hardware event per counter. πPMC_CLASS_UCPβ Programmable counters that may be configured to count one of a defined set of hardware events. π
The number of PMCs available in each class and their widths need to be determined at run time by calling pmc_cpuinfo(3). So yeah, that's your runtime vibe check, iykyk. πΈ
Intel Sandy Bridge PMCs are documented in βVolume 3B: System Programming Guide, Part 2β, Intel(R) 64 and IA-32 Architectures Software Developers Manual, Order Number: 253669-039US, Intel Corporation, May 2011. π
π SANDYBRIDGE UNCORE FIXED FUNCTION PMCS π
These PMCs and their supported events are documented in pmc.ucf(3). Not all CPUs in this family implement fixed-function counters. Lowkey important, bestie. π«Ά
π SANDYBRIDGE UNCORE PROGRAMMABLE PMCS π
The programmable PMCs support the following capabilities:
PMC_CAP_CASCADEβ No πPMC_CAP_EDGEβ Yes βPMC_CAP_INTERRUPTβ No πPMC_CAP_INVERTβ Yes βPMC_CAP_READβ Yes βPMC_CAP_PRECISEβ No πPMC_CAP_SYSTEMβ No πPMC_CAP_TAGGINGβ No πPMC_CAP_THRESHOLDβ Yes βPMC_CAP_USERβ No πPMC_CAP_WRITEβ Yes β
πΈ Event Qualifiers πΈ
Event specifiers for these PMCs support the following common qualifiers:
cmask=valueβ Configure the PMC to increment only if the number of configured events measured in a cycle is greater than or equal to value. πedgeβ Configure the PMC to count the number of de-asserted to asserted transitions of the conditions expressed by the other qualifiers. If specified, the counter will increment only once whenever a condition becomes true, irrespective of the number of clocks during which the condition remains true. β‘invβ Invert the sense of comparison when the βcmaskβ qualifier is present, making the counter increment when the number of events per cycle is less than the value specified by the βcmaskβ qualifier. π
β Event Specifiers (Programmable PMCs) β
Sandy Bridge programmable PMCs support the following events:
CBO_XSNP_RESPONSE.RSPIHITIβ(Event 22H, Umask 01H)Snoop responses received from processor cores to requests initiated by this Cbox. Must combine with one of the umask values of20H,40H,80H. πCBO_XSNP_RESPONSE.RSPIHITFSEβ(Event 22H, Umask 02H)Must combine with one of the umask values of20H,40H,80H. πCBO_XSNP_RESPONSE.RSPSHITFSEβ(Event 22H, Umask 04H)Must combine with one of the umask values of20H,40H,80H. πCBO_XSNP_RESPONSE.RSPSFWDMβ(Event 22H, Umask 08H)πCBO_XSNP_RESPONSE.RSPIFWDMβ(Event 22H, Umask 01H)πCBO_XSNP_RESPONSE.AND_EXTERNALβ(Event 22H, Umask 20H)Filter on cross-core snoops resulted in external snoop request. Must combine with at least one of01H,02H,04H,08H,10H. πCBO_XSNP_RESPONSE.AND_XCOREβ(Event 22H, Umask 40H)Filter on cross-core snoops resulted in core request. Must combine with at least one of01H,02H,04H,08H,10H. πCBO_XSNP_RESPONSE.AND_XCOREβ(Event 22H, Umask 80H)Filter on cross-core snoops resulted in LLC evictions. Must combine with at least one of01H,02H,04H,08H,10H. πCBO_CACHE_LOOKUP.Mβ(Event 34H, Umask 01H)LLC lookup request that access cache and found line in M-state. Must combine with one of the umask values of10H,20H,40H,80H. π§CBO_CACHE_LOOKUP.Eβ(Event 34H, Umask 02H)LLC lookup request that access cache and found line in E-state. Must combine with one of the umask values of10H,20H,40H,80H. π§CBO_CACHE_LOOKUP.Sβ(Event 34H, Umask 04H)LLC lookup request that access cache and found line in S-state. Must combine with one of the umask values of10H,20H,40H,80H. π§CBO_CACHE_LOOKUP.Iβ(Event 34H, Umask 08H)LLC lookup request that access cache and found line in I-state. Must combine with one of the umask values of10H,20H,40H,80H. π§CBO_CACHE_LOOKUP.AND_READβ(Event 34H, Umask 10H)Filter on processor core initiated cacheable read requests. Must combine with at least one of01H,02H,04H,08H. π§CBO_CACHE_LOOKUP_AND_READ2β(Event 34H, Umask 20H)Filter on processor core initiated cacheable write requests. Must combine with at least one of01H,02H,04H,08H. π§CBO_CACHE_LOOKUP.AND_EXTSNPβ(Event 34H, Umask 40H)Filter on external snoop requests. Must combine with at least one of01H,02H,04H,08H. π§CBO_CACHE_LOOKUP.AND_ANYβ(Event 34H, Umask 80H)Filter on any IRQ or IPQ initiated requests including uncacheable, noncoherent requests. Must combine with at least one of01H,02H,04H,08H. π§IMPH_CBO_TRK_OCCUPANCY.ALLβ(Event 80H, Umask 01H)Counts cycles weighted by the number of core-outgoing valid entries. Valid entries are between allocation to the first of IDIO or DRSO messages. Accounts for coherent and incoherent traffic. Counter0only. π₯IMPH_CBO_TRK_REQUEST.ALLβ(Event 81H, Umask 01H)Counts the number of core-outgoing entries. Accounts for coherent and incoherent traffic. π₯IMPH_CBO_TRK_REQUEST.WRITESβ(Event 81H, Umask 20H)Counts the number of allocated write entries, include full, partial, and evictions. π₯IMPH_CBO_TRK_REQUEST.EVICTIONSβ(Event 81H, Umask 80H)Counts the number of evictions allocated. π₯IMPH_COH_TRK_OCCUPANCY.ALLβ(Event 83H, Umask 01H)Counts cycles weighted by the number of core-outgoing valid entries in the coherent tracker queue. Counter0only. π₯IMPH_COH_TRK_REQUEST.ALLβ(Event 84H, Umask 01H)Counts the number of core-outgoing entries in the coherent tracker queue. π₯
π SEE ALSO π
Go peek at pmc(3), pmc.amd(3), pmc.atom(3), pmc.core(3), pmc.corei7(3), pmc.corei7uc(3), pmc.iaf(3), pmc.sandybridge(3), pmc.sandybridgexeon(3), pmc.soft(3), pmc.tsc(3), pmc.ucf(3), pmc.westmere(3), pmc.westmereuc(3), pmc_cpuinfo(3), pmclog(3), hwpmc(4). π¦
π HISTORY π
The pmc library first appeared in FreeBSD 6.0. π±
π AUTHORS π
The Performance Counters Library (libpmc, -lpmc) library was written by Joseph Koshy <jkoshy@FreeBSD.org>. The support for the Sandy Bridge microarchitecture was added by Davide Italiano <davide@FreeBSD.org>. π
Mwah π β this cutie is from Debian, dated October 19, 2012, and it signs off as PMC.SANDYBRIDGEUC(3). Bye bestie π«Άβ¨
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2012 Davide Italiano <davide@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms