# =======================================================================================
#
#      Filename:  perfmon_kabini_events.txt
#
#      Description:  Event list for AMD Kabini
#
#      Version:   4.1
#      Released:  8.8.2016
#
#      Author:   saravanan.ekanathan@amd.com
#      Project:  likwid
#
#      Copyright (C) 2016 RRZE, University Erlangen-Nuremberg
#
#      This program is free software: you can redistribute it and/or modify it under
#      the terms of the GNU General Public License as published by the Free Software
#      Foundation, either version 3 of the License, or (at your option) any later
#      version.
#
#      This program is distributed in the hope that it will be useful, but WITHOUT ANY
#      WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
#      PARTICULAR PURPOSE.  See the GNU General Public License for more details.
#
#      You should have received a copy of the GNU General Public License along with
#      this program.  If not, see <http://www.gnu.org/licenses/>.
#
# =======================================================================================


EVENT_FPU_PIPE_ASSIGNMENT                         0x00    PMC
UMASK_FPU_PIPE_ASSIGNMENT_PIPE_0                  0x01
UMASK_FPU_PIPE_ASSIGNMENT_PIPE_1                  0x02

EVENT_FP_SCHEDULER_EMPTY                          0x01    PMC
UMASK_FP_SCHEDULER_EMPTY                          0x00

EVENT_DISPATCHED_FAST_FPU                         0x02     PMC
UMASK_DISPATCHED_FAST_FPU                         0x00

EVENT_RETIRED_FLOPS                     0x03    PMC
UMASK_RETIRED_FLOPS_DOUBLE_DIV          0x40
UMASK_RETIRED_FLOPS_DOUBLE_MUL          0x20
UMASK_RETIRED_FLOPS_DOUBLE_ADD          0x10
UMASK_RETIRED_FLOPS_DOUBLE_ALL          0x70
UMASK_RETIRED_FLOPS_SINGLE_DIV          0x04
UMASK_RETIRED_FLOPS_SINGLE_MUL          0x02
UMASK_RETIRED_FLOPS_SINGLE_ADD          0x01
UMASK_RETIRED_FLOPS_SINGLE_ALL          0x07

EVENT_RETIRED_SERIALIZING_OPS                       0x05    PMC
UMASK_RETIRED_SERIALIZING_OPS_SSE_BOTTOM            0x00
UMASK_RETIRED_SERIALIZING_OPS_SSE_CONTROL           0x01
UMASK_RETIRED_SERIALIZING_OPS_X87_BOTTOM            0x02
UMASK_RETIRED_SERIALIZING_OPS_X87_CONTROL           0x04

EVENT_RETIRED_X87_FLOPS                             0x11    PMC
UMASK_RETIRED_X87_FLOPS_ADD                         0x00
UMASK_RETIRED_X87_FLOPS_MUL                         0x01
UMASK_RETIRED_X87_FLOPS_DIV                         0x02

EVENT_SEGMENT_REGISTER_LOADS            0x20    PMC
UMASK_SEGMENT_REGISTER_LOADS_ES            0x00
UMASK_SEGMENT_REGISTER_LOADS_CS            0x01
UMASK_SEGMENT_REGISTER_LOADS_SS            0x02
UMASK_SEGMENT_REGISTER_LOADS_DS            0x04
UMASK_SEGMENT_REGISTER_LOADS_FS            0x10
UMASK_SEGMENT_REGISTER_LOADS_GS            0x20
UMASK_SEGMENT_REGISTER_LOADS_HS            0x40

EVENT_PIPELINE_RESTART_SELFMOD_CODE            0x21    PMC
UMASK_PIPELINE_RESTART_SELFMOD_CODE            0x00

EVENT_PIPELINE_RESTART_PROBE_HIT            0x22    PMC
UMASK_PIPELINE_RESTART_PROBE_HIT_INV           0x00
UMASK_PIPELINE_RESTART_PROBE_HIT_FILLS         0x01

EVENT_LOCKED_OPERATION                         0x24    PMC
UMASK_LOCKED_OPERATION_CYCLES_TO_UNLCOK        0x04
UMASK_LOCKED_OPERATION_CYCLES_TO_BUS_LOCK      0x02
UMASK_LOCKED_OPERATION_LOCKED_INSTR                 0x01

