|
PAPI
5.0.1.0
|
00001 /****************************/ 00002 /* THIS IS OPEN SOURCE CODE */ 00003 /****************************/ 00004 00005 /* 00006 * File: map-p4.c 00007 * Author: Harald Servat 00008 * redcrash@gmail.com 00009 */ 00010 00011 #include "freebsd.h" 00012 #include "papiStdEventDefs.h" 00013 #include "map.h" 00014 00015 00016 /**************************************************************************** 00017 P4 SUBSTRATE 00018 P4 SUBSTRATE 00019 P4 SUBSTRATE (aka Pentium IV) 00020 P4 SUBSTRATE 00021 P4 SUBSTRATE 00022 ****************************************************************************/ 00023 00024 /* 00025 NativeEvent_Value_P4Processor must match P4Processor_info 00026 */ 00027 00028 Native_Event_LabelDescription_t P4Processor_info[] = 00029 { 00030 { "p4-128bit-mmx-uop", "Count integer SIMD SSE2 instructions that operate on 128 bit SIMD operands." }, 00031 { "p4-64bit-mmx-uop", "Count MMX instructions that operate on 64 bit SIMD operands." }, 00032 { "p4-b2b-cycles", "Count back-to-back bys cycles." }, 00033 { "p4-bnr", "Count bus-not-ready conditions." }, 00034 { "p4-bpu-fetch-request", "Count instruction fetch requests." }, 00035 { "p4-branch-retired", "Counts retired branches." }, 00036 { "p4-bsq-active-entries", "Count the number of entries (clipped at 15) currently active in the BSQ." }, 00037 { "p4-bsq-allocation", "Count allocations in the bus sequence unit." }, 00038 { "p4-bsq-cache-reference", "Count cache references as seen by the bus unit." }, 00039 { "p4-execution-event", "Count the retirement uops through the execution mechanism." }, 00040 { "p4-front-end-event", "Count the retirement uops through the frontend mechanism." }, 00041 { "p4-fsb-data-activity", "Count each DBSY or DRDY event." }, 00042 { "p4-global-power-events", "Count cycles during which the processor is not stopped." }, 00043 { "p4-instr-retired", "Count all kind of instructions retired during a clock cycle." }, 00044 { "p4-ioq-active-entries", "Count the number of entries (clipped at 15) in the IOQ that are active." }, 00045 { "p4-ioq-allocation", "Count various types of transactions on the bus." }, 00046 { "p4-itlb-reference", "Count translations using the intruction translation look-aside buffer." }, 00047 { "p4-load-port-replay", "Count replayed events at the load port." }, 00048 { "p4-mispred-branch-retired", "Count mispredicted IA-32 branch instructions." }, 00049 { "p4-machine-clear", "Count the number of pipeline clears seen by the processor." }, 00050 { "p4-memory-cancel", " Count the cancelling of various kinds of requests in the data cache address control unit of the CPU." }, 00051 { "p4-memory-complete", "Count the completion of load split, store split, uncacheable split and uncacheable load operations." }, 00052 { "p4-mob-load-replay", "Count load replays triggered by the memory order buffer." }, 00053 { "p4-packed-dp-uop", "Count packed double-precision uops." }, 00054 { "p4-packed-sp-uop", "Count packed single-precision uops." }, 00055 { "p4-page-walk-type", "Count page walks performed by the page miss handler." }, 00056 { "p4-replay-event", "Count the retirement of tagged uops" }, 00057 { "p4-resource-stall", "Count the occurrence or latency of stalls in the allocator." }, 00058 { "p4-response", "Count different types of responses." }, 00059 { "p4-retired-branch-type", "Count branches retired." }, 00060 { "p4-retired-mispred-branch-type", "Count mispredicted branches retired." }, 00061 { "p4-scalar-dp-uop", "Count the number of scalar double-precision uops." }, 00062 { "p4-scalar-sp-uop", "Count the number of scalar single-precision uops." }, 00063 { "p4-snoop", "Count snoop traffic." }, 00064 { "p4-sse-input-assist", "Count the number of times an assist is required to handle problems with the operands for SSE and SSE2 operations." }, 00065 { "p4-store-port-replay", "Count events replayed at the store port." }, 00066 { "p4-tc-deliver-mode", "Count the duration in cycles of operating modes of the trace cache and decode engine." }, 00067 { "p4-tc-ms-xfer", "Count the number of times uop delivery changed from the trace cache to MS ROM." }, 00068 { "p4-uop-queue-writes", "Count the number of valid uops written to the uop queue." }, 00069 { "p4-uop-type", "This event is used in conjunction with the front-end at-retirement mechanism to tag load and store uops." }, 00070 { "p4-uops-retired", "Count uops retired during a clock cycle." }, 00071 { "p4-wc-buffer", "Count write-combining buffer operations." }, 00072 { "p4-x87-assist", "Count the retirement of x87 instructions that required special handling." }, 00073 { "p4-x87-fp-uop", "Count x87 floating-point uops." }, 00074 { "p4-x87-simd-moves-uop", "Count each x87 FPU, MMX, SSE, or SSE2 uops that load data or store data or perform register-to-register moves." }, 00075 /* counters with some modifiers */ 00076 { "p4-uop-queue-writes,mask=+from-tc-build,+from-tc-deliver", "Count the number of valid uops written to the uop queue." }, 00077 { "p4-page-walk-type,mask=+dtmiss", "Count data page walks performed by the page miss handler." }, 00078 { "p4-page-walk-type,mask=+itmiss", "Count instruction page walks performed by the page miss handler." }, 00079 { "p4-instr-retired,mask=+nbogusntag,+nbogustag", "Count all non-bogus instructions retired during a clock cycle." }, 00080 { "p4-branch-retired,mask=+mmnp,+mmnm", "Count branches not-taken." }, 00081 { "p4-branch-retired,mask=+mmtm,+mmtp", "Count branches taken." }, 00082 { "p4-branch-retired,mask=+mmnp,+mmtp", "Count branches predicted." }, 00083 { "p4-branch-retired,mask=+mmnm,+mmtm", "Count branches mis-predicted." }, 00084 { "p4-bsq-cache-reference,mask=+rd-2ndl-miss", "Count 2nd level cache misses." }, 00085 { "p4-bsq-cache-reference,mask=+rd-2ndl-miss,+rd-2ndl-hits,+rd-2ndl-hite,+rd-2ndl-hitm", "Count 2nd level cache accesses." }, 00086 { "p4-bsq-cache-reference,mask=+rd-2ndl-hits,+rd-2ndl-hite,+rd-2ndl-hitm", "Count 2nd level cache hits." }, 00087 { "p4-bsq-cache-reference,mask=+rd-3rdl-miss", "Count 3rd level cache misses." }, 00088 { "p4-bsq-cache-reference,mask=+rd-3rdl-miss,+rd-3rdl-hits,+rd-3rdl-hite,+rd-3rdl-hitm", "Count 3rd level cache accesses." }, 00089 { "p4-bsq-cache-reference,mask=+rd-3rdl-hits,+rd-3rdl-hite,+rd-3rdl-hitm", "Count 3rd level cache hits." }, 00090 { NULL, NULL } 00091 }; 00092