|
Packit |
577717 |
/*
|
|
Packit |
577717 |
* Copyright (c) 2006-2007 Hewlett-Packard Development Company, L.P.
|
|
Packit |
577717 |
* Contributed by Stephane Eranian <eranian@hpl.hp.com>
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
Packit |
577717 |
* of this software and associated documentation files (the "Software"), to deal
|
|
Packit |
577717 |
* in the Software without restriction, including without limitation the rights
|
|
Packit |
577717 |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
Packit |
577717 |
* of the Software, and to permit persons to whom the Software is furnished to do so,
|
|
Packit |
577717 |
* subject to the following conditions:
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* The above copyright notice and this permission notice shall be included in all
|
|
Packit |
577717 |
* copies or substantial portions of the Software.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
|
Packit |
577717 |
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
Packit |
577717 |
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
Packit |
577717 |
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
|
Packit |
577717 |
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
|
|
Packit |
577717 |
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
Packit |
577717 |
*
|
|
Packit |
577717 |
* This file is part of libpfm, a performance monitoring support library for
|
|
Packit |
577717 |
* applications on Linux.
|
|
Packit |
577717 |
*/
|
|
Packit |
577717 |
|
|
Packit |
577717 |
|
|
Packit |
577717 |
/*
|
|
Packit |
577717 |
* architected events for architectural perfmon v1 and v2 as defined by the IA-32 developer's manual
|
|
Packit |
577717 |
* Vol 3B, table 18-6 (May 2007)
|
|
Packit |
577717 |
*/
|
|
Packit |
577717 |
static intel_x86_entry_t intel_x86_arch_pe[]={
|
|
Packit |
577717 |
{.name = "UNHALTED_CORE_CYCLES",
|
|
Packit |
577717 |
.code = 0x003c,
|
|
Packit |
577717 |
.cntmsk = 0x200000000ull, /* temporary */
|
|
Packit |
577717 |
.desc = "count core clock cycles whenever the clock signal on the specific core is running (not halted)"
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{.name = "INSTRUCTION_RETIRED",
|
|
Packit |
577717 |
.code = 0x00c0,
|
|
Packit |
577717 |
.cntmsk = 0x100000000ull, /* temporary */
|
|
Packit |
577717 |
.desc = "count the number of instructions at retirement. For instructions that consists of multiple micro-ops, this event counts the retirement of the last micro-op of the instruction",
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{.name = "UNHALTED_REFERENCE_CYCLES",
|
|
Packit |
577717 |
.code = 0x013c,
|
|
Packit |
577717 |
.cntmsk = 0x400000000ull, /* temporary */
|
|
Packit |
577717 |
.desc = "count reference clock cycles while the clock signal on the specific core is running. The reference clock operates at a fixed frequency, irrespective of core frequency changes due to performance state transitions",
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{.name = "LLC_REFERENCES",
|
|
Packit |
577717 |
.code = 0x4f2e,
|
|
Packit |
577717 |
.desc = "count each request originating from the core to reference a cache line in the last level cache. The count may include speculation, but excludes cache line fills due to hardware prefetch",
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{.name = "LLC_MISSES",
|
|
Packit |
577717 |
.code = 0x412e,
|
|
Packit |
577717 |
.desc = "count each cache miss condition for references to the last level cache. The event count may include speculation, but excludes cache line fills due to hardware prefetch",
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{.name = "BRANCH_INSTRUCTIONS_RETIRED",
|
|
Packit |
577717 |
.code = 0x00c4,
|
|
Packit |
577717 |
.desc = "count branch instructions at retirement. Specifically, this event counts the retirement of the last micro-op of a branch instruction",
|
|
Packit |
577717 |
},
|
|
Packit |
577717 |
{.name = "MISPREDICTED_BRANCH_RETIRED",
|
|
Packit |
577717 |
.code = 0x00c5,
|
|
Packit |
577717 |
.desc = "count mispredicted branch instructions at retirement. Specifically, this event counts at retirement of the last micro-op of a branch instruction in the architectural path of the execution and experienced misprediction in the branch prediction hardware",
|
|
Packit |
577717 |
}
|
|
Packit |
577717 |
};
|