EVENT_CLFLUSH_RETIRED            0x26    PMC
UMASK_CLFLUSH_RETIRED            0x00

EVENT_CPUID_RETIRED            0x27    PMC
UMASK_CPUID_RETIRED            0x00

EVENT_LS_DISPATCH            0x29    PMC
UMASK_LS_DISPATCH_LOADS            0x01
UMASK_LS_DISPATCH_STORES            0x02
UMASK_LS_DISPATCH_LOAD_OP_STORES    0x04

EVENT_CANCELED_STORE_FORWARD            0x2A    PMC
UMASK_CANCELED_STORE_FORWARD_ADDR_MISMATCH           0x01
UMASK_CANCELED_STORE_FORWARD_SMALL_STORES            0x02
UMASK_CANCELED_STORE_FORWARD_MISALIGNED_STORES       0x04

EVENT_DATA_CACHE_ACCESSES            0x40    PMC
UMASK_DATA_CACHE_ACCESSES            0x00

EVENT_DATA_CACHE_MISSES          0x41   PMC
UMASK_DATA_CACHE_MISSES          0x00

EVENT_DATA_CACHE_REFILLS            0x42    PMC
UMASK_DATA_CACHE_REFILLS_NONCACHED      0x01
UMASK_DATA_CACHE_REFILLS_SHARED         0x02
UMASK_DATA_CACHE_REFILLS_EXCLUSIVE      0x04
UMASK_DATA_CACHE_REFILLS_OWNED          0x08
UMASK_DATA_CACHE_REFILLS_MODIFIED       0x10
UMASK_DATA_CACHE_REFILLS_ALL            0x1E

EVENT_DATA_CACHE_REFILLS_NB            0x43    PMC
UMASK_DATA_CACHE_REFILLS_NB_NONCACHED      0x01
UMASK_DATA_CACHE_REFILLS_NB_SHARED         0x02
UMASK_DATA_CACHE_REFILLS_NB_EXCLUSIVE      0x04
UMASK_DATA_CACHE_REFILLS_NB_OWNED          0x08
UMASK_DATA_CACHE_REFILLS_NB_MODIFIED       0x10
UMASK_DATA_CACHE_REFILLS_NB_ALL            0x1E

EVENT_DATA_CACHE_EVICTED     0x44   PMC
UMASK_DATA_CACHE_EVICTED_INVALID     0x01
UMASK_DATA_CACHE_EVICTED_SHARED      0x02
UMASK_DATA_CACHE_EVICTED_EXCLUSIVE   0x04
UMASK_DATA_CACHE_EVICTED_OWNED       0x08
UMASK_DATA_CACHE_EVICTED_MODIFIED    0x10
UMASK_DATA_CACHE_EVICTED_ALL     0x1F

EVENT_L2_DTLB_HIT                0x45   PMC
UMASK_L2_DTLB_HIT                0x00
UMASK_L2_DTLB_HIT_ALL            0x01

EVENT_DTLB_MISS                  0x46    PMC
UMASK_DTLB_MISS_STORE_L1         0x01
UMASK_DTLB_MISS_LOAD_L1          0x02
UMASK_DTLB_MISS_STORE_L2         0x04
UMASK_DTLB_MISS_LOAD_L2          0x08
UMASK_DTLB_MISS_ALL              0x0F

EVENT_MISALIGNED_ACCESS       0x47    PMC
UMASK_MISALIGNED_ACCESS_16b       0x01
UMASK_MISALIGNED_ACCESS_4Kb       0x02

EVENT_PREFETCH_INSTR_DISPATCHED       0x4B    PMC
UMASK_PREFETCH_INSTR_DISPATCHED_LOAD      0x01
UMASK_PREFETCH_INSTR_DISPATCHED_STORE     0x02
UMASK_PREFETCH_INSTR_DISPATCHED_NTA       0x04

EVENT_DCACHE_LOCK_MISS           0x4C   PMC
UMASK_DCACHE_LOCK_MISS           0x02

EVENT_DTLB_L1_HIT                 0x4D   PMC
UMASK_DTLB_L1_HIT_4KB             0x01
UMASK_DTLB_L1_HIT_2MB             0x02
UMASK_DTLB_L1_HIT_ANY             0x03

