PMC.HASWELLUC(3)
πΈ PMC.HASWELLUC(3) πΈ
okay so bestie, this is the manual page for pmc.haswelluc β uncore measurement events for Intel Haswell family CPUs, living in the Library Functions Manual. buckle up, it's giving hardware-nerd realness and honestly? iconic π
β¨ LIBRARY β¨
Performance Counters Library (libpmc, -lpmc) π«Ά
β¨ SYNOPSIS β¨
#include <pmc.h>
β¨ DESCRIPTION β¨
so like, Intel Haswell CPUs contain PMCs that conform to version 3 of the Intel performance measurement architecture. these CPUs ship with two whole classes of PMCs, and they are very different vibes:
PMC_CLASS_UCFβ fixed-function counters that count literally only one hardware event per counter. one job, one event, no notes. π―PMC_CLASS_UCPβ programmable counters that you can configure to count one of a defined set of hardware events. main character energy, choose-your-own-adventure style. β¨
the number of PMCs available in each class and their widths? you gotta figure that out at run time by calling pmc_cpuinfo(3). no cap.
Intel Haswell PMCs are documented in βCombined Volumes: 1, 2A, 2B, 2C, 3A, 3B and 3Cβ, Intel(R) 64 and IA-32 Architectures Software Developers Manual, Order Number: 325462-045US, Intel Corporation, January 2013. π
π HASWELL UNCORE FIXED FUNCTION PMCS π
these PMCs and the events they support are documented over in pmc.ucf(3). heads up though: not all CPUs in this family implement fixed-function counters. so like, don't assume, okay? check first π
π HASWELL UNCORE PROGRAMMABLE PMCS π
the programmable PMCs support the following capabilities β vibe check time:
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 β these are the little add-ons you can sprinkle on:
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. so it's a lil threshold gate, bestie πͺedgeβ configure the PMC to count the number of de-asserted to asserted transitions of the conditions expressed by the other qualifiers. if you specify it, the counter will increment only once whenever a condition becomes true, irrespective of the number of clocks during which the condition remains true. one and done, periodt π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. flip it and reverse it π
π¦ Event Specifiers (Programmable PMCs) π¦
Haswell programmable PMCs support the following events β okay this is the long part, hydrate first π:
UNC_CBO_XSNP_RESPONSE.MISSβ (Event 22H, Umask 01H) A snoop misses in some processor core.UNC_CBO_XSNP_RESPONSE.INVALβ (Event 22H, Umask 02H) A snoop invalidates a non-modified line in some processor core.UNC_CBO_XSNP_RESPONSE.HITβ (Event 22H, Umask 04H) A snoop hits a non-modified line in some processor core.UNC_CBO_XSNP_RESPONSE.HITMβ (Event 22H, Umask 08H) A snoop hits a modified line in some processor core.UNC_CBO_XSNP_RESPONSE.INVAL_Mβ (Event 22H, Umask 10H) A snoop invalidates a modified line in some processor core.UNC_CBO_XSNP_RESPONSE.EXTERNAL_FILTERβ (Event 22H, Umask 20H) Filter on cross-core snoops initiated by this Cbox due to external snoop request.UNC_CBO_XSNP_RESPONSE.XCORE_FILTERβ (Event 22H, Umask 40H) Filter on cross-core snoops initiated by this Cbox due to processor core memory request.UNC_CBO_XSNP_RESPONSE.EVICTION_FILTERβ (Event 22H, Umask 80H) Filter on cross-core snoops initiated by this Cbox due to LLC eviction.UNC_CBO_CACHE_LOOKUP.Mβ (Event 34H, Umask 01H) LLC lookup request that access cache and found line in M-state.UNC_CBO_CACHE_LOOKUP.ESβ (Event 34H, Umask 06H) LLC lookup request that access cache and found line in E or S state.UNC_CBO_CACHE_LOOKUP.Iβ (Event 34H, Umask 08H) LLC lookup request that access cache and found line in I-state.UNC_CBO_CACHE_LOOKUP.READ_FILTERβ (Event 34H, Umask 10H) Filter on processor core initiated cacheable read requests. Must combine with at least one of01H,02H,04H,08H. β οΈUNC_CBO_CACHE_LOOKUP.WRITE_FILTERβ (Event 34H, Umask 20H) Filter on processor core initiated cacheable write requests. Must combine with at least one of01H,02H,04H,08H. β οΈUNC_CBO_CACHE_LOOKUP.EXTSNP_FILTERβ (Event 34H, Umask 40H) Filter on external snoop requests. Must combine with at least one of01H,02H,04H,08H. β οΈUNC_CBO_CACHE_LOOKUP.ANY_REQUEST_FILTERβ (Event 34H, Umask 80H) Filter on any IRQ or IPQ initiated requests including uncacheable, non-coherent requests. Must combine with at least one of01H,02H,04H,08H. β οΈUNC_ARB_TRK_OCCUPANCY.ALLβ (Event 80H, Umask 01H) Counts cycles weighted by the number of requests waiting for data returning from the memory controller. Accounts for coherent and non-coherent requests initiated by IA cores, processor graphic units, or LLC.UNC_ARB_TRK_REQUEST.ALLβ (Event 81H, Umask 01H) Counts the number of coherent and in-coherent requests initiated by IA cores, processor graphic units, or LLC.UNC_ARB_TRK_REQUEST.WRITESβ (Event 81H, Umask 20H) Counts the number of allocated write entries, include full, partial, and LLC evictions.UNC_ARB_TRK_REQUEST.EVICTIONSβ (Event 81H, Umask 80H) Counts the number of LLC evictions allocated.UNC_ARB_COH, Umask TRK_OCCUPANCY.ALLβ (Event 83H, Umask 01H) Cycles weighted by number of requests pending in Coherency Tracker.UNC_ARB_COH, Umask TRK_REQUEST.ALLβ (Event 84H, Umask 01H) Number of requests allocated in Coherency Tracker.
ngl those last two names are written exactly like that in the source. don't come for me, I just work here π
π SEE ALSO π
the whole friend group: pmc(3), pmc.amd(3), pmc.atom(3), pmc.core(3), pmc.corei7(3), pmc.corei7uc(3), pmc.haswell(3), pmc.iaf(3), pmc.sandybridge(3), pmc.sandybridgeuc(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. a classic, honestly π«Ά
π AUTHORS π
the Performance Counters Library (libpmc, -lpmc) library was written by Joseph Koshy <jkoshy@FreeBSD.org>. the support for the Haswell microarchitecture was added by Hiren Panchasara <hiren.panchasara@gmail.com>. slay, legends π§
and that's the whole thing bestie β this page is from the Debian build, dated March 22, 2013 (yes, ancient, but she still ate) πβ¨π
π¦ where this page comes from
- freebsd 15.1: base 15.1
- Copyright (c) 2013 Hiren Panchasara <hiren.panchasara@gmail.com>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms