17042d3b9SJoseph Koshy.\" Copyright (c) 2008 Joseph Koshy. All rights reserved. 27042d3b9SJoseph Koshy.\" 37042d3b9SJoseph Koshy.\" Redistribution and use in source and binary forms, with or without 47042d3b9SJoseph Koshy.\" modification, are permitted provided that the following conditions 57042d3b9SJoseph Koshy.\" are met: 67042d3b9SJoseph Koshy.\" 1. Redistributions of source code must retain the above copyright 77042d3b9SJoseph Koshy.\" notice, this list of conditions and the following disclaimer. 87042d3b9SJoseph Koshy.\" 2. Redistributions in binary form must reproduce the above copyright 97042d3b9SJoseph Koshy.\" notice, this list of conditions and the following disclaimer in the 107042d3b9SJoseph Koshy.\" documentation and/or other materials provided with the distribution. 117042d3b9SJoseph Koshy.\" 127042d3b9SJoseph Koshy.\" This software is provided by Joseph Koshy ``as is'' and 137042d3b9SJoseph Koshy.\" any express or implied warranties, including, but not limited to, the 147042d3b9SJoseph Koshy.\" implied warranties of merchantability and fitness for a particular purpose 157042d3b9SJoseph Koshy.\" are disclaimed. in no event shall Joseph Koshy be liable 167042d3b9SJoseph Koshy.\" for any direct, indirect, incidental, special, exemplary, or consequential 177042d3b9SJoseph Koshy.\" damages (including, but not limited to, procurement of substitute goods 187042d3b9SJoseph Koshy.\" or services; loss of use, data, or profits; or business interruption) 197042d3b9SJoseph Koshy.\" however caused and on any theory of liability, whether in contract, strict 207042d3b9SJoseph Koshy.\" liability, or tort (including negligence or otherwise) arising in any way 217042d3b9SJoseph Koshy.\" out of the use of this software, even if advised of the possibility of 227042d3b9SJoseph Koshy.\" such damage. 237042d3b9SJoseph Koshy.\" 247042d3b9SJoseph Koshy.\" $FreeBSD$ 257042d3b9SJoseph Koshy.\" 267042d3b9SJoseph Koshy.Dd October 3, 2008 277042d3b9SJoseph Koshy.Os 287042d3b9SJoseph Koshy.Dt PMC.IAF 3 297042d3b9SJoseph Koshy.Sh NAME 307042d3b9SJoseph Koshy.Nm pmc.iaf 317042d3b9SJoseph Koshy.Nd measurement events for 327042d3b9SJoseph Koshy.Tn Intel 337042d3b9SJoseph Koshyfixed function performance counters. 347042d3b9SJoseph Koshy.Sh LIBRARY 357042d3b9SJoseph Koshy.Lb libpmc 367042d3b9SJoseph Koshy.Sh SYNOPSIS 377042d3b9SJoseph Koshy.In pmc.h 387042d3b9SJoseph Koshy.Sh DESCRIPTION 397042d3b9SJoseph Koshy.Tn Intel 407042d3b9SJoseph Koshyfixed-function PMCs are present in CPUs that conform to version 2 or 417042d3b9SJoseph Koshylater of the 427042d3b9SJoseph Koshy.Tn Intel 437042d3b9SJoseph KoshyPerformance Measurement Architecture. 447042d3b9SJoseph KoshyEach fixed-function PMC measures a specific hardware event. 457042d3b9SJoseph KoshyThe number of fixed-function PMCs implemented in a CPU can vary. 467042d3b9SJoseph KoshyThe number of fixed-function PMCs present can be determined at runtime 477042d3b9SJoseph Koshyby using function 487042d3b9SJoseph Koshy.Xr pmc_cpuinfo 3 . 497042d3b9SJoseph Koshy.Pp 507042d3b9SJoseph KoshyIntel fixed-function PMCs are documented in 517042d3b9SJoseph Koshy.Rs 527042d3b9SJoseph Koshy.%B "IA-32 Intel(R) Architecture Software Developer's Manual" 537042d3b9SJoseph Koshy.%T "Volume 3: System Programming Guide" 547042d3b9SJoseph Koshy.%N "Order Number 253669-027US" 557042d3b9SJoseph Koshy.%D July 2008 567042d3b9SJoseph Koshy.%Q "Intel Corporation" 577042d3b9SJoseph Koshy.Re 587042d3b9SJoseph Koshy.Pp 597042d3b9SJoseph Koshy.Ss PMC Capabilities 607042d3b9SJoseph KoshyFixed-function PMCs support the following capabilities: 617042d3b9SJoseph Koshy.Bl -column "PMC_CAP_INTERRUPT" "Support" 627042d3b9SJoseph Koshy.It Em Capability Ta Em Support 637042d3b9SJoseph Koshy.It PMC_CAP_CASCADE Ta \&No 647042d3b9SJoseph Koshy.It PMC_CAP_EDGE Ta \&No 657042d3b9SJoseph Koshy.It PMC_CAP_INTERRUPT Ta Yes 667042d3b9SJoseph Koshy.It PMC_CAP_INVERT Ta \&No 677042d3b9SJoseph Koshy.It PMC_CAP_READ Ta Yes 687042d3b9SJoseph Koshy.It PMC_CAP_PRECISE Ta \&No 697042d3b9SJoseph Koshy.It PMC_CAP_SYSTEM Ta Yes 707042d3b9SJoseph Koshy.It PMC_CAP_TAGGING Ta \&No 717042d3b9SJoseph Koshy.It PMC_CAP_THRESHOLD Ta \&No 727042d3b9SJoseph Koshy.It PMC_CAP_USER Ta Yes 737042d3b9SJoseph Koshy.It PMC_CAP_WRITE Ta Yes 747042d3b9SJoseph Koshy.El 757042d3b9SJoseph Koshy.Ss Event Qualifiers (Fixed Function PMCs) 767042d3b9SJoseph KoshyThese PMCs support the following modifiers: 777042d3b9SJoseph Koshy.Bl -tag -width indent 787042d3b9SJoseph Koshy.It Li os 797042d3b9SJoseph KoshyConfigure the PMC to count events occurring at ring level 0. 807042d3b9SJoseph Koshy.It Li usr 817042d3b9SJoseph KoshyConfigure the PMC to count events occurring at ring levels 1, 2 827042d3b9SJoseph Koshyor 3. 837042d3b9SJoseph Koshy.El 847042d3b9SJoseph Koshy.Pp 857042d3b9SJoseph KoshyIf neither of the 867042d3b9SJoseph Koshy.Dq Li os 877042d3b9SJoseph Koshyor 887042d3b9SJoseph Koshy.Dq Li usr 897042d3b9SJoseph Koshyqualifiers are specified, the default is to enable both. 907042d3b9SJoseph Koshy.Ss Event Specifiers (Fixed Function PMCs) 917042d3b9SJoseph KoshyThe fixed function PMCs are selectable using the following 927042d3b9SJoseph Koshyevent names: 937042d3b9SJoseph Koshy.Bl -tag -width indent 9406209c44SJoseph Koshy.It Li INSTR_RETIRED.ANY 957042d3b9SJoseph Koshy.Pq Fixed Function Counter 0 967042d3b9SJoseph KoshyThe number of instructions retired. 9706209c44SJoseph Koshy.It Li CPU_CLK_UNHALTED.CORE 987042d3b9SJoseph Koshy.Pq Fixed Function Counter 1 997042d3b9SJoseph KoshyThe number of core cycles for which the core is not halted. 10006209c44SJoseph Koshy.It Li CPU_CLK_UNHALTED.REF 1017042d3b9SJoseph Koshy.Pq Fixed Function Counter 2 1027042d3b9SJoseph KoshyThe number of reference cycles for which the core is not halted. 1037042d3b9SJoseph Koshy.El 1047042d3b9SJoseph Koshy.Sh SEE ALSO 1057042d3b9SJoseph Koshy.Xr pmc 3 , 1067042d3b9SJoseph Koshy.Xr pmc.atom 3 , 1077042d3b9SJoseph Koshy.Xr pmc.core 3 , 1087042d3b9SJoseph Koshy.Xr pmc.core2 3 , 1097042d3b9SJoseph Koshy.Xr pmc.k7 3 , 1107042d3b9SJoseph Koshy.Xr pmc.k8 3 , 1117042d3b9SJoseph Koshy.Xr pmc.p4 3 , 1127042d3b9SJoseph Koshy.Xr pmc.p5 3 , 1137042d3b9SJoseph Koshy.Xr pmc.p6 3 , 1147042d3b9SJoseph Koshy.Xr pmc.tsc 3 , 1157042d3b9SJoseph Koshy.Xr pmc_cpuinfo 3 , 1167042d3b9SJoseph Koshy.Xr pmclog 3 , 1177042d3b9SJoseph Koshy.Xr hwpmc 4 1187042d3b9SJoseph Koshy.Sh HISTORY 1197042d3b9SJoseph KoshyThe 1207042d3b9SJoseph Koshy.Nm pmc 1217042d3b9SJoseph Koshylibrary first appeared in 1227042d3b9SJoseph Koshy.Fx 6.0 . 1237042d3b9SJoseph Koshy.Sh AUTHORS 1247042d3b9SJoseph KoshyThe 1257042d3b9SJoseph Koshy.Lb libpmc 1267042d3b9SJoseph Koshylibrary was written by 1277042d3b9SJoseph Koshy.An "Joseph Koshy" 1287042d3b9SJoseph Koshy.Aq jkoshy@FreeBSD.org . 129