EVENT_INEFFECTIVE_PREFETCHES        0x52    PMC
UMASK_INEFFECTIVE_PREFETCHES_DATA_CACHE     0x01
UMASK_INEFFECTIVE_PREFETCHES_PENDING_FILL   0x02
UMASK_INEFFECTIVE_PREFETCHES_NO_MAB         0x04
UMASK_INEFFECTIVE_PREFETCHES_L2_HIT         0x08

EVENT_GLOBAL_TLB_FLUSH           0x54   PMC
UMASK_GLOBAL_TLB_FLUSH           0x00

EVENT_GLOBAL_READ_BLOCK_OPS           0x62   PMC
UMASK_GLOBAL_READ_BLOCK_OPS_READ      0x01   
UMASK_GLOBAL_READ_BLOCK_OPS_RDBLK_MOD      0x02   
UMASK_GLOBAL_READ_BLOCK_OPS_RDBLK_SHARED      0x04   
UMASK_GLOBAL_READ_BLOCK_OPS_RDBLKSPEC      0x08   
UMASK_GLOBAL_READ_BLOCK_OPS_RDBLKSPEC_MOD      0x10   
UMASK_GLOBAL_READ_BLOCK_OPS_SPEC_SHARED      0x20   

EVENT_MEMORY_REQUESTS        0x65     PMC
UMASK_MEMORY_REQUESTS_UC        0x01
UMASK_MEMORY_REQUESTS_WC        0x02
UMASK_MEMORY_REQUESTS_SS        0x80

EVENT_DATA_PREFETCHER        0x67     PMC
UMASK_DATA_PREFETCHER_ATTEMPTS        0x02
UMASK_DATA_PREFETCHER_HIT_MAB         0x08

#FIXME - Do we need to update mask details
EVENT_MAB_REQ        0x68     PMC
UMASK_MAB_REQ        0x00 

EVENT_MAB_WAIT        0x69     PMC
UMASK_MAB_WAIT        0x00 

EVENT_RESPONSE_ON_CACHE_REFILLS        0x6C     PMC
UMASK_RESPONSE_ON_CACHE_REFILLS_EXCLUSIVE           0x01
UMASK_RESPONSE_ON_CACHE_REFILLS_MODIFIED            0x02
UMASK_RESPONSE_ON_CACHE_REFILLS_SHARED              0x04
UMASK_RESPONSE_ON_CACHE_REFILLS_OWNED               0x08
UMASK_RESPONSE_ON_CACHE_REFILLS_DATA_ERROR          0x10
UMASK_RESPONSE_ON_CACHE_REFILLS_CHANGE_TO_DIRTY     0x20
UMASK_RESPONSE_ON_CACHE_REFILLS_UNCACHEABLE         0x40

EVENT_DATA_WRITTEN                      0x6D     PMC
UMASK_DATA_WRITTEN_LINE_EVICTION        0x01
UMASK_DATA_WRITTEN_INSN_ATTR__EVICTION        0x02
UMASK_DATA_WRITTEN_BYTE_ENABLE_UNCACHEABLE_IO_STORE 0x04
UMASK_DATA_WRITTEN_UNCACHEABLE_IO_STORE 0x08
UMASK_DATA_WRITTEN_BYTE_ENABLE_WRITE_COMBINE_FLUSH 0x10
UMASK_DATA_WRITTEN_WRITE_COMBINE_FLUSH 0x20

EVENT_CACHE_CROSS_INVALIDATES        0x75     PMC
UMASK_CACHE_CROSS_INVALIDATES_DC_IC        0x01
UMASK_CACHE_CROSS_INVALIDATES_DC_DC        0x02
UMASK_CACHE_CROSS_INVALIDATES_IC_IC        0x04
UMASK_CACHE_CROSS_INVALIDATES_IC_DC        0x08
UMASK_CACHE_CROSS_INVALIDATES_IC_HITS_DC        0x10
UMASK_CACHE_CROSS_INVALIDATES_DC_PROBE_REJ_EARLY        0x20
UMASK_CACHE_CROSS_INVALIDATES_DC_PROBE_REJ_LATE        0x40

EVENT_CPU_CLOCKS_UNHALTED        0x76     PMC
UMASK_CPU_CLOCKS_UNHALTED        0x00

