xref: /openbsd/usr.bin/pctr/pctrvar.h (revision a9865874)
1*a9865874Sguenther /*	$OpenBSD: pctrvar.h,v 1.4 2012/07/11 08:07:20 guenther Exp $	*/
29eecd0bfSderaadt 
39eecd0bfSderaadt /*
49eecd0bfSderaadt  * Copyright (c) 2007 Mike Belopuhov, Aleksey Lomovtsev
59eecd0bfSderaadt  *
69eecd0bfSderaadt  * Permission to use, copy, modify, and distribute this software for any
79eecd0bfSderaadt  * purpose with or without fee is hereby granted, provided that the above
89eecd0bfSderaadt  * copyright notice and this permission notice appear in all copies.
99eecd0bfSderaadt  *
109eecd0bfSderaadt  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
119eecd0bfSderaadt  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
129eecd0bfSderaadt  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
139eecd0bfSderaadt  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
149eecd0bfSderaadt  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
159eecd0bfSderaadt  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
169eecd0bfSderaadt  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
179eecd0bfSderaadt  */
189eecd0bfSderaadt 
199eecd0bfSderaadt /*
209eecd0bfSderaadt  * Pentium performance counter control program for OpenBSD.
219eecd0bfSderaadt  * Copyright 1996 David Mazieres <dm@lcs.mit.edu>.
229eecd0bfSderaadt  *
239eecd0bfSderaadt  * Modification and redistribution in source and binary forms is
249eecd0bfSderaadt  * permitted provided that due credit is given to the author and the
259eecd0bfSderaadt  * OpenBSD project by leaving this copyright notice intact.
269eecd0bfSderaadt  */
279eecd0bfSderaadt 
289eecd0bfSderaadt #ifndef _PCTRVAR_H_
299eecd0bfSderaadt #define _PCTRVAR_H_
309eecd0bfSderaadt 
319eecd0bfSderaadt #define ARCH_UNDEF		0
329eecd0bfSderaadt #define ARCH_I386		1
339eecd0bfSderaadt #define ARCH_AMD64		2
349eecd0bfSderaadt 
359eecd0bfSderaadt #define CPU_UNDEF		0
369eecd0bfSderaadt #define CPU_P5			1
379eecd0bfSderaadt #define CPU_P6			2
389eecd0bfSderaadt #define CPU_CORE		3
399eecd0bfSderaadt #define CPU_AMD			4
409eecd0bfSderaadt 
419eecd0bfSderaadt #define PCTR_AMD_NUM		4
429eecd0bfSderaadt #define PCTR_INTEL_NUM		2	/* Intel supports only 2 counters */
439eecd0bfSderaadt 
449eecd0bfSderaadt #define PCTR_MAX_FUNCT		0xff
459eecd0bfSderaadt #define PCTR_MAX_UMASK		0xff
469eecd0bfSderaadt 
479eecd0bfSderaadt #define CFL_MESI		0x01	/* Unit mask accepts MESI encoding */
489eecd0bfSderaadt #define CFL_SA			0x02	/* Unit mask accepts Self/Any bit */
499eecd0bfSderaadt #define CFL_C0			0x04	/* Counter 0 only */
509eecd0bfSderaadt #define CFL_C1			0x08	/* Counter 1 only */
519eecd0bfSderaadt #define CFL_ED			0x10	/* Edge detect is needed */
52285647afSmikeb #define CFL_UM			0x20	/* Unit mask is mandatory */
539eecd0bfSderaadt 
549eecd0bfSderaadt /* Pentium defines */
557f8cebadSderaadt #ifndef P5CTR_K
567f8cebadSderaadt #define P5CTR_K			0x040
577f8cebadSderaadt #endif
587f8cebadSderaadt #ifndef P5CTR_U
597f8cebadSderaadt #define P5CTR_U			0x080
607f8cebadSderaadt #endif
617f8cebadSderaadt #ifndef P5CTR_C
627f8cebadSderaadt #define P5CTR_C			0x100
637f8cebadSderaadt #endif
649eecd0bfSderaadt 
659eecd0bfSderaadt struct ctrfn {
669eecd0bfSderaadt 	u_int32_t	 fn;
679eecd0bfSderaadt 	int		 flags;
689eecd0bfSderaadt 	char		*name;
699eecd0bfSderaadt 	char		*desc;
709eecd0bfSderaadt };
719eecd0bfSderaadt 
729eecd0bfSderaadt struct ctrfn p5fn[] = {
739eecd0bfSderaadt 	{ 0x00, 0, "Data read", NULL },
749eecd0bfSderaadt 	{ 0x01, 0, "Data write", NULL },
759eecd0bfSderaadt 	{ 0x02, 0, "Data TLB miss", NULL },
769eecd0bfSderaadt 	{ 0x03, 0, "Data read miss", NULL },
779eecd0bfSderaadt 	{ 0x04, 0, "Data write miss", NULL },
789eecd0bfSderaadt 	{ 0x05, 0, "Write (hit) to M or E state lines", NULL },
799eecd0bfSderaadt 	{ 0x06, 0, "Data cache lines written back", NULL },
809eecd0bfSderaadt 	{ 0x07, 0, "Data cache snoops", NULL },
819eecd0bfSderaadt 	{ 0x08, 0, "Data cache snoop hits", NULL },
829eecd0bfSderaadt 	{ 0x09, 0, "Memory accesses in both pipes", NULL },
839eecd0bfSderaadt 	{ 0x0a, 0, "Bank conflicts", NULL },
849eecd0bfSderaadt 	{ 0x0b, 0, "Misaligned data memory references", NULL },
859eecd0bfSderaadt 	{ 0x0c, 0, "Code read", NULL },
869eecd0bfSderaadt 	{ 0x0d, 0, "Code TLB miss", NULL },
879eecd0bfSderaadt 	{ 0x0e, 0, "Code cache miss", NULL },
889eecd0bfSderaadt 	{ 0x0f, 0, "Any segment register load", NULL },
899eecd0bfSderaadt 	{ 0x12, 0, "Branches", NULL },
909eecd0bfSderaadt 	{ 0x13, 0, "BTB hits", NULL },
919eecd0bfSderaadt 	{ 0x14, 0, "Taken branch or BTB hit", NULL },
929eecd0bfSderaadt 	{ 0x15, 0, "Pipeline flushes", NULL },
939eecd0bfSderaadt 	{ 0x16, 0, "Instructions executed", NULL },
949eecd0bfSderaadt 	{ 0x17, 0, "Instructions executed in the V-pipe", NULL },
959eecd0bfSderaadt 	{ 0x18, 0, "Bus utilization (clocks)", NULL },
969eecd0bfSderaadt 	{ 0x19, 0, "Pipeline stalled by write backup", NULL },
979eecd0bfSderaadt 	{ 0x1a, 0, "Pipeline stalled by data memory read", NULL },
989eecd0bfSderaadt 	{ 0x1b, 0, "Pipeline stalled by write to E or M line", NULL },
999eecd0bfSderaadt 	{ 0x1c, 0, "Locked bus cycle", NULL },
1009eecd0bfSderaadt 	{ 0x1d, 0, "I/O read or write cycle", NULL },
1019eecd0bfSderaadt 	{ 0x1e, 0, "Noncacheable memory references", NULL },
1029eecd0bfSderaadt 	{ 0x1f, 0, "AGI (Address Generation Interlock)", NULL },
1039eecd0bfSderaadt 	{ 0x22, 0, "Floating-point operations", NULL },
1049eecd0bfSderaadt 	{ 0x23, 0, "Breakpoint 0 match", NULL },
1059eecd0bfSderaadt 	{ 0x24, 0, "Breakpoint 1 match", NULL },
1069eecd0bfSderaadt 	{ 0x25, 0, "Breakpoint 2 match", NULL },
1079eecd0bfSderaadt 	{ 0x26, 0, "Breakpoint 3 match", NULL },
1089eecd0bfSderaadt 	{ 0x27, 0, "Hardware interrupts", NULL },
1099eecd0bfSderaadt 	{ 0x28, 0, "Data read or data write", NULL },
1109eecd0bfSderaadt 	{ 0x29, 0, "Data read miss or data write miss", NULL },
1119eecd0bfSderaadt 	{ 0x0,  0, NULL, NULL },
1129eecd0bfSderaadt };
1139eecd0bfSderaadt 
1149eecd0bfSderaadt struct ctrfn p6fn[] = {
1159eecd0bfSderaadt 	{ 0x03, 0, "LD_BLOCKS",
1169eecd0bfSderaadt 	 "Number of store buffer blocks." },
1179eecd0bfSderaadt 	{ 0x04, 0, "SB_DRAINS",
1189eecd0bfSderaadt 	 "Number of store buffer drain cycles." },
1199eecd0bfSderaadt 	{ 0x05, 0, "MISALIGN_MEM_REF",
1209eecd0bfSderaadt 	 "Number of misaligned data memory references." },
1219eecd0bfSderaadt 	{ 0x06, 0, "SEGMENT_REG_LOADS",
1229eecd0bfSderaadt 	 "Number of segment register loads." },
1239eecd0bfSderaadt 	{ 0x10, CFL_C0, "FP_COMP_OPS_EXE",
1249eecd0bfSderaadt 	 "Number of computational floating-point operations executed." },
1259eecd0bfSderaadt 	{ 0x11, CFL_C1, "FP_ASSIST",
1269eecd0bfSderaadt 	 "Number of floating-point exception cases handled by microcode." },
1279eecd0bfSderaadt 	{ 0x12, CFL_C1, "MUL",
1289eecd0bfSderaadt 	 "Number of multiplies." },
1299eecd0bfSderaadt 	{ 0x13, CFL_C1, "DIV",
1309eecd0bfSderaadt 	 "Number of divides." },
1319eecd0bfSderaadt 	{ 0x14, CFL_C0, "CYCLES_DIV_BUSY",
1329eecd0bfSderaadt 	 "Number of cycles during which the divider is busy." },
1339eecd0bfSderaadt 	{ 0x21, 0, "L2_ADS",
1349eecd0bfSderaadt 	 "Number of L2 address strobes." },
1359eecd0bfSderaadt 	{ 0x22, 0, "L2_DBUS_BUSY",
136*a9865874Sguenther 	 "Number of cycles during which the data bus was busy." },
1379eecd0bfSderaadt 	{ 0x23, 0, "L2_DBUS_BUSY_RD",
1389eecd0bfSderaadt 	 "Number of cycles during which the data bus was busy transferring "
1399eecd0bfSderaadt 	 "data from L2 to the processor." },
1409eecd0bfSderaadt 	{ 0x24, 0, "L2_LINES_IN",
1419eecd0bfSderaadt 	 "Number of lines allocated in the L2." },
1429eecd0bfSderaadt 	{ 0x25, 0, "L2_M_LINES_INM",
1439eecd0bfSderaadt 	 "Number of modified lines allocated in the L2." },
1449eecd0bfSderaadt 	{ 0x26, 0, "L2_LINES_OUT",
1459eecd0bfSderaadt 	 "Number of lines removed from the L2 for any reason." },
1469eecd0bfSderaadt 	{ 0x27, 0, "L2_M_LINES_OUTM",
1479eecd0bfSderaadt 	 "Number of modified lines removed from the L2 for any reason." },
1489eecd0bfSderaadt 	{ 0x28, CFL_MESI, "L2_IFETCH",
1499eecd0bfSderaadt 	 "Number of L2 instruction fetches." },
1509eecd0bfSderaadt 	{ 0x29, CFL_MESI, "L2_LD",
1519eecd0bfSderaadt 	 "Number of L2 data loads." },
1529eecd0bfSderaadt 	{ 0x2a, CFL_MESI, "L2_ST",
1539eecd0bfSderaadt 	 "Number of L2 data stores." },
1549eecd0bfSderaadt 	{ 0x2e, CFL_MESI, "L2_RQSTS",
1559eecd0bfSderaadt 	 "Number of L2 requests." },
1569eecd0bfSderaadt 	{ 0x43, 0, "DATA_MEM_REF",
1579eecd0bfSderaadt 	 "Number of all memory references, both cacheable and non-cacheable." },
1589eecd0bfSderaadt 	{ 0x44, 0, "DATA_MEM_CACHE_REF",
1599eecd0bfSderaadt 	 "Number of L1 data cacheable read and write operations." },
1609eecd0bfSderaadt 	{ 0x45, 0, "DCU_LINES_IN",
1619eecd0bfSderaadt 	 "Total lines allocated in the DCU." },
1629eecd0bfSderaadt 	{ 0x46, 0, "DCU_M_LINES_IN",
1639eecd0bfSderaadt 	 "Number of M state lines allocated in the DCU." },
1649eecd0bfSderaadt 	{ 0x47, 0, "DCU_M_LINES_OUT",
1659eecd0bfSderaadt 	 "Number of M state lines evicted from the DCU.  "
1669eecd0bfSderaadt 	 "This includes evictions via snoop HITM, intervention or replacement" },
1679eecd0bfSderaadt 	{ 0x48, 0, "DCU_MISS_OUTSTANDING",
1689eecd0bfSderaadt 	 "Weighted number of cycles while a DCU miss is outstanding." },
1699eecd0bfSderaadt 	{ 0x60, 0, "BUS_REQ_OUTSTANDING",
1709eecd0bfSderaadt 	 "Number of bus requests outstanding." },
1719eecd0bfSderaadt 	{ 0x61, 0, "BUS_BNR_DRV",
1729eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
1739eecd0bfSderaadt 	 "driving the BNR pin." },
1749eecd0bfSderaadt 	{ 0x62, CFL_SA, "BUS_DRDY_CLOCKS",
1759eecd0bfSderaadt 	 "Number of clocks during which DRDY is asserted." },
1769eecd0bfSderaadt 	{ 0x63, CFL_SA, "BUS_LOCK_CLOCKS",
1779eecd0bfSderaadt 	 "Number of clocks during which LOCK is asserted." },
1789eecd0bfSderaadt 	{ 0x64, 0, "BUS_DATA_RCV",
1799eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
1809eecd0bfSderaadt 	 "receiving data." },
1819eecd0bfSderaadt 	{ 0x65, CFL_SA, "BUS_TRAN_BRD",
1829eecd0bfSderaadt 	 "Number of burst read transactions." },
1839eecd0bfSderaadt 	{ 0x66, CFL_SA, "BUS_TRAN_RFO",
1849eecd0bfSderaadt 	 "Number of read for ownership transactions." },
1859eecd0bfSderaadt 	{ 0x67, CFL_SA, "BUS_TRANS_WB",
1869eecd0bfSderaadt 	 "Number of write back transactions." },
1879eecd0bfSderaadt 	{ 0x68, CFL_SA, "BUS_TRAN_IFETCH",
1889eecd0bfSderaadt 	 "Number of instruction fetch transactions." },
1899eecd0bfSderaadt 	{ 0x69, CFL_SA, "BUS_TRAN_INVAL",
1909eecd0bfSderaadt 	 "Number of invalidate transactions." },
1919eecd0bfSderaadt 	{ 0x6a, CFL_SA, "BUS_TRAN_PWR",
1929eecd0bfSderaadt 	 "Number of partial write transactions." },
1939eecd0bfSderaadt 	{ 0x6b, CFL_SA, "BUS_TRANS_P",
1949eecd0bfSderaadt 	 "Number of partial transactions." },
1959eecd0bfSderaadt 	{ 0x6c, CFL_SA, "BUS_TRANS_IO",
1969eecd0bfSderaadt 	 "Number of I/O transactions." },
1979eecd0bfSderaadt 	{ 0x6d, CFL_SA, "BUS_TRAN_DEF",
1989eecd0bfSderaadt 	 "Number of deferred transactions." },
1999eecd0bfSderaadt 	{ 0x6e, CFL_SA, "BUS_TRAN_BURST",
2009eecd0bfSderaadt 	 "Number of burst transactions." },
2019eecd0bfSderaadt 	{ 0x6f, CFL_SA, "BUS_TRAN_MEM",
2029eecd0bfSderaadt 	 "Number of memory transactions." },
2039eecd0bfSderaadt 	{ 0x70, CFL_SA, "BUS_TRAN_ANY",
2049eecd0bfSderaadt 	 "Number of all transactions." },
2059eecd0bfSderaadt 	{ 0x79, 0, "CPU_CLK_UNHALTED",
2069eecd0bfSderaadt 	 "Number of cycles during which the processor is not halted." },
2079eecd0bfSderaadt 	{ 0x7a, 0, "BUS_HIT_DRV",
2089eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
2099eecd0bfSderaadt 	 "driving the HIT pin." },
2109eecd0bfSderaadt 	{ 0x7b, 0, "BUS_HITM_DRV",
2119eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
2129eecd0bfSderaadt 	 "driving the HITM pin." },
2139eecd0bfSderaadt 	{ 0x7e, 0, "BUS_SNOOP_STALL",
2149eecd0bfSderaadt 	 "Number of clock cycles during which the bus is snoop stalled." },
2159eecd0bfSderaadt 	{ 0x80, 0, "IFU_IFETCH",
2169eecd0bfSderaadt 	 "Number of instruction fetches, both cacheable and non-cacheable." },
2179eecd0bfSderaadt 	{ 0x81, 0, "IFU_IFETCH_MISS",
2189eecd0bfSderaadt 	 "Number of instruction fetch misses." },
2199eecd0bfSderaadt 	{ 0x85, 0, "ITLB_MISS",
2209eecd0bfSderaadt 	 "Number of ITLB misses." },
2219eecd0bfSderaadt 	{ 0x86, 0, "IFU_MEM_STALL",
2229eecd0bfSderaadt 	 "Number of cycles that the instruction fetch pipe stage is stalled, "
223*a9865874Sguenther 	 "including cache misses, ITLB misses, ITLB faults, "
2249eecd0bfSderaadt 	 "and victim cache evictions" },
2259eecd0bfSderaadt 	{ 0x87, 0, "ILD_STALL",
2269eecd0bfSderaadt 	 "Number of cycles that the instruction length decoder is stalled" },
2279eecd0bfSderaadt 	{ 0xa2, 0, "RESOURCE_STALLS",
2289eecd0bfSderaadt 	 "Number of cycles during which there are resource-related stalls." },
2299eecd0bfSderaadt 	{ 0xc0, 0, "INST_RETIRED",
2309eecd0bfSderaadt 	 "Number of instructions retired." },
2319eecd0bfSderaadt 	{ 0xc1, CFL_C0, "FLOPS",
2329eecd0bfSderaadt 	 "Number of computational floating-point operations retired." },
2339eecd0bfSderaadt 	{ 0xc2, 0, "UOPS_RETIRED",
234*a9865874Sguenther 	 "Number of micro-ops retired." },
2359eecd0bfSderaadt 	{ 0xc4, 0, "BR_INST_RETIRED",
2369eecd0bfSderaadt 	 "Number of branch instructions retired." },
2379eecd0bfSderaadt 	{ 0xc5, 0, "BR_MISS_PRED_RETIRED",
2389eecd0bfSderaadt 	 "Number of mispredicted branches retired." },
2399eecd0bfSderaadt 	{ 0xc6, 0, "CYCLES_INT_MASKED",
2409eecd0bfSderaadt 	 "Number of processor cycles for which interrupts are disabled." },
2419eecd0bfSderaadt 	{ 0xc7, 0, "CYCLES_INT_PENDING_AND_MASKED",
2429eecd0bfSderaadt 	 "Number of processor cycles for which interrupts are disabled "
2439eecd0bfSderaadt 	 "and interrupts are pending." },
2449eecd0bfSderaadt 	{ 0xc8, 0, "HW_INT_RX",
2459eecd0bfSderaadt 	 "Number of hardware interrupts received." },
2469eecd0bfSderaadt 	{ 0xc9, 0, "BR_TAKEN_RETIRED",
2479eecd0bfSderaadt 	 "Number of taken branches retired." },
2489eecd0bfSderaadt 	{ 0xca, 0, "BR_MISS_PRED_TAKEN_RET",
249*a9865874Sguenther 	 "Number of taken mispredicted branches retired." },
2509eecd0bfSderaadt 	{ 0xd0, 0, "INST_DECODER",
2519eecd0bfSderaadt 	 "Number of instructions decoded." },
2529eecd0bfSderaadt 	{ 0xd2, 0, "PARTIAL_RAT_STALLS",
2539eecd0bfSderaadt 	 "Number of cycles or events for partial stalls." },
2549eecd0bfSderaadt 	{ 0xe0, 0, "BR_INST_DECODED",
2559eecd0bfSderaadt 	 "Number of branch instructions decoded." },
2569eecd0bfSderaadt 	{ 0xe2, 0, "BTB_MISSES",
2579eecd0bfSderaadt 	 "Number of branches that miss the BTB." },
2589eecd0bfSderaadt 	{ 0xe4, 0, "BR_BOGUS",
2599eecd0bfSderaadt 	 "Number of bogus branches." },
2609eecd0bfSderaadt 	{ 0xe6, 0, "BACLEARS",
2619eecd0bfSderaadt 	 "Number of times BACLEAR is asserted." },
2629eecd0bfSderaadt 	{ 0x0, 0, NULL, NULL}
2639eecd0bfSderaadt };
2649eecd0bfSderaadt 
2659eecd0bfSderaadt struct ctrfn corefn[] = {
2669eecd0bfSderaadt 	{ 0x03, 0, "LD_BLOCKS",
2679eecd0bfSderaadt 	 "Number of store buffer blocks." },
268285647afSmikeb 	{ 0x04, 0, "SD_DRAIN",
2699eecd0bfSderaadt 	 "Number of store buffer drain cycles." },
270285647afSmikeb 	{ 0x05, 0, "MISALIGN_MEM_REF",
271285647afSmikeb 	 "Number of misaligned data memory references." },
272285647afSmikeb 	{ 0x06, 0, "SEG_REG_LOADS",
2739eecd0bfSderaadt 	 "Number of segment register loads." },
274285647afSmikeb 	{ 0x07, 0, "SSE_PREF_RET",
275285647afSmikeb 	 "SSE software prefetch instructions retired." },
276285647afSmikeb 	{ 0x08, CFL_UM, "DTLB_MISSES",
2779eecd0bfSderaadt 	 "Memory accesses missed the DTLB" },
278285647afSmikeb 	{ 0x09, CFL_UM, "MEMORY_DISAMBIGUATION",
2799eecd0bfSderaadt 	 "Memory disambiguation reset cycles" },
280285647afSmikeb 	{ 0x0c, CFL_UM, "PAGE_WALKS",
2819eecd0bfSderaadt 	 "Number of page-walks executed" },
2829eecd0bfSderaadt 	{ 0x10, 0, "FP_COMP_OPS_EXE",
2839eecd0bfSderaadt 	 "Floating point computational micro-ops executed" },
2849eecd0bfSderaadt 	{ 0x11, 0, "FP_ASSIST",
2859eecd0bfSderaadt 	 "Number of floating-point exception cases handled by microcode." },
2869eecd0bfSderaadt 	{ 0x12, 0, "MUL",
2879eecd0bfSderaadt 	 "Number of multiplies." },
2889eecd0bfSderaadt 	{ 0x13, 0, "DIV",
2899eecd0bfSderaadt 	 "Number of divides." },
2909eecd0bfSderaadt 	{ 0x14, 0, "CYCLES_DIV_BUSY",
2919eecd0bfSderaadt 	 "Number of cycles during which the divider is busy." },
2929eecd0bfSderaadt 	{ 0x18, 0, "IDLE_DURING_DIV",
2939eecd0bfSderaadt 	 "Cycles the divider is busy and all other execution units are idle." },
294285647afSmikeb 	{ 0x19, CFL_UM, "DELAYED_BYPASS",
2959eecd0bfSderaadt 	 "Delayed bypass to FP operation." },
296285647afSmikeb 	{ 0x21, CFL_UM, "L2_ADS",
2979eecd0bfSderaadt 	 "Number of L2 address strobes." },
298285647afSmikeb 	{ 0x22, CFL_UM, "DBUS_BUSY",
299285647afSmikeb 	 "Number of cycles during which the data bus was busy." },
300285647afSmikeb 	{ 0x23, CFL_UM, "DBUS_BUSY_RD",
3019eecd0bfSderaadt 	 "Number of cycles during which the data bus was busy transferring "
3029eecd0bfSderaadt 	 "data from L2 to the core."},
303285647afSmikeb 	{ 0x24, CFL_UM, "L2_LINES_IN",
3049eecd0bfSderaadt 	 "Number of lines allocated in the L2 (L2 cache misses.)" },
305285647afSmikeb 	{ 0x25, CFL_UM, "L2_M_LINES_IN",
3069eecd0bfSderaadt 	 "Number of modified lines allocated in the L2." },
307285647afSmikeb 	{ 0x26, CFL_UM, "L2_LINES_OUT",
3089eecd0bfSderaadt 	 "Number of lines removed from the L2 for any reason." },
309285647afSmikeb 	{ 0x27, CFL_UM, "L2_M_LINES_OUT",
3109eecd0bfSderaadt 	 "Number of modified lines removed from the L2 for any reason." },
3119eecd0bfSderaadt 	{ 0x28, CFL_MESI, "L2_IFETCH",
3129eecd0bfSderaadt 	 "Number of L2 instruction fetches." },
3139eecd0bfSderaadt 	{ 0x29, CFL_MESI, "L2_LD",
3149eecd0bfSderaadt 	 "Number of L2 data loads." },
3159eecd0bfSderaadt 	{ 0x2a, CFL_MESI, "L2_ST",
3169eecd0bfSderaadt 	 "Number of L2 data stores." },
3179eecd0bfSderaadt 	{ 0x2e, CFL_MESI, "L2_RQSTS",
3189eecd0bfSderaadt 	 "Number of L2 requests." },
3199eecd0bfSderaadt 	{ 0x30, CFL_MESI, "L2_REJECT_CYCLES",
3209eecd0bfSderaadt 	 "Number of cycles L2 is busy and rejecting new requests." },
3219eecd0bfSderaadt 	{ 0x32, CFL_MESI, "L2_NO_REQUEST_CYCLES",
3229eecd0bfSderaadt 	 "Number of cycles there is no request to access L2." },
3239eecd0bfSderaadt 	{ 0x3a, 0, "EST_TRANS_ALL",
3249eecd0bfSderaadt 	 "Number of any Intel Enhanced SpeedStep Technology transitions." },
325285647afSmikeb 	{ 0x3b, CFL_ED|CFL_UM, "THERMAL_TRIP",
3269eecd0bfSderaadt 	 "Duration in a thermal trip based on the current core clock." },
327285647afSmikeb 	{ 0x3c, CFL_UM, "CPU_CLK_UNHALTED",
328285647afSmikeb 	 "Number of non-halted cycles." },
329285647afSmikeb 	{ 0x40, CFL_MESI, "DCACHE_LD",
3309eecd0bfSderaadt 	 "L1 cacheable data reads." },
331285647afSmikeb 	{ 0x41, CFL_MESI, "DCACHE_ST",
3329eecd0bfSderaadt 	 "L1 cacheable data writes." },
333285647afSmikeb 	{ 0x42, CFL_MESI, "DCACHE_LOCK",
3349eecd0bfSderaadt 	 "L1 data cacheable locked reads." },
335285647afSmikeb 	{ 0x43, CFL_UM, "DATA_MEM_REF",
3369eecd0bfSderaadt 	 "All memory references to the L1 DCACHE." },
337285647afSmikeb 	{ 0x44, CFL_UM, "DATA_MEM_CACHE_REF",
338285647afSmikeb 	 "All cacheable memory references to the L1 DCACHE." },
339285647afSmikeb 	{ 0x45, CFL_UM, "DCACHE_REPL",
3409eecd0bfSderaadt 	 "Total lines allocated in the L1 DCACHE." },
341285647afSmikeb 	{ 0x46, 0, "DCACHE_M_REPL",
3429eecd0bfSderaadt 	 "Number of M state lines allocated in the L1 DCACHE." },
343285647afSmikeb 	{ 0x47, 0, "DCACHE_M_EVICT",
344285647afSmikeb 	 "Number of M state lines evicted from the L1 DCACHE." },
345285647afSmikeb 	{ 0x48, 0, "DCACHE_PEND_MISS",
3469eecd0bfSderaadt 	 "Total number of outstanding L1 data cache misses at any cycle." },
347285647afSmikeb 	{ 0x49, CFL_UM, "DTLB_MISS",
3489eecd0bfSderaadt 	 "Number of data references that missed TLB." },
3499eecd0bfSderaadt 	{ 0x4b, 0, "SSE_PRE_MISS",
3509eecd0bfSderaadt 	 "Number of cache misses by the SSE Prefetch NTA instructions." },
3519eecd0bfSderaadt 	{ 0x4c, 0, "LOAD_HIT_PRE",
3529eecd0bfSderaadt 	 "Load operations conflicting with a software prefetch." },
353285647afSmikeb 	{ 0x4e, CFL_UM, "L1D_PREFETCH",
3549eecd0bfSderaadt 	 "L1 DCACHE prefetch requests" },
3559eecd0bfSderaadt 	{ 0x4f, 0, "L1_PREF_REQ",
356*a9865874Sguenther 	 "Number of L1 prefetch requests due to DCU cache misses." },
357285647afSmikeb 	{ 0x60, CFL_SA|CFL_UM, "BUS_REQ_OUTSTANDING",
3589eecd0bfSderaadt 	 "Number of bus requests outstanding." },
3599eecd0bfSderaadt 	{ 0x61, CFL_SA, "BUS_BNR_DRV",
3609eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
3619eecd0bfSderaadt 	 "driving the BNR pin." },
3629eecd0bfSderaadt 	{ 0x62, CFL_SA, "BUS_DRDY_CLOCKS",
3639eecd0bfSderaadt 	 "Number of clocks during which DRDY is asserted." },
364285647afSmikeb 	{ 0x63, CFL_SA|CFL_UM, "BUS_LOCK_CLOCKS",
3659eecd0bfSderaadt 	 "Number of clocks during which LOCK is asserted." },
366285647afSmikeb 	{ 0x64, CFL_UM, "BUS_DATA_RCV",
3679eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
3689eecd0bfSderaadt 	 "receiving data." },
369285647afSmikeb 	{ 0x65, CFL_SA|CFL_UM, "BUS_TRAN_BRD",
3709eecd0bfSderaadt 	 "Number of burst read transactions." },
371285647afSmikeb 	{ 0x66, CFL_SA|CFL_UM, "BUS_TRAN_RFO",
3729eecd0bfSderaadt 	 "Number of read for ownership transactions." },
373285647afSmikeb 	{ 0x67, CFL_SA|CFL_UM, "BUS_TRANS_WB",
3749eecd0bfSderaadt 	 "Number of write back transactions." },
375285647afSmikeb 	{ 0x68, CFL_SA|CFL_UM, "BUS_TRAN_IFETCH",
3769eecd0bfSderaadt 	 "Number of instruction fetch transactions." },
377285647afSmikeb 	{ 0x69, CFL_SA|CFL_UM, "BUS_TRAN_INVAL",
3789eecd0bfSderaadt 	 "Number of invalidate transactions." },
379285647afSmikeb 	{ 0x6a, CFL_SA|CFL_UM, "BUS_TRAN_PWR",
3809eecd0bfSderaadt 	 "Number of partial write transactions." },
381285647afSmikeb 	{ 0x6b, CFL_SA|CFL_UM, "BUS_TRANS_P",
3829eecd0bfSderaadt 	 "Number of partial transactions." },
383285647afSmikeb 	{ 0x6c, CFL_SA|CFL_UM, "BUS_TRANS_IO",
3849eecd0bfSderaadt 	 "Number of I/O transactions." },
385285647afSmikeb 	{ 0x6d, CFL_SA|CFL_UM, "BUS_TRAN_DEF",
3869eecd0bfSderaadt 	 "Number of deferred transactions." },
387285647afSmikeb 	{ 0x6e, CFL_SA|CFL_UM, "BUS_TRAN_BURST",
3889eecd0bfSderaadt 	 "Number of burst transactions." },
389285647afSmikeb 	{ 0x6f, CFL_SA|CFL_UM, "BUS_TRAN_MEM",
3909eecd0bfSderaadt 	 "Number of memory transactions." },
391285647afSmikeb 	{ 0x70, CFL_SA|CFL_UM, "BUS_TRAN_ANY",
3929eecd0bfSderaadt 	 "Number of all transactions." },
3939eecd0bfSderaadt 	{ 0x77, CFL_MESI, "BUS_SNOOPS",
3949eecd0bfSderaadt 	 "Number of external bus cycles while bus lock signal asserted." },
395285647afSmikeb 	{ 0x78, CFL_UM, "DCU_SNOOP_TO_SHARE",
396285647afSmikeb 	 "Number of DCU snoops to share-state L1 cache line due to "
397285647afSmikeb 	 "L1 misses." },
3989eecd0bfSderaadt 	{ 0x7a, CFL_SA, "BUS_HIT_DRV",
3999eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
4009eecd0bfSderaadt 	 "driving the HIT pin." },
4019eecd0bfSderaadt 	{ 0x7b, CFL_SA, "BUS_HITM_DRV",
4029eecd0bfSderaadt 	 "Number of bus clock cycles during which the processor is "
4039eecd0bfSderaadt 	 "driving the HITM pin." },
4049eecd0bfSderaadt 	{ 0x7d, CFL_SA, "BUS_NOT_IN_USE",
4059eecd0bfSderaadt 	 "Number of cycles there is no transaction from the core." },
406285647afSmikeb 	{ 0x7e, 0, "BUS_SNOOP_STALL",
4079eecd0bfSderaadt 	 "Number of clock cycles during which the bus is snoop stalled." },
408285647afSmikeb 	{ 0x7f, CFL_UM, "BUS_IO_WAIT",
409*a9865874Sguenther 	 "Number of cycles during which IO requests wait in the bus queue." },
410285647afSmikeb 	{ 0x80, 0, "ICACHE_READS",
4119eecd0bfSderaadt 	 "Number of instruction fetches, both cacheable and non-cacheable." },
412285647afSmikeb 	{ 0x81, 0, "ICACHE_MISSES",
4139eecd0bfSderaadt 	 "Number of instruction fetch misses." },
414285647afSmikeb 	{ 0x82, CFL_UM, "ITLB_MISS",
4159eecd0bfSderaadt 	 "Number of ITLB misses." },
416285647afSmikeb 	{ 0x83, CFL_UM, "INSQ_QUEUE",
4179eecd0bfSderaadt 	 "Cycles during which the instruction queue is full." },
418285647afSmikeb 	{ 0x85, CFL_UM, "ITLB_MISSES",
4199eecd0bfSderaadt 	 "Number of ITLB misses." },
420285647afSmikeb 	{ 0x86, 0, "IFU_MEM_STALL",
421285647afSmikeb 	 "Number of cycles when the instruction fetches stalled." },
4229eecd0bfSderaadt 	{ 0x87, 0, "ILD_STALL",
4239eecd0bfSderaadt 	 "Number of cycles that the instruction length decoder is stalled." },
4249eecd0bfSderaadt 	{ 0x88, 0, "BR_INST_EXEC",
4259eecd0bfSderaadt 	 "Number of branch instructions executed." },
4269eecd0bfSderaadt 	{ 0x89, 0, "BR_MISSP_EXEC",
4279eecd0bfSderaadt 	 "Number of mispredicted branch instructions that were executed." },
4289eecd0bfSderaadt 	{ 0x8a, 0, "BR_BAC_MISSP_EXEC",
4299eecd0bfSderaadt 	 "Number of branch instructions that were mispredicted at decoding." },
4309eecd0bfSderaadt 	{ 0x8b, 0, "BR_CND_EXEC",
4319eecd0bfSderaadt 	 "Number of conditional branch instructions executed, but not "
4329eecd0bfSderaadt 	 "necessarily retired." },
4339eecd0bfSderaadt 	{ 0x8c, 0, "BR_CND_MISSP_EXEC",
4349eecd0bfSderaadt 	 "Number of mispredicted conditional branch instructions that "
4359eecd0bfSderaadt 	 "were executed." },
4369eecd0bfSderaadt 	{ 0x8d, 0, "BR_IND_EXEC",
4379eecd0bfSderaadt 	 "Number of indirect branch instructions that were executed." },
4389eecd0bfSderaadt 	{ 0x8e, 0, "BR_IND_MISSP_EXEC",
4399eecd0bfSderaadt 	 "number of mispredicted indirect branch instructions that were "
4409eecd0bfSderaadt 	 "executed." },
4419eecd0bfSderaadt 	{ 0x8f, 0, "BR_RET_EXEC",
4429eecd0bfSderaadt 	 "Number of RET instructions that were executed." },
4439eecd0bfSderaadt 	{ 0x90, 0, "BR_RET_MISSP_EXEC",
4449eecd0bfSderaadt 	 "Number of mispredicted RET instructions that were executed." },
4459eecd0bfSderaadt 	{ 0x91, 0, "BR_RET_BAC_MISSP_EXEC",
4469eecd0bfSderaadt 	 "Number of RET instructions that were executed and were mispredicted "
4479eecd0bfSderaadt 	 "at decoding." },
4489eecd0bfSderaadt 	{ 0x92, 0, "BR_CALL_EXEC",
4499eecd0bfSderaadt 	 "Number of CALL instructions executed." },
4509eecd0bfSderaadt 	{ 0x93, 0, "BR_CALL_MISSP_EXEC",
4519eecd0bfSderaadt 	 "Number of mispredicted CALL instructions that were executed." },
4529eecd0bfSderaadt 	{ 0x94, 0, "BR_IND_CALL_EXEC",
4539eecd0bfSderaadt 	 "Number of indirect CALL instructions that were executed." },
4549eecd0bfSderaadt 	{ 0x97, 0, "BR_TKN_BUBBLE_1",
4559eecd0bfSderaadt 	 "Number of times a taken branch predicted taken with bubble 1." },
4569eecd0bfSderaadt 	{ 0x98, 0, "BR_TKN_BUBBLE_2",
4579eecd0bfSderaadt 	 "Number of times a taken branch predicted taken with bubble 2." },
4589eecd0bfSderaadt 	{ 0xa0, 0, "RS_UOPS_DISPATCHED",
459*a9865874Sguenther 	 "Number of micro-ops dispatched for execution." },
460285647afSmikeb 	{ 0xa1, CFL_UM, "RS_UOPS_DISPATCHED",
461285647afSmikeb 	 "Number of cycles for which micro-ops dispatched for execution." },
4629eecd0bfSderaadt 	{ 0xa2, 0, "RESOURCE_STALL",
4639eecd0bfSderaadt 	 "Number of cycles while there us a resource related stall." },
464285647afSmikeb 	{ 0xaa, CFL_UM, "MACRO_INSTS",
4659eecd0bfSderaadt 	 "Number of instructions decoded (but not necessarily executed "
4669eecd0bfSderaadt 	 "or retired)." },
467285647afSmikeb 	{ 0xab, CFL_UM, "ESP",
4689eecd0bfSderaadt 	 "ESP register operations." },
4699eecd0bfSderaadt 	{ 0xb0, 0, "SIMD_UOPS_EXEC",
4709eecd0bfSderaadt 	 "Number of SIMD micro-ops executed (excluding stores)." },
4719eecd0bfSderaadt 	{ 0xb1, 0, "SIMD_SAT_UOP_EXEC",
4729eecd0bfSderaadt 	 "Number of SIMD saturated arithmetic micro-ops executed." },
473285647afSmikeb 	{ 0xb3, CFL_UM, "SIMD_INT",
474285647afSmikeb 	 "Number of SIMD integer instructions executed." },
475285647afSmikeb 	{ 0xc0, 0, "INST_RET",
4769eecd0bfSderaadt 	 "Number of instructions retired." },
477285647afSmikeb 	{ 0xc1, 0, "FP_COMP_INSTR_RET",
4789eecd0bfSderaadt 	 "Number of computational floating-point operations retired." },
479285647afSmikeb 	{ 0xc2, 0, "UOPS_RET",
480*a9865874Sguenther 	 "Number of micro-ops retired." },
481285647afSmikeb 	{ 0xc3, 0, "SMC_DETECTED",
482285647afSmikeb 	 "Number of times self-modifying code condition detected." },
483285647afSmikeb 	{ 0xc4, 0, "BR_INST_RET",
4849eecd0bfSderaadt 	 "Number of branch instructions retired." },
485285647afSmikeb 	{ 0xc5, 0, "BR_MISPRED_RET",
4869eecd0bfSderaadt 	 "Number of mispredicted branches retired." },
4879eecd0bfSderaadt 	{ 0xc6, 0, "CYCLES_INT_MASKED",
488285647afSmikeb 	 "Number of cycles for which interrupts are disabled." },
489285647afSmikeb 	{ 0xc7, 0, "CYCLES_INT_PENDING_MASKED",
490285647afSmikeb 	 "Number of cycles for which interrupts are disabled "
491285647afSmikeb 	 "and interrupts are pending." },
492285647afSmikeb 	{ 0xc8, 0, "HW_INT_RX",
4939eecd0bfSderaadt 	 "Number of hardware interrupts received." },
494285647afSmikeb 	{ 0xc9, 0, "BR_TAKEN_RET",
495285647afSmikeb 	 "Number of taken branch instructions retired."},
496285647afSmikeb 	{ 0xca, 0, "BR_MISPRED_TAKEN_RET",
497285647afSmikeb 	 "Number of taken and mispredicted branch instructions retired." },
4989eecd0bfSderaadt 	{ 0xcb, 0, "MEM_LOAD_RETIRED",
4999eecd0bfSderaadt 	 "Number of retired load operations that missed the L1 DCACHE." },
500285647afSmikeb 	{ 0xcc, 0, "MMX_FP_TRANS",
501285647afSmikeb 	 "Number of transitions between MMX and X87." },
502285647afSmikeb 	{ 0xcd, 0, "MMX_ASSIST",
503285647afSmikeb 	 "Number of EMMS executed." },
504285647afSmikeb 	{ 0xce, 0, "MMX_INSTR_RET",
505285647afSmikeb 	 "Number of MMX instructions retired." },
506285647afSmikeb 	{ 0xcf, 0, "MMX_SAT_INSTR_RET",
507285647afSmikeb 	 "Number of MMX saturated arithmetic instructions retired." },
5089eecd0bfSderaadt 	{ 0xd0, 0, "INSTR_DECODED",
5099eecd0bfSderaadt 	 "Number of instructions decoded." },
510285647afSmikeb 	{ 0xd2, CFL_UM, "RAT_STALLS",
5119eecd0bfSderaadt 	 "Number of cycles or events for partial stalls." },
512285647afSmikeb 	{ 0xd4, CFL_UM, "SEG_RENAME_STALLS",
5139eecd0bfSderaadt 	 "Number of stalls due to the lack of renaming resources." },
514285647afSmikeb 	{ 0xd5, CFL_UM, "SEG_REG_RENAMES",
5159eecd0bfSderaadt 	 "Number of times the segment register is renamed." },
5169eecd0bfSderaadt 	{ 0xd7, 0, "ESP_UOPS",
5179eecd0bfSderaadt 	 "Number of ESP folding instruction decoded." },
5189eecd0bfSderaadt 	{ 0xd8, 0, "SIMD_FD_RET",
5199eecd0bfSderaadt 	 "Number of SSE/SSE2 instructions retired." },
5209eecd0bfSderaadt 	{ 0xd9, 0, "SIMD_FP_COM_RET",
5219eecd0bfSderaadt 	 "Number of SSE/SSE2 compute instructions retired." },
5229eecd0bfSderaadt 	{ 0xda, 0, "FUSED_UOPS_RET",
523*a9865874Sguenther 	 "Number of all fused micro-ops retired." },
5249eecd0bfSderaadt 	{ 0xdb, 0, "UNFUSION",
5259eecd0bfSderaadt 	 "Number of all unfusion events in the ROB." },
526285647afSmikeb 	{ 0xdc, CFL_UM, "RESOURCE_STALLS",
5279eecd0bfSderaadt 	 "Number of cycles when the number of instructions in the pipeline "
5289eecd0bfSderaadt 	 "waiting for retirement reaches the limit the processor can handle." },
5299eecd0bfSderaadt 	{ 0xe0, 0, "BR_INST_DECODED",
5309eecd0bfSderaadt 	 "Number of branch instructions decoded." },
5319eecd0bfSderaadt 	{ 0xe2, 0, "BTB_MISSES",
5329eecd0bfSderaadt 	 "Number of branches the BTB did not produce a prediction." },
5339eecd0bfSderaadt 	{ 0xe4, 0, "BOGUS_BR",
5349eecd0bfSderaadt 	 "Number of byte sequences that were mistakenly detected as taken "
5359eecd0bfSderaadt 	 "branch instructions." },
5369eecd0bfSderaadt 	{ 0xe6, 0, "BACLEARS",
5379eecd0bfSderaadt 	 "Number of times BACLEAR is asserted." },
5389eecd0bfSderaadt 	{ 0xf0, 0, "PREF_RQSTS_UP",
5399eecd0bfSderaadt 	 "Number of upward prefetches issued from the Data Prefetch Logic "
5409eecd0bfSderaadt 	 "(DPL) to the L2 cache." },
5419eecd0bfSderaadt 	{ 0xf8, 0, "PREF_RQSTS_DN",
5429eecd0bfSderaadt 	 "Number of downward prefetches issued from the Data Prefetch Logic "
5439eecd0bfSderaadt 	 "(DPL) to the L2 cache." },
5449eecd0bfSderaadt 	{ 0x0, 0, NULL, NULL }
5459eecd0bfSderaadt };
5469eecd0bfSderaadt 
5479eecd0bfSderaadt struct ctrfn amdfn[] = {
5489eecd0bfSderaadt 	{ 0x00, 0, "Dispatched FPU operations", NULL },
5499eecd0bfSderaadt 	{ 0x01, 0, "Cycles with no FPU ops retired", NULL },
5509eecd0bfSderaadt 	{ 0x02, 0, "Dispatched fast flag FPU operations", NULL },
5519eecd0bfSderaadt 	{ 0x20, 0, "Segment register loads", NULL },
5529eecd0bfSderaadt 	{ 0x21, 0, "Pipeline restart due to self-modifying code", NULL },
5539eecd0bfSderaadt 	{ 0x22, 0, "Pipeline restart due to probe hit", NULL },
5549eecd0bfSderaadt 	{ 0x23, 0, "LS2 buffer is full", NULL },
5559eecd0bfSderaadt 	{ 0x24, 0, "Locked operations", NULL },
5569eecd0bfSderaadt 	{ 0x26, 0, "Retired CFLUSH instructions", NULL },
5579eecd0bfSderaadt 	{ 0x27, 0, "Retired CPUID instructions", NULL },
5589eecd0bfSderaadt 	{ 0x40, 0, "Data cache accesses", NULL },
5599eecd0bfSderaadt 	{ 0x41, 0, "Data cache misses", NULL },
5609eecd0bfSderaadt 	{ 0x42, 0, "Data cache refills from L2 or system", NULL },
5619eecd0bfSderaadt 	{ 0x43, 0, "Data cache refills from system", NULL },
5629eecd0bfSderaadt 	{ 0x44, 0, "Data cache lines evicted", NULL },
5639eecd0bfSderaadt 	{ 0x45, 0, "L1 DTLB miss and L2 DTLB hit", NULL },
5649eecd0bfSderaadt 	{ 0x46, 0, "L1 DTLB miss and L2 DTLB miss", NULL },
5659eecd0bfSderaadt 	{ 0x47, 0, "Misaligned access", NULL },
5669eecd0bfSderaadt 	{ 0x48, 0, "Microarchitectural late cancel of an access", NULL },
5679eecd0bfSderaadt 	{ 0x49, 0, "Microarchitectural early cancel of an access", NULL },
5689eecd0bfSderaadt 	{ 0x4a, 0, "Single bit ECC errors recorded by scrubber", NULL },
5699eecd0bfSderaadt 	{ 0x4b, 0, "Prefetch instructions dispatched", NULL },
5709eecd0bfSderaadt 	{ 0x4c, 0, "DCACHE misses by locked instructions", NULL },
5719eecd0bfSderaadt 	{ 0x65, 0, "Memory requests by type", NULL },
5729eecd0bfSderaadt 	{ 0x67, 0, "Data prefetcher", NULL },
5739eecd0bfSderaadt 	{ 0x6c, 0, "System read responses by coherency state", NULL },
5749eecd0bfSderaadt 	{ 0x6d, 0, "Quadwords written to system", NULL },
5759eecd0bfSderaadt 	{ 0x76, 0, "CPU clocks not halted", NULL },
5769eecd0bfSderaadt 	{ 0x7d, 0, "Requests to L2 cache", NULL },
5779eecd0bfSderaadt 	{ 0x7e, 0, "L2 cache misses", NULL },
5789eecd0bfSderaadt 	{ 0x7f, 0, "L2 cache fill/writeback", NULL },
5799eecd0bfSderaadt 	{ 0x80, 0, "ICACHE fetches", NULL },
5809eecd0bfSderaadt 	{ 0x81, 0, "ICACHE misses", NULL },
5819eecd0bfSderaadt 	{ 0x82, 0, "ICACHE refills from L2", NULL },
5829eecd0bfSderaadt 	{ 0x83, 0, "ICACHE refills from system", NULL },
5839eecd0bfSderaadt 	{ 0x84, 0, "L1 ITLB miss and L2 ITLB hit", NULL },
5849eecd0bfSderaadt 	{ 0x85, 0, "L1 ITLB miss and L2 ITLB miss", NULL },
5859eecd0bfSderaadt 	{ 0x86, 0, "Pipeline restart due to instruction stream probe", NULL },
5869eecd0bfSderaadt 	{ 0x87, 0, "Instruction fetch stall", NULL },
5879eecd0bfSderaadt 	{ 0x88, 0, "Return stack hits", NULL },
5889eecd0bfSderaadt 	{ 0x89, 0, "Return stack overflows", NULL },
5899eecd0bfSderaadt 	{ 0xc0, 0, "Retired instructions", NULL },
590*a9865874Sguenther 	{ 0xc1, 0, "Retired micro-ops", NULL },
5919eecd0bfSderaadt 	{ 0xc2, 0, "Retired branch instructions", NULL },
5929eecd0bfSderaadt 	{ 0xc3, 0, "Retired mispredicted branch instructions", NULL },
5939eecd0bfSderaadt 	{ 0xc4, 0, "Retired taken branch instructions", NULL },
5949eecd0bfSderaadt 	{ 0xc5, 0, "Retired mispredicted taken branch instructions", NULL },
5959eecd0bfSderaadt 	{ 0xc6, 0, "Retired far control transfers", NULL },
5969eecd0bfSderaadt 	{ 0xc7, 0, "Retired branch resyncs", NULL },
5979eecd0bfSderaadt 	{ 0xc8, 0, "Retired near returns", NULL },
5989eecd0bfSderaadt 	{ 0xc9, 0, "Retired mispredicted near returns", NULL },
599*a9865874Sguenther 	{ 0xca, 0, "Retired mispredicted indirect branches", NULL },
6009eecd0bfSderaadt 	{ 0xcb, 0, "Retired MMX/FP instructions", NULL },
6019eecd0bfSderaadt 	{ 0xcc, 0, "Retired fastpath double op instructions", NULL },
6029eecd0bfSderaadt 	{ 0xcd, 0, "Interrupts-masked cycles", NULL },
6039eecd0bfSderaadt 	{ 0xce, 0, "Interrupts-masked cycles with interrupts pending", NULL },
6049eecd0bfSderaadt 	{ 0xcf, 0, "Interrupts taken", NULL },
6059eecd0bfSderaadt 	{ 0xd0, 0, "Decoder empty", NULL },
6069eecd0bfSderaadt 	{ 0xd1, 0, "Dispatch stalls", NULL },
6079eecd0bfSderaadt 	{ 0xd2, 0, "Dispatch stalls for branch abort retire", NULL },
6089eecd0bfSderaadt 	{ 0xd3, 0, "Dispatch stalls for serialisation", NULL },
6099eecd0bfSderaadt 	{ 0xd4, 0, "Dispatch stalls for segment load", NULL },
610*a9865874Sguenther 	{ 0xd5, 0, "Dispatch stalls for reorder buffer full", NULL },
6119eecd0bfSderaadt 	{ 0xd6, 0, "Dispatch stalls for reservation station full", NULL },
6129eecd0bfSderaadt 	{ 0xd7, 0, "Dispatch stalls for FPU full", NULL },
6139eecd0bfSderaadt 	{ 0xd8, 0, "Dispatch stalls for LS full", NULL },
6149eecd0bfSderaadt 	{ 0xd9, 0, "Dispatch stalls waiting for all quite", NULL },
6159eecd0bfSderaadt 	{ 0xda, 0, "Dispatch stalls for far transfer or resync to retire", NULL },
6169eecd0bfSderaadt 	{ 0xdb, 0, "FPU exceptions", NULL },
6179eecd0bfSderaadt 	{ 0xdc, 0, "DR0 breakpoint matches", NULL },
6189eecd0bfSderaadt 	{ 0xdd, 0, "DR1 breakpoint matches", NULL },
6199eecd0bfSderaadt 	{ 0xde, 0, "DR2 breakpoint matches", NULL },
6209eecd0bfSderaadt 	{ 0xdf, 0, "DR3 breakpoint matches", NULL },
6219eecd0bfSderaadt 	{ 0xe0, 0, "DRAM accesses", NULL },
6229eecd0bfSderaadt 	{ 0xe1, 0, "Memory controller page tables overflow", NULL },
6239eecd0bfSderaadt 	{ 0xe3, 0, "Memory controller turnarounds", NULL },
6249eecd0bfSderaadt 	{ 0xe4, 0, "Memory controller bypass counter saturation", NULL },
6259eecd0bfSderaadt 	{ 0xe5, 0, "Sized blocks", NULL },
6269eecd0bfSderaadt 	{ 0xe8, 0, "ECC errors", NULL },
6279eecd0bfSderaadt 	{ 0xe9, 0, "CPU/IO requests to memory/IO", NULL },
6289eecd0bfSderaadt 	{ 0xea, 0, "Cache blocks commands", NULL },
6299eecd0bfSderaadt 	{ 0xeb, 0, "Sized commands", NULL },
6309eecd0bfSderaadt 	{ 0xec, 0, "Probe responses and upstream requests", NULL },
6319eecd0bfSderaadt 	{ 0xee, 0, "GART events", NULL },
6329eecd0bfSderaadt 	{ 0xf6, 0, "HT link 0 transmit bandwidth", NULL },
6339eecd0bfSderaadt 	{ 0xf7, 0, "HT link 1 transmit bandwidth", NULL },
6349eecd0bfSderaadt 	{ 0xf8, 0, "HT link 2 transmit bandwidth", NULL },
6359eecd0bfSderaadt 	{ 0x0,  0, NULL, NULL }
6369eecd0bfSderaadt };
6379eecd0bfSderaadt 
6389eecd0bfSderaadt #endif	/* _PCTRVAR_H_ */
639