Path: blob/master/arch/powerpc/perf/power9-events-list.h
26424 views
/* SPDX-License-Identifier: GPL-2.0-or-later */1/*2* Performance counter support for POWER9 processors.3*4* Copyright 2016 Madhavan Srinivasan, IBM Corporation.5*/67/*8* Power9 event codes.9*/10EVENT(PM_CYC, 0x0001e)11EVENT(PM_ICT_NOSLOT_CYC, 0x100f8)12EVENT(PM_CMPLU_STALL, 0x1e054)13EVENT(PM_INST_CMPL, 0x00002)14EVENT(PM_BR_CMPL, 0x4d05e)15EVENT(PM_BR_MPRED_CMPL, 0x400f6)1617/* All L1 D cache load references counted at finish, gated by reject */18EVENT(PM_LD_REF_L1, 0x100fc)19/* Load Missed L1 */20EVENT(PM_LD_MISS_L1_FIN, 0x2c04e)21EVENT(PM_LD_MISS_L1, 0x3e054)22/* Alternate event code for PM_LD_MISS_L1 */23EVENT(PM_LD_MISS_L1_ALT, 0x400f0)24/* Store Missed L1 */25EVENT(PM_ST_MISS_L1, 0x300f0)26/* L1 cache data prefetches */27EVENT(PM_L1_PREF, 0x20054)28/* Instruction fetches from L1 */29EVENT(PM_INST_FROM_L1, 0x04080)30/* Demand iCache Miss */31EVENT(PM_L1_ICACHE_MISS, 0x200fd)32/* Instruction Demand sectors wriittent into IL1 */33EVENT(PM_L1_DEMAND_WRITE, 0x0408c)34/* Instruction prefetch written into IL1 */35EVENT(PM_IC_PREF_WRITE, 0x0488c)36/* The data cache was reloaded from local core's L3 due to a demand load */37EVENT(PM_DATA_FROM_L3, 0x4c042)38/* Demand LD - L3 Miss (not L2 hit and not L3 hit) */39EVENT(PM_DATA_FROM_L3MISS, 0x300fe)40/* All successful D-side store dispatches for this thread */41EVENT(PM_L2_ST, 0x16880)42/* All successful D-side store dispatches for this thread that were L2 Miss */43EVENT(PM_L2_ST_MISS, 0x26880)44/* Total HW L3 prefetches(Load+store) */45EVENT(PM_L3_PREF_ALL, 0x4e052)46/* Data PTEG reload */47EVENT(PM_DTLB_MISS, 0x300fc)48/* ITLB Reloaded */49EVENT(PM_ITLB_MISS, 0x400fc)50/* Run_Instructions */51EVENT(PM_RUN_INST_CMPL, 0x500fa)52/* Alternate event code for PM_RUN_INST_CMPL */53EVENT(PM_RUN_INST_CMPL_ALT, 0x400fa)54/* Run_cycles */55EVENT(PM_RUN_CYC, 0x600f4)56/* Alternate event code for Run_cycles */57EVENT(PM_RUN_CYC_ALT, 0x200f4)58/* Instruction Dispatched */59EVENT(PM_INST_DISP, 0x200f2)60EVENT(PM_INST_DISP_ALT, 0x300f2)61/* Branch event that are not strongly biased */62EVENT(PM_BR_2PATH, 0x20036)63/* ALternate branch event that are not strongly biased */64EVENT(PM_BR_2PATH_ALT, 0x40036)6566/* Blacklisted events */67EVENT(PM_MRK_ST_DONE_L2, 0x10134)68EVENT(PM_RADIX_PWC_L1_HIT, 0x1f056)69EVENT(PM_FLOP_CMPL, 0x100f4)70EVENT(PM_MRK_NTF_FIN, 0x20112)71EVENT(PM_RADIX_PWC_L2_HIT, 0x2d024)72EVENT(PM_IFETCH_THROTTLE, 0x3405e)73EVENT(PM_MRK_L2_TM_ST_ABORT_SISTER, 0x3e15c)74EVENT(PM_RADIX_PWC_L3_HIT, 0x3f056)75EVENT(PM_RUN_CYC_SMT2_MODE, 0x3006c)76EVENT(PM_TM_TX_PASS_RUN_INST, 0x4e014)77EVENT(PM_DISP_HELD_SYNC_HOLD, 0x4003c)78EVENT(PM_DTLB_MISS_16G, 0x1c058)79EVENT(PM_DERAT_MISS_2M, 0x1c05a)80EVENT(PM_DTLB_MISS_2M, 0x1c05c)81EVENT(PM_MRK_DTLB_MISS_1G, 0x1d15c)82EVENT(PM_DTLB_MISS_4K, 0x2c056)83EVENT(PM_DERAT_MISS_1G, 0x2c05a)84EVENT(PM_MRK_DERAT_MISS_2M, 0x2d152)85EVENT(PM_MRK_DTLB_MISS_4K, 0x2d156)86EVENT(PM_MRK_DTLB_MISS_16G, 0x2d15e)87EVENT(PM_DTLB_MISS_64K, 0x3c056)88EVENT(PM_MRK_DERAT_MISS_1G, 0x3d152)89EVENT(PM_MRK_DTLB_MISS_64K, 0x3d156)90EVENT(PM_DTLB_MISS_16M, 0x4c056)91EVENT(PM_DTLB_MISS_1G, 0x4c05a)92EVENT(PM_MRK_DTLB_MISS_16M, 0x4c15e)9394/*95* Memory Access Events96*97* Primary PMU event used here is PM_MRK_INST_CMPL (0x401e0)98* To enable capturing of memory profiling, these MMCRA bits99* needs to be programmed and corresponding raw event format100* encoding.101*102* MMCRA bits encoding needed are103* SM (Sampling Mode)104* EM (Eligibility for Random Sampling)105* TECE (Threshold Event Counter Event)106* TS (Threshold Start Event)107* TE (Threshold End Event)108*109* Corresponding Raw Encoding bits:110* sample [EM,SM]111* thresh_sel (TECE)112* thresh start (TS)113* thresh end (TE)114*/115EVENT(MEM_LOADS, 0x34340401e0)116EVENT(MEM_STORES, 0x343c0401e0)117118119