EVENT_PDC_MISS                  0x162   PMC
UMASK_PDC_MISS_HOST_PDE                 0x01
UMASK_PDC_MISS_HOST_PDPE                0x02
UMASK_PDC_MISS_HOST_PML4E               0x04
UMASK_PDC_MISS_GUEST_PDE                0x10
UMASK_PDC_MISS_GUEST_PDPE               0x20
UMASK_PDC_MISS_GUEST_PML4E              0x40

EVENT_INSTRUCTION_CACHE_FETCHES        0x080     PMC
UMASK_INSTRUCTION_CACHE_FETCHES         0x00

EVENT_INSTRUCTION_CACHE_MISSES        0x081     PMC
UMASK_INSTRUCTION_CACHE_MISSES         0x00

EVENT_INSTRUCTION_CACHE_L2_REFILLS        0x082     PMC
UMASK_INSTRUCTION_CACHE_L2_REFILLS         0x00

EVENT_INSTRUCTION_CACHE_SYSTEM_REFILLS        0x083     PMC
UMASK_INSTRUCTION_CACHE_SYSTEM_REFILLS         0x00

EVENT_ITLB_L1_MISS_L2_HIT              0x084     PMC
UMASK_ITLB_L1_MISS_L2_HIT              0x00

EVENT_ITLB_L1_MISS_L2_MISS             0x085     PMC
UMASK_ITLB_L1_MISS_L2_MISS_4KB         0x01
UMASK_ITLB_L1_MISS_L2_MISS_2MB         0x02
UMASK_ITLB_L1_MISS_L2_MISS_ANY         0x03

EVENT_INSTRUCTION_FETCH_STALL        0x087     PMC
UMASK_INSTRUCTION_FETCH_STALL         0x00

EVENT_RETURN_STACK_HITS        0x088     PMC
UMASK_RETURN_STACK_HITS         0x00

EVENT_RETURN_STACK_OVERFLOWS        0x089     PMC
UMASK_RETURN_STACK_OVERFLOWS         0x00

EVENT_INSTRUCTION_CACHE_VICTIMS        0x08B     PMC
UMASK_INSTRUCTION_CACHE_VICTIMS         0x00

EVENT_ICACHE_LINES_INVALIDATED    0x8C   PMC
UMASK_ICACHE_LINES_INVALIDATED_LS_PROBE    0x01
UMASK_ICACHE_LINES_INVALIDATED_BU_PROBE      0x02

EVENT_ITLB_RELOADS        0x099     PMC
UMASK_ITLB_RELOADS         0x00

EVENT_ITLB_RELOADS_ABORTED        0x09A     PMC
UMASK_ITLB_RELOADS_ABORTED         0x00

EVENT_RETIRED_INDIR_BRANCH    0x19A   PMC
UMASK_RETIRED_INDIR_BRANCH    0x01
UMASK_RETIRED_INDIR_MISPRED_BRANCH    0x02

EVENT_RETIRED_INSTRUCTIONS        0x0C0     PMC
UMASK_RETIRED_INSTRUCTIONS         0x00

EVENT_RETIRED_UOPS        0x0C1     PMC
UMASK_RETIRED_UOPS         0x00

EVENT_RETIRED_BRANCH_INSTR        0x0C2     PMC
UMASK_RETIRED_BRANCH_INSTR         0x00

EVENT_RETIRED_MISPREDICTED_BRANCH_INSTR        0x0C3     PMC
UMASK_RETIRED_MISPREDICTED_BRANCH_INSTR         0x00

EVENT_RETIRED_TAKEN_BRANCH_INSTR        0x0C4     PMC
UMASK_RETIRED_TAKEN_BRANCH_INSTR         0x00

EVENT_RETIRED_TAKEN_MISPREDICTED_BRANCH_INSTR        0x0C5     PMC
UMASK_RETIRED_TAKEN_MISPREDICTED_BRANCH_INSTR         0x00

EVENT_RETIRED_FAR_CONTROL_TRANSFERS        0x0C6     PMC
UMASK_RETIRED_FAR_CONTROL_TRANSFERS         0x00

EVENT_RETIRED_BRANCH_RESYNCS        0x0C7     PMC
UMASK_RETIRED_BRANCH_RESYNCS         0x00

