PAPI 7.1.0.0
Loading...
Searching...
No Matches
gen_ia32_events.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2006-2007 Hewlett-Packard Development Company, L.P.
3 * Contributed by Stephane Eranian <eranian@hpl.hp.com>
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9 * of the Software, and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in all
13 * copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
16 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
17 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
19 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
20 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 *
22 * This file is part of libpfm, a performance monitoring support library for
23 * applications on Linux.
24 */
25
26
27/*
28 * architected events for architectural perfmon v1 and v2 as defined by the IA-32 developer's manual
29 * Vol 3B, table 18-6 (May 2007)
30 */
32 {.pme_name = "UNHALTED_CORE_CYCLES",
33 .pme_code = 0x003c,
34 .pme_fixed = 17,
35 .pme_desc = "count core clock cycles whenever the clock signal on the specific core is running (not halted)"
36 },
37 {.pme_name = "INSTRUCTIONS_RETIRED",
38 .pme_code = 0x00c0,
39 .pme_fixed = 16,
40 .pme_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",
41 },
42 {.pme_name = "UNHALTED_REFERENCE_CYCLES",
43 .pme_code = 0x013c,
44 .pme_fixed = 18,
45 .pme_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 freqeuncy changes due to performance state transitions",
46 },
47 {.pme_name = "LAST_LEVEL_CACHE_REFERENCES",
48 .pme_code = 0x4f2e,
49 .pme_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",
50 },
51 {.pme_name = "LAST_LEVEL_CACHE_MISSES",
52 .pme_code = 0x412e,
53 .pme_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",
54 },
55 {.pme_name = "BRANCH_INSTRUCTIONS_RETIRED",
56 .pme_code = 0x00c4,
57 .pme_desc = "count branch instructions at retirement. Specifically, this event counts the retirement of the last micro-op of a branch instruction",
58 },
59 {.pme_name = "MISPREDICTED_BRANCH_RETIRED",
60 .pme_code = 0x00c5,
61 .pme_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",
62 }
63};
64#define PME_GEN_IA32_UNHALTED_CORE_CYCLES 0
65#define PME_GEN_IA32_INSTRUCTIONS_RETIRED 1
66#define PFMLIB_GEN_IA32_EVENT_COUNT (sizeof(gen_ia32_all_pe)/sizeof(pme_gen_ia32_entry_t))
static pme_gen_ia32_entry_t gen_ia32_all_pe[]
char * pme_name