PAPI 7.1.0.0
Loading...
Searching...
No Matches
map-k8.c
Go to the documentation of this file.
1/****************************/
2/* THIS IS OPEN SOURCE CODE */
3/****************************/
4
5/*
6* File: map-k8.c
7* Author: Harald Servat
8* redcrash@gmail.com
9*/
10
11#include "freebsd.h"
12#include "papiStdEventDefs.h"
13#include "map.h"
14
15
16/****************************************************************************
17 K8 SUBSTRATE
18 K8 SUBSTRATE
19 K8 SUBSTRATE (aka Athlon64)
20 K8 SUBSTRATE
21 K8 SUBSTRATE
22****************************************************************************/
23
24/*
25 NativeEvent_Value_K8Processor must match K8Processor_info
26*/
27
29{
30 { "k8-bu-cpu-clk-unhalted", "Count the number of clock cycles when the CPU is not in the HLT or STPCLCK states" },
31 { "k8-bu-fill-request-l2-miss", "Count fill requests that missed in the L2 cache."},
32 { "k8-bu-internal-l2-request", "Count internally generated requests to the L2 cache." },
33 { "k8-dc-access", "Count data cache accesses including microcode scratchpad accesses."},
34 { "k8-dc-copyback", "Count data cache copyback operations."},
35 { "k8-dc-dcache-accesses-by-locks", "Count data cache accesses by lock instructions." },
36 { "k8-dc-dispatched-prefetch-instructions", "Count the number of dispatched prefetch instructions." },
37 { "k8-dc-l1-dtlb-miss-and-l2-dtlb-hit", "Count L1 DTLB misses that are L2 DTLB hits." },
38 { "k8-dc-l1-dtlb-miss-and-l2-dtlb-miss", "Count L1 DTLB misses that are also misses in the L2 DTLB." },
39 { "k8-dc-microarchitectural-early-cancel-of-an-access", "Count microarchitectural early cancels of data cache accesses." },
40 { "k8-dc-microarchitectural-late-cancel-of-an-access", "Count microarchitectural late cancels of data cache accesses." },
41 { "k8-dc-misaligned-data-reference", "Count misaligned data references." },
42 { "k8-dc-miss", "Count data cache misses."},
43 { "k8-dc-one-bit-ecc-error", "Count one bit ECC errors found by the scrubber." },
44 { "k8-dc-refill-from-l2", "Count data cache refills from L2 cache." },
45 { "k8-dc-refill-from-system", "Count data cache refills from system memory." },
46 { "k8-fp-dispatched-fpu-ops", "Count the number of dispatched FPU ops." },
47 { "k8-fp-cycles-with-no-fpu-ops-retired", "Count cycles when no FPU ops were retired." },
48 { "k8-fp-dispatched-fpu-fast-flag-ops", "Count dispatched FPU ops that use the fast flag interface." },
49 { "k8-fr-decoder-empty", "Count cycles when there was nothing to dispatch." },
50 { "k8-fr-dispatch-stalls", "Count all dispatch stalls." },
51 { "k8-fr-dispatch-stall-for-segment-load", "Count dispatch stalls for segment loads." },
52 { "k8-fr-dispatch-stall-for-serialization", "Count dispatch stalls for serialization." },
53 { "k8-fr-dispatch-stall-from-branch-abort-to-retire", "Count dispatch stalls from branch abort to retiral." },
54 { "k8-fr-dispatch-stall-when-fpu-is-full", "Count dispatch stalls when the FPU is full." },
55 { "k8-fr-dispatch-stall-when-ls-is-full", "Count dispatch stalls when the load/store unit is full." },
56 { "k8-fr-dispatch-stall-when-reorder-buffer-is-full", "Count dispatch stalls when the reorder buffer is full." },
57 { "k8-fr-dispatch-stall-when-reservation-stations-are-full", "Count dispatch stalls when reservation stations are full." },
58 { "k8-fr-dispatch-stall-when-waiting-for-all-to-be-quiet", "Count dispatch stalls when waiting for all to be quiet." },
59 { "k8-fr-dispatch-stall-when-waiting-far-xfer-or-resync-branch-pending", "Count dispatch stalls when a far control transfer or a resync branch is pending." },
60 { "k8-fr-fpu-exceptions", "Count FPU exceptions." },
61 { "k8-fr-interrupts-masked-cycles", "Count cycles when interrupts were masked." },
62 { "k8-fr-interrupts-masked-while-pending-cycles", "Count cycles while interrupts were masked while pending" },
63 { "k8-fr-number-of-breakpoints-for-dr0", "Count the number of breakpoints for DR0." },
64 { "k8-fr-number-of-breakpoints-for-dr1", "Count the number of breakpoints for DR1." },
65 { "k8-fr-number-of-breakpoints-for-dr2", "Count the number of breakpoints for DR2." },
66 { "k8-fr-number-of-breakpoints-for-dr3", "Count the number of breakpoints for DR3." },
67 { "k8-fr-retired-branches", "Count retired branches including exceptions and interrupts." },
68 { "k8-fr-retired-branches-mispredicted", "Count mispredicted retired branches." },
69 { "k8-fr-retired-far-control-transfers", "Count retired far control transfers" },
70 { "k8-fr-retired-fastpath-double-op-instructions", "Count retired fastpath double op instructions." },
71 { "k8-fr-retired-fpu-instructions", "Count retired FPU instructions." },
72 { "k8-fr-retired-near-returns", "Count retired near returns." },
73 { "k8-fr-retired-near-returns-mispredicted", "Count mispredicted near returns." },
74 { "k8-fr-retired-resyncs", "Count retired resyncs" },
75 { "k8-fr-retired-taken-hardware-interrupts", "Count retired taken hardware interrupts."},
76 { "k8-fr-retired-taken-branches", "Count retired taken branches." },
77 { "k8-fr-retired-taken-branches-mispredicted", "Count retired taken branches that were mispredicted." },
78 { "k8-fr-retired-taken-branches-mispredicted-by-addr-miscompare", "Count retired taken branches that were mispredicted only due to an address miscompare." },
79 { "k8-fr-retired-uops", "Count retired uops." },
80 { "k8-fr-retired-x86-instructions", "Count retired x86 instructions including exceptions and interrupts"},
81 { "k8-ic-fetch", "Count instruction cache fetches." },
82 { "k8-ic-instruction-fetch-stall", "Count cycles in stalls due to instruction fetch." },
83 { "k8-ic-l1-itlb-miss-and-l2-itlb-hit", "Count L1 ITLB misses that are L2 ITLB hits." },
84 { "k8-ic-l1-itlb-miss-and-l2-itlb-miss", "Count ITLB misses that miss in both L1 and L2 ITLBs." },
85 { "k8-ic-microarchitectural-resync-by-snoop", "Count microarchitectural resyncs caused by snoops." },
86 { "k8-ic-miss", "Count instruction cache misses." },
87 { "k8-ic-refill-from-l2", "Count instruction cache refills from L2 cache." },
88 { "k8-ic-refill-from-system", "Count instruction cache refills from system memory." },
89 { "k8-ic-return-stack-hits", "Count hits to the return stack." },
90 { "k8-ic-return-stack-overflow", "Count overflows of the return stack." },
91 { "k8-ls-buffer2-full", "Count load/store buffer2 full events." },
92 { "k8-ls-locked-operation", "Count locked operations." },
93 { "k8-ls-microarchitectural-late-cancel", "Count microarchitectural late cancels of operations in the load/store unit" },
94 { "k8-ls-microarchitectural-resync-by-self-modifying-code", "Count microarchitectural resyncs caused by self-modifying code." },
95 { "k8-ls-microarchitectural-resync-by-snoop", "Count microarchitectural resyncs caused by snoops." },
96 { "k8-ls-retired-cflush-instructions", "Count retired CFLUSH instructions." },
97 { "k8-ls-retired-cpuid-instructions", "Count retired CPUID instructions." },
98 { "k8-ls-segment-register-load", "Count segment register loads." },
99 { "k8-nb-memory-controller-bypass-saturation", "Count memory controller bypass counter saturation events." },
100 { "k8-nb-memory-controller-dram-slots-missed", "Count memory controller DRAM command slots missed (in MemClks)." },
101 { "k8-nb-memory-controller-page-access-event", "Count memory controller page access events." },
102 { "k8-nb-memory-controller-page-table-overflow", "Count memory control page table overflow events." },
103 { "k8-nb-probe-result", "Count probe events." },
104 { "k8-nb-sized-commands", "Count sized commands issued." },
105 { "k8-nb-memory-controller-turnaround", "Count memory control turnaround events." },
106 { "k8-nb-ht-bus0-bandwidth", "Count events on the HyperTransport(tm) bus #0" },
107 { "k8-nb-ht-bus1-bandwidth", "Count events on the HyperTransport(tm) bus #1" },
108 { "k8-nb-ht-bus2-bandwidth", "Count events on the HyperTransport(tm) bus #2" },
109 /* Special counters with some masks activated */
110 { "k8-dc-refill-from-l2,mask=+modified,+owner,+exclusive,+shared", "Count data cache refills from L2 cache (in MOES state)." },
111 { "k8-dc-refill-from-l2,mask=+owner,+exclusive,+shared", "Count data cache refills from L2 cache (in OES state)." },
112 { "k8-dc-refill-from-l2,mask=+modified", "Count data cache refills from L2 cache (in M state)." },
113 { "k8-dc-refill-from-system,mask=+modified,+owner,+exclusive,+shared", "Count data cache refills from system memory (in MOES state)." },
114 { "k8-dc-refill-from-system,mask=+owner,+exclusive,+shared", "Count data cache refills from system memory (in OES state)." },
115 { "k8-dc-refill-from-system,mask=+modified", "Count data cache refills from system memory (in M state)." },
116 { "k8-fp-dispatched-fpu-ops,mask=+multiply-pipe-junk-ops", "Count the number of dispatched FPU multiplies." },
117 { "k8-fp-dispatched-fpu-ops,mask=+add-pipe-junk-ops", "Count the number of dispatched FPU adds." },
118 { "k8-fp-dispatched-fpu-ops,mask=+multiply-pipe-junk-ops,+add-pipe-junk-ops", "Count the number of dispatched FPU adds and multiplies." },
119 { NULL, NULL }
120};
121
Native_Event_LabelDescription_t K8Processor_info[]
Definition: map-k8.c:28