EVENT_RETIRED_NEAR_RETURNS        0x0C8     PMC
UMASK_RETIRED_NEAR_RETURNS         0x00

EVENT_RETIRED_NEAR_RETURNS_MISPRED        0x0C9     PMC
UMASK_RETIRED_NEAR_RETURNS_MISPRED         0x00

EVENT_RETIRED_INDIRECT_BRANCHES_MISPRED    0x0CA     PMC
UMASK_RETIRED_INDIRECT_BRANCHES_MISPRED         0x00

EVENT_RETIRED_FP_INSTRUCTIONS    0x0CB     PMC
UMASK_RETIRED_FP_INSTRUCTIONS_X87_MMX         0x01
UMASK_RETIRED_FP_INSTRUCTIONS_SSE         0x02
UMASK_RETIRED_FP_INSTRUCTIONS_ALL         0x03

EVENT_INTERRUPTS_MASKED_CYCLES    0x0CD     PMC
UMASK_INTERRUPTS_MASKED_CYCLES         0x00

EVENT_INTERRUPTS_MASKED_CYCLES_INTERRUPTS_PENDING    0x0CE     PMC
UMASK_INTERRUPTS_MASKED_CYCLES_INTERRUPTS_         0x00

EVENT_INTERRUPTS_TAKEN    0x0CF     PMC
UMASK_INTERRUPTS_TAKEN         0x00

EVENT_FPU_EXCEPTION    0x0DB     PMC
UMASK_FPU_EXCEPTION_X87_MICROFAULTS     0x01
UMASK_FPU_EXCEPTION_SSE_RETYPE__MICROFAULTS      0x02
UMASK_FPU_EXCEPTION_SSE_RECLASS_MICROFAULTS      0x04
UMASK_FPU_EXCEPTION_SSE_X87_MICROTRAPS           0x08
UMASK_FPU_EXCEPTION_ALL                          0x0F

EVENT_IBS_OPS                      0x1CF         PMC
UMASK_IBS_OPS                      0x0

EVENT_IBS_RETIRED_OPS              0x1D0         PMC
UMASK_IBS_RETIRED_OPS              0x0

EVENT_UNC_MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION    0x0E4     UPMC
UMASK_UNC_MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION_MEM_HIGH         0x01
UMASK_UNC_MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION_MEM_MED          0x02
UMASK_UNC_MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION__DCQ         0x04
UMASK_UNC_MEMORY_CONTROLLER_BYPASS_COUNTER_SATURATION_DCQ_SATURATED         0x20

EVENT_UNC_THERMAL_STATUS    0x0E8     UPMC
UMASK_UNC_THERMAL_STATUS_HTC_TRIP_POINT_CROSSED  0x04
UMASK_UNC_THERMAL_STATUS_HTCP_INACTIVE           0x20
UMASK_UNC_THERMAL_STATUS_HTCP_ACTIVE             0x40

EVENT_UNC_CPU_REQUEST_TO_MEMORY    0x0E9     UPMC
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_LOCAL_CPU_MEM          0xA8
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_LOCAL_CPU_IO           0xA4
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_LOCAL_IO_MEM           0xA2
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_LOCAL_IO_IO            0xA1
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_REMOTE_CPU_MEM         0x98
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_REMOTE_CPU_IO          0x94
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_REMOTE_IO_MEM          0x92
UMASK_UNC_CPU_REQUEST_TO_MEMORY_LOCAL_REMOTE_IO_IO           0x91
UMASK_UNC_CPU_REQUEST_TO_MEMORY_REMOTE_LOCAL_CPU_IO          0x64
UMASK_UNC_CPU_REQUEST_TO_MEMORY_REMOTE_LOCAL_IO_IO           0x61

EVENT_UNC_CACHE_BLOCK_COMMANDS                             0x0EA     UPMC
UMASK_UNC_CACHE_BLOCK_COMMANDS_VICTIM_BLOCK                0x01
UMASK_UNC_CACHE_BLOCK_COMMANDS_READ_BLOCK                  0x04
UMASK_UNC_CACHE_BLOCK_COMMANDS_READ_BLOCK_SHARED           0x08
UMASK_UNC_CACHE_BLOCK_COMMANDS_READ_BLOCK_MODIFIED         0x10
UMASK_UNC_CACHE_BLOCK_COMMANDS_CHANGE_TO_DIRTY             0x20

EVENT_UNC_SIZED_COMMANDS    0x0EB     UPMC
UMASK_UNC_SIZED_COMMANDS_NP_WR_BYTE    0x01
UMASK_UNC_SIZED_COMMANDS_NP_WR_DW      0x02
UMASK_UNC_SIZED_COMMANDS_P_WR_BYTE     0x04
UMASK_UNC_SIZED_COMMANDS_P_WR_DW       0x08
UMASK_UNC_SIZED_COMMANDS_RE_BYTE       0x10
UMASK_UNC_SIZED_COMMANDS_RE_DW         0x20

EVENT_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS                           0x0EC     UPMC
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_PROBE_MISS                      0x01
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_PROBE_HIT_CLEAN                 0x02
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_PROBE_HIT_DIRTY_WITHOUT_CANCEL  0x04
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_PROBE_HIT_DIRTY_WITH_CANCEL     0x08
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_UPSTREAM_DISPLAY_READS          0x10
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_UPSTREAM_NON_DISPLAY_READS      0x20
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_UPSTREAM_ISOC_WRITED            0x40
UMASK_UNC_PROBE_RESPONSES_UPSTREAM_REQUESTS_UPSTREAM_NON_ISOC_WRITES        0x80

EVENT_UNC_CPU_TO_DRAM             0x1E0     UPMC
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_0  0x01
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_1  0x02
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_2  0x04
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_3  0x08
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_4  0x10
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_5  0x20
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_6  0x40
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_7  0x80
UMASK_UNC_CPU_TO_DRAM_LOCAL_TO_ALL  0xFF

EVENT_UNC_IO_TO_DRAM    0x1E1     UPMC
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_0  0x01
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_1  0x02
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_2  0x04
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_3  0x08
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_4  0x10
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_5  0x20
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_6  0x40
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_7  0x80
UMASK_UNC_IO_TO_DRAM_LOCAL_TO_ALL  0xFF

EVENT_UNC_CPU_READ_CMD_LATENCY_A    0x1E2     UPMC
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_TO_0          0x11
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_MOD_TO_0      0x12
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_SHARED_TO_0   0x14
UMASK_UNC_CPU_READ_CMD_LATENCY_A_DIRTY_TO_0         0x18
UMASK_UNC_CPU_READ_CMD_LATENCY_A_ALL_TO_0           0x1F
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_TO_1          0x21
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_MOD_TO_1      0x22
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_SHARED_TO_1   0x24
UMASK_UNC_CPU_READ_CMD_LATENCY_A_DIRTY_TO_1         0x28
UMASK_UNC_CPU_READ_CMD_LATENCY_A_ALL_TO_1           0x2F
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_TO_2          0x41
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_MOD_TO_2      0x42
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_SHARED_TO_2   0x44
UMASK_UNC_CPU_READ_CMD_LATENCY_A_DIRTY_TO_2         0x48
UMASK_UNC_CPU_READ_CMD_LATENCY_A_ALL_TO_3           0x4F
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_TO_3          0x81
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_MOD_TO_3      0x82
UMASK_UNC_CPU_READ_CMD_LATENCY_A_READ_SHARED_TO_3   0x84
UMASK_UNC_CPU_READ_CMD_LATENCY_A_DIRTY_TO_3         0x88
UMASK_UNC_CPU_READ_CMD_LATENCY_A_ALL_TO_3           0x8F

EVENT_UNC_CPU_READ_CMD_REQUESTS_A    0x1E3     UPMC
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_TO_0          0x11
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_MOD_TO_0      0x12
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_SHARED_TO_0   0x14
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_DIRTY_TO_0         0x18
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_ALL_TO_0           0x1F
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_TO_1          0x21
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_MOD_TO_1      0x22
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_SHARED_TO_1   0x24
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_DIRTY_TO_1         0x28
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_ALL_TO_1           0x2F
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_TO_2          0x41
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_MOD_TO_2      0x42
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_SHARED_TO_2   0x44
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_DIRTY_TO_2         0x48
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_ALL_TO_2           0x4F
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_TO_3          0x81
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_MOD_TO_3      0x82
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_READ_SHARED_TO_3   0x84
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_DIRTY_TO_3         0x88
UMASK_UNC_CPU_READ_CMD_REQUESTS_A_ALL_TO_3           0x8F

EVENT_UNC_CPU_READ_CMD_LATENCY_B    0x1E4     UPMC
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_TO_4          0x11
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_MOD_TO_4      0x12
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_SHARED_TO_4   0x14
UMASK_UNC_CPU_READ_CMD_LATENCY_B_DIRTY_TO_4         0x18
UMASK_UNC_CPU_READ_CMD_LATENCY_B_ALL_TO_4           0x1F
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_TO_5          0x21
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_MOD_TO_5      0x22
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_SHARED_TO_5   0x24
UMASK_UNC_CPU_READ_CMD_LATENCY_B_DIRTY_TO_5         0x28
UMASK_UNC_CPU_READ_CMD_LATENCY_B_ALL_TO_5           0x2F
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_TO_6          0x41
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_MOD_TO_6      0x42
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_SHARED_TO_6   0x44
UMASK_UNC_CPU_READ_CMD_LATENCY_B_DIRTY_TO_6         0x48
UMASK_UNC_CPU_READ_CMD_LATENCY_B_ALL_TO_6           0x4F
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_TO_7          0x81
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_MOD_TO_7      0x82
UMASK_UNC_CPU_READ_CMD_LATENCY_B_READ_SHARED_TO_7   0x84
UMASK_UNC_CPU_READ_CMD_LATENCY_B_DIRTY_TO_7         0x88
UMASK_UNC_CPU_READ_CMD_LATENCY_B_ALL_TO_7           0x8F

EVENT_UNC_CPU_READ_CMD_REQUESTS_B    0x1E5     UPMC
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_TO_4          0x11
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_MOD_TO_4      0x12
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_SHARED_TO_4   0x14
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_DIRTY_TO_4         0x18
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_ALL_TO_4           0x1F
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_TO_5          0x21
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_MOD_TO_5      0x22
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_SHARED_TO_5   0x24
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_DIRTY_TO_5         0x28
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_ALL_TO_5           0x2F
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_TO_6          0x41
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_MOD_TO_6      0x42
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_SHARED_TO_6   0x44
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_DIRTY_TO_6         0x48
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_ALL_TO_6           0x4F
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_TO_7          0x81
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_MOD_TO_7      0x82
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_READ_SHARED_TO_7   0x84
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_DIRTY_TO_7         0x88
UMASK_UNC_CPU_READ_CMD_REQUESTS_B_ALL_TO_7           0x8F

EVENT_UNC_CPU_CMD_LATENCY                0x1E6     UPMC
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_0      0x11
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_0     0x12
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_0    0x14
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_0       0x17
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_4      0x19
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_4     0x1A
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_4    0x1C
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_4       0x1F
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_1      0x21
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_1     0x22
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_1    0x24
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_1       0x27
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_5      0x29
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_5     0x2A
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_5    0x2C
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_5       0x2F
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_2      0x41
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_2     0x42
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_2    0x44
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_2       0x47
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_6      0x49
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_6     0x4A
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_6    0x4C
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_6       0x4F
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_3      0x81
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_3     0x82
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_3    0x84
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_3       0x87
UMASK_UNC_CPU_CMD_LATENCY_READ_TO_7      0x89
UMASK_UNC_CPU_CMD_LATENCY_WRITE_TO_7     0x8A
UMASK_UNC_CPU_CMD_LATENCY_VICTIM_TO_7    0x8C
UMASK_UNC_CPU_CMD_LATENCY_ALL_TO_7       0x8F

EVENT_UNC_CPU_CMD_REQUESTS               0x1E7     UPMC
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_0      0x11
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_0     0x12
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_0    0x14
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_0       0x17
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_4      0x19
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_4     0x1A
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_4    0x1C
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_4       0x1F
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_1      0x21
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_1     0x22
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_1    0x24
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_1       0x27
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_5      0x29
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_5     0x2A
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_5    0x2C
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_5       0x2F
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_2      0x41
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_2     0x42
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_2    0x44
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_2       0x47
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_6      0x49
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_6     0x4A
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_6    0x4C
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_6       0x4F
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_3      0x81
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_3     0x82
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_3    0x84
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_3       0x87
UMASK_UNC_CPU_CMD_REQUESTS_READ_TO_7      0x89
UMASK_UNC_CPU_CMD_REQUESTS_WRITE_TO_7     0x8A
UMASK_UNC_CPU_CMD_REQUESTS_VICTIM_TO_7    0x8C
UMASK_UNC_CPU_CMD_REQUESTS_ALL_TO_7       0x8F

EVENT_REQ_CACHE_STATUS                  0x1EB            UPMC
UMASK_EVENT_REQ_CACHE_STATUS_HIT_S      0x01
UMASK_EVENT_REQ_CACHE_STATUS_HIT_E      0x02
UMASK_EVENT_REQ_CACHE_STATUS_HIT_MUW_O  0x04
UMASK_EVENT_REQ_CACHE_STATUS_HIT_M      0x08
UMASK_EVENT_REQ_CACHE_STATUS_HIT_MISS   0x10
UMASK_EVENT_REQ_CACHE_STATUS_HIT_DIRECT_PROBE           0x20
UMASK_EVENT_REQ_CACHE_STATUS_HIT_TRACK_CHGTODIRTY       0x40
UMASK_EVENT_REQ_CACHE_STATUS_HIT_TRACK_RDBLKM          0x80

EVENT_UNC_MEMORY_CONTROLLER_REQUESTS                  0x1F0     UPMC
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_WRITE_REQ_DCT     0x01
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_READ_REQ_DCT      0x02
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_PREFETCH_REQ_DCT  0x04
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_32_SIZED_WRITES   0x08
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_64_SIZED_WRITES   0x10
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_32_SIZED_READS    0x20
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_64_SIZED_READS    0x40
UMASK_UNC_MEMORY_CONTROLLER_REQUESTS_READ_WHILE_WRITE  0x80

EVENT_UNC_DRAM_ACCESS                                 0x3EC     UPMC
UMASK_UNC_DRAM_ACCESS_DCT0_PAGE_HIT                   0x01
UMASK_UNC_DRAM_ACCESS_DCT0_PAGE_MISS                  0x02
UMASK_UNC_DRAM_ACCESS_DCT0_PAGE_CONFLICT              0x04
UMASK_UNC_DRAM_ACCESSES_DCT0_ALL                      0x07
UMASK_UNC_DRAM_ACCESS_DCT1_PAGE_HIT                   0x08
UMASK_UNC_DRAM_ACCESS_DCT2_PAGE_MISS                  0x10
UMASK_UNC_DRAM_ACCESS_DCT3_PAGE_CONFLICT              0x20
UMASK_UNC_DRAM_ACCESSES_DCT1_ALL                0x38

EVENT_UNC_DRAM_CONTROLLER_PAGE_TABLE_OVERFLOW         0x3ED     UPMC
UMASK_UNC_DRAM_CONTROLLER_PAGE_TABLE_OVERFLOW_DCT0    0x1
UMASK_UNC_DRAM_CONTROLLER_PAGE_TABLE_OVERFLOW_DCT1    0x2

EVENT_MEMORY_CONTROLLER_DRAM_CMD_SLOTS_MISSED        0x3EE      UPMC
UMASK_MEMORY_CONTROLLER_DRAM_CMD_SLOTS_MISSED_DCT0   0x1
UMASK_MEMORY_CONTROLLER_DRAM_CMD_SLOTS_MISSED_DCT1   0x2

EVENT_MEMORY_CONTROLLER_TURNAROUNDS                 0x3EF       UPMC
UMASK_MEMORY_CONTROLLER_TURNAROUNDS_DCT0_DIMM       0x01
UMASK_MEMORY_CONTROLLER_TURNAROUNDS_DCT0_READ_TO_WRITE  0x02
UMASK_MEMORY_CONTROLLER_TURNAROUNDS_DCT0_WRITE_TO_READ  0x04
UMASK_MEMORY_CONTROLLER_TURNAROUNDS_DCT1_DIMM           0x08
UMASK_MEMORY_CONTROLLER_TURNAROUNDS_DCT1_READ_TO_WRITE  0x10
UMASK_MEMORY_CONTROLLER_TURNAROUNDS_DCT1_WRITE_TO_READ  0x20


