17ec681f3Smrg/* 27ec681f3Smrg * Copyright (C) 2018 Jonathan Marek <jonathan@marek.ca> 37ec681f3Smrg * 47ec681f3Smrg * Permission is hereby granted, free of charge, to any person obtaining a 57ec681f3Smrg * copy of this software and associated documentation files (the "Software"), 67ec681f3Smrg * to deal in the Software without restriction, including without limitation 77ec681f3Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 87ec681f3Smrg * and/or sell copies of the Software, and to permit persons to whom the 97ec681f3Smrg * Software is furnished to do so, subject to the following conditions: 107ec681f3Smrg * 117ec681f3Smrg * The above copyright notice and this permission notice (including the next 127ec681f3Smrg * paragraph) shall be included in all copies or substantial portions of the 137ec681f3Smrg * Software. 147ec681f3Smrg * 157ec681f3Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 167ec681f3Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 177ec681f3Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 187ec681f3Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 197ec681f3Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 207ec681f3Smrg * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 217ec681f3Smrg * SOFTWARE. 227ec681f3Smrg * 237ec681f3Smrg * Authors: 247ec681f3Smrg * Jonathan Marek <jonathan@marek.ca> 257ec681f3Smrg * Rob Clark <robclark@freedesktop.org> 267ec681f3Smrg */ 277ec681f3Smrg 287ec681f3Smrg#include "util/half_float.h" 297ec681f3Smrg#include "util/u_math.h" 307ec681f3Smrg#include "adreno_common.xml.h" 317ec681f3Smrg#include "adreno_pm4.xml.h" 327ec681f3Smrg#include "a2xx.xml.h" 337ec681f3Smrg 347ec681f3Smrg#define REG(_x) REG_A2XX_ ## _x 357ec681f3Smrg#include "freedreno_perfcntr.h" 367ec681f3Smrg 377ec681f3Smrgstatic const struct fd_perfcntr_countable pa_su_countables[] = { 387ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REQ, UINT64, AVERAGE), 397ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_FIRST_VECTOR, UINT64, AVERAGE), 407ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_SECOND_VECTOR, UINT64, AVERAGE), 417ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_FIRST_DEAD, UINT64, AVERAGE), 427ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_SECOND_DEAD, UINT64, AVERAGE), 437ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_VTX_KILL_DISCARD, UINT64, AVERAGE), 447ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_VTX_NAN_DISCARD, UINT64, AVERAGE), 457ec681f3Smrg COUNTABLE(PERF_PAPC_PA_INPUT_PRIM, UINT64, AVERAGE), 467ec681f3Smrg COUNTABLE(PERF_PAPC_PA_INPUT_NULL_PRIM, UINT64, AVERAGE), 477ec681f3Smrg COUNTABLE(PERF_PAPC_PA_INPUT_EVENT_FLAG, UINT64, AVERAGE), 487ec681f3Smrg COUNTABLE(PERF_PAPC_PA_INPUT_FIRST_PRIM_SLOT, UINT64, AVERAGE), 497ec681f3Smrg COUNTABLE(PERF_PAPC_PA_INPUT_END_OF_PACKET, UINT64, AVERAGE), 507ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CULL_PRIM, UINT64, AVERAGE), 517ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_VV_CULL_PRIM, UINT64, AVERAGE), 527ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_VTX_KILL_CULL_PRIM, UINT64, AVERAGE), 537ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_VTX_NAN_CULL_PRIM, UINT64, AVERAGE), 547ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CULL_TO_NULL_PRIM, UINT64, AVERAGE), 557ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_VV_CLIP_PRIM, UINT64, AVERAGE), 567ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_POINT_CLIP_CANDIDATE, UINT64, AVERAGE), 577ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_CNT_1, UINT64, AVERAGE), 587ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_CNT_2, UINT64, AVERAGE), 597ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_CNT_3, UINT64, AVERAGE), 607ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_CNT_4, UINT64, AVERAGE), 617ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_CNT_5, UINT64, AVERAGE), 627ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_CNT_6, UINT64, AVERAGE), 637ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_NEAR, UINT64, AVERAGE), 647ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_FAR, UINT64, AVERAGE), 657ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_LEFT, UINT64, AVERAGE), 667ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_RIGHT, UINT64, AVERAGE), 677ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_TOP, UINT64, AVERAGE), 687ec681f3Smrg COUNTABLE(PERF_PAPC_CLPR_CLIP_PLANE_BOTTOM, UINT64, AVERAGE), 697ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_NULL_PRIM, UINT64, AVERAGE), 707ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_TOTALLY_VISIBLE_PRIM, UINT64, AVERAGE), 717ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_CLIP_PRIM, UINT64, AVERAGE), 727ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_CULL_TO_NULL_PRIM, UINT64, AVERAGE), 737ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_OUT_PRIM_CNT_1, UINT64, AVERAGE), 747ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_OUT_PRIM_CNT_2, UINT64, AVERAGE), 757ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_OUT_PRIM_CNT_3, UINT64, AVERAGE), 767ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_OUT_PRIM_CNT_4, UINT64, AVERAGE), 777ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_OUT_PRIM_CNT_5, UINT64, AVERAGE), 787ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_OUT_PRIM_CNT_6_7, UINT64, AVERAGE), 797ec681f3Smrg COUNTABLE(PERF_PAPC_CLSM_NON_TRIVIAL_CULL, UINT64, AVERAGE), 807ec681f3Smrg COUNTABLE(PERF_PAPC_SU_INPUT_PRIM, UINT64, AVERAGE), 817ec681f3Smrg COUNTABLE(PERF_PAPC_SU_INPUT_CLIP_PRIM, UINT64, AVERAGE), 827ec681f3Smrg COUNTABLE(PERF_PAPC_SU_INPUT_NULL_PRIM, UINT64, AVERAGE), 837ec681f3Smrg COUNTABLE(PERF_PAPC_SU_ZERO_AREA_CULL_PRIM, UINT64, AVERAGE), 847ec681f3Smrg COUNTABLE(PERF_PAPC_SU_BACK_FACE_CULL_PRIM, UINT64, AVERAGE), 857ec681f3Smrg COUNTABLE(PERF_PAPC_SU_FRONT_FACE_CULL_PRIM, UINT64, AVERAGE), 867ec681f3Smrg COUNTABLE(PERF_PAPC_SU_POLYMODE_FACE_CULL, UINT64, AVERAGE), 877ec681f3Smrg COUNTABLE(PERF_PAPC_SU_POLYMODE_BACK_CULL, UINT64, AVERAGE), 887ec681f3Smrg COUNTABLE(PERF_PAPC_SU_POLYMODE_FRONT_CULL, UINT64, AVERAGE), 897ec681f3Smrg COUNTABLE(PERF_PAPC_SU_POLYMODE_INVALID_FILL, UINT64, AVERAGE), 907ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_PRIM, UINT64, AVERAGE), 917ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_CLIP_PRIM, UINT64, AVERAGE), 927ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_NULL_PRIM, UINT64, AVERAGE), 937ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_EVENT_FLAG, UINT64, AVERAGE), 947ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_FIRST_PRIM_SLOT, UINT64, AVERAGE), 957ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_END_OF_PACKET, UINT64, AVERAGE), 967ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_POLYMODE_FACE, UINT64, AVERAGE), 977ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_POLYMODE_BACK, UINT64, AVERAGE), 987ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUTPUT_POLYMODE_FRONT, UINT64, AVERAGE), 997ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUT_CLIP_POLYMODE_FACE, UINT64, AVERAGE), 1007ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUT_CLIP_POLYMODE_BACK, UINT64, AVERAGE), 1017ec681f3Smrg COUNTABLE(PERF_PAPC_SU_OUT_CLIP_POLYMODE_FRONT, UINT64, AVERAGE), 1027ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REQ_IDLE, UINT64, AVERAGE), 1037ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REQ_BUSY, UINT64, AVERAGE), 1047ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REQ_STALLED, UINT64, AVERAGE), 1057ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REC_IDLE, UINT64, AVERAGE), 1067ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REC_BUSY, UINT64, AVERAGE), 1077ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REC_STARVED_SX, UINT64, AVERAGE), 1087ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REC_STALLED, UINT64, AVERAGE), 1097ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REC_STALLED_POS_MEM, UINT64, AVERAGE), 1107ec681f3Smrg COUNTABLE(PERF_PAPC_PASX_REC_STALLED_CCGSM_IN, UINT64, AVERAGE), 1117ec681f3Smrg COUNTABLE(PERF_PAPC_CCGSM_IDLE, UINT64, AVERAGE), 1127ec681f3Smrg COUNTABLE(PERF_PAPC_CCGSM_BUSY, UINT64, AVERAGE), 1137ec681f3Smrg COUNTABLE(PERF_PAPC_CCGSM_STALLED, UINT64, AVERAGE), 1147ec681f3Smrg COUNTABLE(PERF_PAPC_CLPRIM_IDLE, UINT64, AVERAGE), 1157ec681f3Smrg COUNTABLE(PERF_PAPC_CLPRIM_BUSY, UINT64, AVERAGE), 1167ec681f3Smrg COUNTABLE(PERF_PAPC_CLPRIM_STALLED, UINT64, AVERAGE), 1177ec681f3Smrg COUNTABLE(PERF_PAPC_CLPRIM_STARVED_CCGSM, UINT64, AVERAGE), 1187ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_IDLE, UINT64, AVERAGE), 1197ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_BUSY, UINT64, AVERAGE), 1207ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_WAIT_CLIP_VERT_ENGH, UINT64, AVERAGE), 1217ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_WAIT_HIGH_PRI_SEQ, UINT64, AVERAGE), 1227ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_WAIT_CLIPGA, UINT64, AVERAGE), 1237ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_WAIT_AVAIL_VTE_CLIP, UINT64, AVERAGE), 1247ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPSM_WAIT_CLIP_OUTSM, UINT64, AVERAGE), 1257ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPGA_IDLE, UINT64, AVERAGE), 1267ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPGA_BUSY, UINT64, AVERAGE), 1277ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPGA_STARVED_VTE_CLIP, UINT64, AVERAGE), 1287ec681f3Smrg COUNTABLE(PERF_PAPC_CLIPGA_STALLED, UINT64, AVERAGE), 1297ec681f3Smrg COUNTABLE(PERF_PAPC_CLIP_IDLE, UINT64, AVERAGE), 1307ec681f3Smrg COUNTABLE(PERF_PAPC_CLIP_BUSY, UINT64, AVERAGE), 1317ec681f3Smrg COUNTABLE(PERF_PAPC_SU_IDLE, UINT64, AVERAGE), 1327ec681f3Smrg COUNTABLE(PERF_PAPC_SU_BUSY, UINT64, AVERAGE), 1337ec681f3Smrg COUNTABLE(PERF_PAPC_SU_STARVED_CLIP, UINT64, AVERAGE), 1347ec681f3Smrg COUNTABLE(PERF_PAPC_SU_STALLED_SC, UINT64, AVERAGE), 1357ec681f3Smrg COUNTABLE(PERF_PAPC_SU_FACENESS_CULL, UINT64, AVERAGE), 1367ec681f3Smrg}; 1377ec681f3Smrg 1387ec681f3Smrgstatic const struct fd_perfcntr_countable pa_sc_countables[] = { 1397ec681f3Smrg COUNTABLE(SC_SR_WINDOW_VALID, UINT64, AVERAGE), 1407ec681f3Smrg COUNTABLE(SC_CW_WINDOW_VALID, UINT64, AVERAGE), 1417ec681f3Smrg COUNTABLE(SC_QM_WINDOW_VALID, UINT64, AVERAGE), 1427ec681f3Smrg COUNTABLE(SC_FW_WINDOW_VALID, UINT64, AVERAGE), 1437ec681f3Smrg COUNTABLE(SC_EZ_WINDOW_VALID, UINT64, AVERAGE), 1447ec681f3Smrg COUNTABLE(SC_IT_WINDOW_VALID, UINT64, AVERAGE), 1457ec681f3Smrg COUNTABLE(SC_STARVED_BY_PA, UINT64, AVERAGE), 1467ec681f3Smrg COUNTABLE(SC_STALLED_BY_RB_TILE, UINT64, AVERAGE), 1477ec681f3Smrg COUNTABLE(SC_STALLED_BY_RB_SAMP, UINT64, AVERAGE), 1487ec681f3Smrg COUNTABLE(SC_STARVED_BY_RB_EZ, UINT64, AVERAGE), 1497ec681f3Smrg COUNTABLE(SC_STALLED_BY_SAMPLE_FF, UINT64, AVERAGE), 1507ec681f3Smrg COUNTABLE(SC_STALLED_BY_SQ, UINT64, AVERAGE), 1517ec681f3Smrg COUNTABLE(SC_STALLED_BY_SP, UINT64, AVERAGE), 1527ec681f3Smrg COUNTABLE(SC_TOTAL_NO_PRIMS, UINT64, AVERAGE), 1537ec681f3Smrg COUNTABLE(SC_NON_EMPTY_PRIMS, UINT64, AVERAGE), 1547ec681f3Smrg COUNTABLE(SC_NO_TILES_PASSING_QM, UINT64, AVERAGE), 1557ec681f3Smrg COUNTABLE(SC_NO_PIXELS_PRE_EZ, UINT64, AVERAGE), 1567ec681f3Smrg COUNTABLE(SC_NO_PIXELS_POST_EZ, UINT64, AVERAGE), 1577ec681f3Smrg}; 1587ec681f3Smrg 1597ec681f3Smrgstatic const struct fd_perfcntr_countable vgt_countables[] = { 1607ec681f3Smrg COUNTABLE(VGT_SQ_EVENT_WINDOW_ACTIVE, UINT64, AVERAGE), 1617ec681f3Smrg COUNTABLE(VGT_SQ_SEND, UINT64, AVERAGE), 1627ec681f3Smrg COUNTABLE(VGT_SQ_STALLED, UINT64, AVERAGE), 1637ec681f3Smrg COUNTABLE(VGT_SQ_STARVED_BUSY, UINT64, AVERAGE), 1647ec681f3Smrg COUNTABLE(VGT_SQ_STARVED_IDLE, UINT64, AVERAGE), 1657ec681f3Smrg COUNTABLE(VGT_SQ_STATIC, UINT64, AVERAGE), 1667ec681f3Smrg COUNTABLE(VGT_PA_EVENT_WINDOW_ACTIVE, UINT64, AVERAGE), 1677ec681f3Smrg COUNTABLE(VGT_PA_CLIP_V_SEND, UINT64, AVERAGE), 1687ec681f3Smrg COUNTABLE(VGT_PA_CLIP_V_STALLED, UINT64, AVERAGE), 1697ec681f3Smrg COUNTABLE(VGT_PA_CLIP_V_STARVED_BUSY, UINT64, AVERAGE), 1707ec681f3Smrg COUNTABLE(VGT_PA_CLIP_V_STARVED_IDLE, UINT64, AVERAGE), 1717ec681f3Smrg COUNTABLE(VGT_PA_CLIP_V_STATIC, UINT64, AVERAGE), 1727ec681f3Smrg COUNTABLE(VGT_PA_CLIP_P_SEND, UINT64, AVERAGE), 1737ec681f3Smrg COUNTABLE(VGT_PA_CLIP_P_STALLED, UINT64, AVERAGE), 1747ec681f3Smrg COUNTABLE(VGT_PA_CLIP_P_STARVED_BUSY, UINT64, AVERAGE), 1757ec681f3Smrg COUNTABLE(VGT_PA_CLIP_P_STARVED_IDLE, UINT64, AVERAGE), 1767ec681f3Smrg COUNTABLE(VGT_PA_CLIP_P_STATIC, UINT64, AVERAGE), 1777ec681f3Smrg COUNTABLE(VGT_PA_CLIP_S_SEND, UINT64, AVERAGE), 1787ec681f3Smrg COUNTABLE(VGT_PA_CLIP_S_STALLED, UINT64, AVERAGE), 1797ec681f3Smrg COUNTABLE(VGT_PA_CLIP_S_STARVED_BUSY, UINT64, AVERAGE), 1807ec681f3Smrg COUNTABLE(VGT_PA_CLIP_S_STARVED_IDLE, UINT64, AVERAGE), 1817ec681f3Smrg COUNTABLE(VGT_PA_CLIP_S_STATIC, UINT64, AVERAGE), 1827ec681f3Smrg COUNTABLE(RBIU_FIFOS_EVENT_WINDOW_ACTIVE, UINT64, AVERAGE), 1837ec681f3Smrg COUNTABLE(RBIU_IMMED_DATA_FIFO_STARVED, UINT64, AVERAGE), 1847ec681f3Smrg COUNTABLE(RBIU_IMMED_DATA_FIFO_STALLED, UINT64, AVERAGE), 1857ec681f3Smrg COUNTABLE(RBIU_DMA_REQUEST_FIFO_STARVED, UINT64, AVERAGE), 1867ec681f3Smrg COUNTABLE(RBIU_DMA_REQUEST_FIFO_STALLED, UINT64, AVERAGE), 1877ec681f3Smrg COUNTABLE(RBIU_DRAW_INITIATOR_FIFO_STARVED, UINT64, AVERAGE), 1887ec681f3Smrg COUNTABLE(RBIU_DRAW_INITIATOR_FIFO_STALLED, UINT64, AVERAGE), 1897ec681f3Smrg COUNTABLE(BIN_PRIM_NEAR_CULL, UINT64, AVERAGE), 1907ec681f3Smrg COUNTABLE(BIN_PRIM_ZERO_CULL, UINT64, AVERAGE), 1917ec681f3Smrg COUNTABLE(BIN_PRIM_FAR_CULL, UINT64, AVERAGE), 1927ec681f3Smrg COUNTABLE(BIN_PRIM_BIN_CULL, UINT64, AVERAGE), 1937ec681f3Smrg COUNTABLE(BIN_PRIM_FACE_CULL, UINT64, AVERAGE), 1947ec681f3Smrg COUNTABLE(SPARE34, UINT64, AVERAGE), 1957ec681f3Smrg COUNTABLE(SPARE35, UINT64, AVERAGE), 1967ec681f3Smrg COUNTABLE(SPARE36, UINT64, AVERAGE), 1977ec681f3Smrg COUNTABLE(SPARE37, UINT64, AVERAGE), 1987ec681f3Smrg COUNTABLE(SPARE38, UINT64, AVERAGE), 1997ec681f3Smrg COUNTABLE(SPARE39, UINT64, AVERAGE), 2007ec681f3Smrg COUNTABLE(TE_SU_IN_VALID, UINT64, AVERAGE), 2017ec681f3Smrg COUNTABLE(TE_SU_IN_READ, UINT64, AVERAGE), 2027ec681f3Smrg COUNTABLE(TE_SU_IN_PRIM, UINT64, AVERAGE), 2037ec681f3Smrg COUNTABLE(TE_SU_IN_EOP, UINT64, AVERAGE), 2047ec681f3Smrg COUNTABLE(TE_SU_IN_NULL_PRIM, UINT64, AVERAGE), 2057ec681f3Smrg COUNTABLE(TE_WK_IN_VALID, UINT64, AVERAGE), 2067ec681f3Smrg COUNTABLE(TE_WK_IN_READ, UINT64, AVERAGE), 2077ec681f3Smrg COUNTABLE(TE_OUT_PRIM_VALID, UINT64, AVERAGE), 2087ec681f3Smrg COUNTABLE(TE_OUT_PRIM_READ, UINT64, AVERAGE), 2097ec681f3Smrg}; 2107ec681f3Smrg 2117ec681f3Smrgstatic const struct fd_perfcntr_countable tcr_countables[] = { 2127ec681f3Smrg COUNTABLE(DGMMPD_IPMUX0_STALL, UINT64, AVERAGE), 2137ec681f3Smrg COUNTABLE(DGMMPD_IPMUX_ALL_STALL, UINT64, AVERAGE), 2147ec681f3Smrg COUNTABLE(OPMUX0_L2_WRITES, UINT64, AVERAGE), 2157ec681f3Smrg}; 2167ec681f3Smrg 2177ec681f3Smrgstatic const struct fd_perfcntr_countable tp0_countables[] = { 2187ec681f3Smrg COUNTABLE(POINT_QUADS, UINT64, AVERAGE), 2197ec681f3Smrg COUNTABLE(BILIN_QUADS, UINT64, AVERAGE), 2207ec681f3Smrg COUNTABLE(ANISO_QUADS, UINT64, AVERAGE), 2217ec681f3Smrg COUNTABLE(MIP_QUADS, UINT64, AVERAGE), 2227ec681f3Smrg COUNTABLE(VOL_QUADS, UINT64, AVERAGE), 2237ec681f3Smrg COUNTABLE(MIP_VOL_QUADS, UINT64, AVERAGE), 2247ec681f3Smrg COUNTABLE(MIP_ANISO_QUADS, UINT64, AVERAGE), 2257ec681f3Smrg COUNTABLE(VOL_ANISO_QUADS, UINT64, AVERAGE), 2267ec681f3Smrg COUNTABLE(ANISO_2_1_QUADS, UINT64, AVERAGE), 2277ec681f3Smrg COUNTABLE(ANISO_4_1_QUADS, UINT64, AVERAGE), 2287ec681f3Smrg COUNTABLE(ANISO_6_1_QUADS, UINT64, AVERAGE), 2297ec681f3Smrg COUNTABLE(ANISO_8_1_QUADS, UINT64, AVERAGE), 2307ec681f3Smrg COUNTABLE(ANISO_10_1_QUADS, UINT64, AVERAGE), 2317ec681f3Smrg COUNTABLE(ANISO_12_1_QUADS, UINT64, AVERAGE), 2327ec681f3Smrg COUNTABLE(ANISO_14_1_QUADS, UINT64, AVERAGE), 2337ec681f3Smrg COUNTABLE(ANISO_16_1_QUADS, UINT64, AVERAGE), 2347ec681f3Smrg COUNTABLE(MIP_VOL_ANISO_QUADS, UINT64, AVERAGE), 2357ec681f3Smrg COUNTABLE(ALIGN_2_QUADS, UINT64, AVERAGE), 2367ec681f3Smrg COUNTABLE(ALIGN_4_QUADS, UINT64, AVERAGE), 2377ec681f3Smrg COUNTABLE(PIX_0_QUAD, UINT64, AVERAGE), 2387ec681f3Smrg COUNTABLE(PIX_1_QUAD, UINT64, AVERAGE), 2397ec681f3Smrg COUNTABLE(PIX_2_QUAD, UINT64, AVERAGE), 2407ec681f3Smrg COUNTABLE(PIX_3_QUAD, UINT64, AVERAGE), 2417ec681f3Smrg COUNTABLE(PIX_4_QUAD, UINT64, AVERAGE), 2427ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD0, UINT64, AVERAGE), 2437ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD1, UINT64, AVERAGE), 2447ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD2, UINT64, AVERAGE), 2457ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD3, UINT64, AVERAGE), 2467ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD4, UINT64, AVERAGE), 2477ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD5, UINT64, AVERAGE), 2487ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD6, UINT64, AVERAGE), 2497ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD7, UINT64, AVERAGE), 2507ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD8, UINT64, AVERAGE), 2517ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD9, UINT64, AVERAGE), 2527ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD10, UINT64, AVERAGE), 2537ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD11, UINT64, AVERAGE), 2547ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD12, UINT64, AVERAGE), 2557ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD13, UINT64, AVERAGE), 2567ec681f3Smrg COUNTABLE(TP_MIPMAP_LOD14, UINT64, AVERAGE), 2577ec681f3Smrg}; 2587ec681f3Smrg 2597ec681f3Smrgstatic const struct fd_perfcntr_countable tcm_countables[] = { 2607ec681f3Smrg COUNTABLE(QUAD0_RD_LAT_FIFO_EMPTY, UINT64, AVERAGE), 2617ec681f3Smrg COUNTABLE(QUAD0_RD_LAT_FIFO_4TH_FULL, UINT64, AVERAGE), 2627ec681f3Smrg COUNTABLE(QUAD0_RD_LAT_FIFO_HALF_FULL, UINT64, AVERAGE), 2637ec681f3Smrg COUNTABLE(QUAD0_RD_LAT_FIFO_FULL, UINT64, AVERAGE), 2647ec681f3Smrg COUNTABLE(QUAD0_RD_LAT_FIFO_LT_4TH_FULL, UINT64, AVERAGE), 2657ec681f3Smrg COUNTABLE(READ_STARVED_QUAD0, UINT64, AVERAGE), 2667ec681f3Smrg COUNTABLE(READ_STARVED, UINT64, AVERAGE), 2677ec681f3Smrg COUNTABLE(READ_STALLED_QUAD0, UINT64, AVERAGE), 2687ec681f3Smrg COUNTABLE(READ_STALLED, UINT64, AVERAGE), 2697ec681f3Smrg COUNTABLE(VALID_READ_QUAD0, UINT64, AVERAGE), 2707ec681f3Smrg COUNTABLE(TC_TP_STARVED_QUAD0, UINT64, AVERAGE), 2717ec681f3Smrg COUNTABLE(TC_TP_STARVED, UINT64, AVERAGE), 2727ec681f3Smrg}; 2737ec681f3Smrg 2747ec681f3Smrgstatic const struct fd_perfcntr_countable tcf_countables[] = { 2757ec681f3Smrg COUNTABLE(VALID_CYCLES, UINT64, AVERAGE), 2767ec681f3Smrg COUNTABLE(SINGLE_PHASES, UINT64, AVERAGE), 2777ec681f3Smrg COUNTABLE(ANISO_PHASES, UINT64, AVERAGE), 2787ec681f3Smrg COUNTABLE(MIP_PHASES, UINT64, AVERAGE), 2797ec681f3Smrg COUNTABLE(VOL_PHASES, UINT64, AVERAGE), 2807ec681f3Smrg COUNTABLE(MIP_VOL_PHASES, UINT64, AVERAGE), 2817ec681f3Smrg COUNTABLE(MIP_ANISO_PHASES, UINT64, AVERAGE), 2827ec681f3Smrg COUNTABLE(VOL_ANISO_PHASES, UINT64, AVERAGE), 2837ec681f3Smrg COUNTABLE(ANISO_2_1_PHASES, UINT64, AVERAGE), 2847ec681f3Smrg COUNTABLE(ANISO_4_1_PHASES, UINT64, AVERAGE), 2857ec681f3Smrg COUNTABLE(ANISO_6_1_PHASES, UINT64, AVERAGE), 2867ec681f3Smrg COUNTABLE(ANISO_8_1_PHASES, UINT64, AVERAGE), 2877ec681f3Smrg COUNTABLE(ANISO_10_1_PHASES, UINT64, AVERAGE), 2887ec681f3Smrg COUNTABLE(ANISO_12_1_PHASES, UINT64, AVERAGE), 2897ec681f3Smrg COUNTABLE(ANISO_14_1_PHASES, UINT64, AVERAGE), 2907ec681f3Smrg COUNTABLE(ANISO_16_1_PHASES, UINT64, AVERAGE), 2917ec681f3Smrg COUNTABLE(MIP_VOL_ANISO_PHASES, UINT64, AVERAGE), 2927ec681f3Smrg COUNTABLE(ALIGN_2_PHASES, UINT64, AVERAGE), 2937ec681f3Smrg COUNTABLE(ALIGN_4_PHASES, UINT64, AVERAGE), 2947ec681f3Smrg COUNTABLE(TPC_BUSY, UINT64, AVERAGE), 2957ec681f3Smrg COUNTABLE(TPC_STALLED, UINT64, AVERAGE), 2967ec681f3Smrg COUNTABLE(TPC_STARVED, UINT64, AVERAGE), 2977ec681f3Smrg COUNTABLE(TPC_WORKING, UINT64, AVERAGE), 2987ec681f3Smrg COUNTABLE(TPC_WALKER_BUSY, UINT64, AVERAGE), 2997ec681f3Smrg COUNTABLE(TPC_WALKER_STALLED, UINT64, AVERAGE), 3007ec681f3Smrg COUNTABLE(TPC_WALKER_WORKING, UINT64, AVERAGE), 3017ec681f3Smrg COUNTABLE(TPC_ALIGNER_BUSY, UINT64, AVERAGE), 3027ec681f3Smrg COUNTABLE(TPC_ALIGNER_STALLED, UINT64, AVERAGE), 3037ec681f3Smrg COUNTABLE(TPC_ALIGNER_STALLED_BY_BLEND, UINT64, AVERAGE), 3047ec681f3Smrg COUNTABLE(TPC_ALIGNER_STALLED_BY_CACHE, UINT64, AVERAGE), 3057ec681f3Smrg COUNTABLE(TPC_ALIGNER_WORKING, UINT64, AVERAGE), 3067ec681f3Smrg COUNTABLE(TPC_BLEND_BUSY, UINT64, AVERAGE), 3077ec681f3Smrg COUNTABLE(TPC_BLEND_SYNC, UINT64, AVERAGE), 3087ec681f3Smrg COUNTABLE(TPC_BLEND_STARVED, UINT64, AVERAGE), 3097ec681f3Smrg COUNTABLE(TPC_BLEND_WORKING, UINT64, AVERAGE), 3107ec681f3Smrg COUNTABLE(OPCODE_0x00, UINT64, AVERAGE), 3117ec681f3Smrg COUNTABLE(OPCODE_0x01, UINT64, AVERAGE), 3127ec681f3Smrg COUNTABLE(OPCODE_0x04, UINT64, AVERAGE), 3137ec681f3Smrg COUNTABLE(OPCODE_0x10, UINT64, AVERAGE), 3147ec681f3Smrg COUNTABLE(OPCODE_0x11, UINT64, AVERAGE), 3157ec681f3Smrg COUNTABLE(OPCODE_0x12, UINT64, AVERAGE), 3167ec681f3Smrg COUNTABLE(OPCODE_0x13, UINT64, AVERAGE), 3177ec681f3Smrg COUNTABLE(OPCODE_0x18, UINT64, AVERAGE), 3187ec681f3Smrg COUNTABLE(OPCODE_0x19, UINT64, AVERAGE), 3197ec681f3Smrg COUNTABLE(OPCODE_0x1A, UINT64, AVERAGE), 3207ec681f3Smrg COUNTABLE(OPCODE_OTHER, UINT64, AVERAGE), 3217ec681f3Smrg COUNTABLE(IN_FIFO_0_EMPTY, UINT64, AVERAGE), 3227ec681f3Smrg COUNTABLE(IN_FIFO_0_LT_HALF_FULL, UINT64, AVERAGE), 3237ec681f3Smrg COUNTABLE(IN_FIFO_0_HALF_FULL, UINT64, AVERAGE), 3247ec681f3Smrg COUNTABLE(IN_FIFO_0_FULL, UINT64, AVERAGE), 3257ec681f3Smrg COUNTABLE(IN_FIFO_TPC_EMPTY, UINT64, AVERAGE), 3267ec681f3Smrg COUNTABLE(IN_FIFO_TPC_LT_HALF_FULL, UINT64, AVERAGE), 3277ec681f3Smrg COUNTABLE(IN_FIFO_TPC_HALF_FULL, UINT64, AVERAGE), 3287ec681f3Smrg COUNTABLE(IN_FIFO_TPC_FULL, UINT64, AVERAGE), 3297ec681f3Smrg COUNTABLE(TPC_TC_XFC, UINT64, AVERAGE), 3307ec681f3Smrg COUNTABLE(TPC_TC_STATE, UINT64, AVERAGE), 3317ec681f3Smrg COUNTABLE(TC_STALL, UINT64, AVERAGE), 3327ec681f3Smrg COUNTABLE(QUAD0_TAPS, UINT64, AVERAGE), 3337ec681f3Smrg COUNTABLE(QUADS, UINT64, AVERAGE), 3347ec681f3Smrg COUNTABLE(TCA_SYNC_STALL, UINT64, AVERAGE), 3357ec681f3Smrg COUNTABLE(TAG_STALL, UINT64, AVERAGE), 3367ec681f3Smrg COUNTABLE(TCB_SYNC_STALL, UINT64, AVERAGE), 3377ec681f3Smrg COUNTABLE(TCA_VALID, UINT64, AVERAGE), 3387ec681f3Smrg COUNTABLE(PROBES_VALID, UINT64, AVERAGE), 3397ec681f3Smrg COUNTABLE(MISS_STALL, UINT64, AVERAGE), 3407ec681f3Smrg COUNTABLE(FETCH_FIFO_STALL, UINT64, AVERAGE), 3417ec681f3Smrg COUNTABLE(TCO_STALL, UINT64, AVERAGE), 3427ec681f3Smrg COUNTABLE(ANY_STALL, UINT64, AVERAGE), 3437ec681f3Smrg COUNTABLE(TAG_MISSES, UINT64, AVERAGE), 3447ec681f3Smrg COUNTABLE(TAG_HITS, UINT64, AVERAGE), 3457ec681f3Smrg COUNTABLE(SUB_TAG_MISSES, UINT64, AVERAGE), 3467ec681f3Smrg COUNTABLE(SET0_INVALIDATES, UINT64, AVERAGE), 3477ec681f3Smrg COUNTABLE(SET1_INVALIDATES, UINT64, AVERAGE), 3487ec681f3Smrg COUNTABLE(SET2_INVALIDATES, UINT64, AVERAGE), 3497ec681f3Smrg COUNTABLE(SET3_INVALIDATES, UINT64, AVERAGE), 3507ec681f3Smrg COUNTABLE(SET0_TAG_MISSES, UINT64, AVERAGE), 3517ec681f3Smrg COUNTABLE(SET1_TAG_MISSES, UINT64, AVERAGE), 3527ec681f3Smrg COUNTABLE(SET2_TAG_MISSES, UINT64, AVERAGE), 3537ec681f3Smrg COUNTABLE(SET3_TAG_MISSES, UINT64, AVERAGE), 3547ec681f3Smrg COUNTABLE(SET0_TAG_HITS, UINT64, AVERAGE), 3557ec681f3Smrg COUNTABLE(SET1_TAG_HITS, UINT64, AVERAGE), 3567ec681f3Smrg COUNTABLE(SET2_TAG_HITS, UINT64, AVERAGE), 3577ec681f3Smrg COUNTABLE(SET3_TAG_HITS, UINT64, AVERAGE), 3587ec681f3Smrg COUNTABLE(SET0_SUB_TAG_MISSES, UINT64, AVERAGE), 3597ec681f3Smrg COUNTABLE(SET1_SUB_TAG_MISSES, UINT64, AVERAGE), 3607ec681f3Smrg COUNTABLE(SET2_SUB_TAG_MISSES, UINT64, AVERAGE), 3617ec681f3Smrg COUNTABLE(SET3_SUB_TAG_MISSES, UINT64, AVERAGE), 3627ec681f3Smrg COUNTABLE(SET0_EVICT1, UINT64, AVERAGE), 3637ec681f3Smrg COUNTABLE(SET0_EVICT2, UINT64, AVERAGE), 3647ec681f3Smrg COUNTABLE(SET0_EVICT3, UINT64, AVERAGE), 3657ec681f3Smrg COUNTABLE(SET0_EVICT4, UINT64, AVERAGE), 3667ec681f3Smrg COUNTABLE(SET0_EVICT5, UINT64, AVERAGE), 3677ec681f3Smrg COUNTABLE(SET0_EVICT6, UINT64, AVERAGE), 3687ec681f3Smrg COUNTABLE(SET0_EVICT7, UINT64, AVERAGE), 3697ec681f3Smrg COUNTABLE(SET0_EVICT8, UINT64, AVERAGE), 3707ec681f3Smrg COUNTABLE(SET1_EVICT1, UINT64, AVERAGE), 3717ec681f3Smrg COUNTABLE(SET1_EVICT2, UINT64, AVERAGE), 3727ec681f3Smrg COUNTABLE(SET1_EVICT3, UINT64, AVERAGE), 3737ec681f3Smrg COUNTABLE(SET1_EVICT4, UINT64, AVERAGE), 3747ec681f3Smrg COUNTABLE(SET1_EVICT5, UINT64, AVERAGE), 3757ec681f3Smrg COUNTABLE(SET1_EVICT6, UINT64, AVERAGE), 3767ec681f3Smrg COUNTABLE(SET1_EVICT7, UINT64, AVERAGE), 3777ec681f3Smrg COUNTABLE(SET1_EVICT8, UINT64, AVERAGE), 3787ec681f3Smrg COUNTABLE(SET2_EVICT1, UINT64, AVERAGE), 3797ec681f3Smrg COUNTABLE(SET2_EVICT2, UINT64, AVERAGE), 3807ec681f3Smrg COUNTABLE(SET2_EVICT3, UINT64, AVERAGE), 3817ec681f3Smrg COUNTABLE(SET2_EVICT4, UINT64, AVERAGE), 3827ec681f3Smrg COUNTABLE(SET2_EVICT5, UINT64, AVERAGE), 3837ec681f3Smrg COUNTABLE(SET2_EVICT6, UINT64, AVERAGE), 3847ec681f3Smrg COUNTABLE(SET2_EVICT7, UINT64, AVERAGE), 3857ec681f3Smrg COUNTABLE(SET2_EVICT8, UINT64, AVERAGE), 3867ec681f3Smrg COUNTABLE(SET3_EVICT1, UINT64, AVERAGE), 3877ec681f3Smrg COUNTABLE(SET3_EVICT2, UINT64, AVERAGE), 3887ec681f3Smrg COUNTABLE(SET3_EVICT3, UINT64, AVERAGE), 3897ec681f3Smrg COUNTABLE(SET3_EVICT4, UINT64, AVERAGE), 3907ec681f3Smrg COUNTABLE(SET3_EVICT5, UINT64, AVERAGE), 3917ec681f3Smrg COUNTABLE(SET3_EVICT6, UINT64, AVERAGE), 3927ec681f3Smrg COUNTABLE(SET3_EVICT7, UINT64, AVERAGE), 3937ec681f3Smrg COUNTABLE(SET3_EVICT8, UINT64, AVERAGE), 3947ec681f3Smrg COUNTABLE(FF_EMPTY, UINT64, AVERAGE), 3957ec681f3Smrg COUNTABLE(FF_LT_HALF_FULL, UINT64, AVERAGE), 3967ec681f3Smrg COUNTABLE(FF_HALF_FULL, UINT64, AVERAGE), 3977ec681f3Smrg COUNTABLE(FF_FULL, UINT64, AVERAGE), 3987ec681f3Smrg COUNTABLE(FF_XFC, UINT64, AVERAGE), 3997ec681f3Smrg COUNTABLE(FF_STALLED, UINT64, AVERAGE), 4007ec681f3Smrg COUNTABLE(FG_MASKS, UINT64, AVERAGE), 4017ec681f3Smrg COUNTABLE(FG_LEFT_MASKS, UINT64, AVERAGE), 4027ec681f3Smrg COUNTABLE(FG_LEFT_MASK_STALLED, UINT64, AVERAGE), 4037ec681f3Smrg COUNTABLE(FG_LEFT_NOT_DONE_STALL, UINT64, AVERAGE), 4047ec681f3Smrg COUNTABLE(FG_LEFT_FG_STALL, UINT64, AVERAGE), 4057ec681f3Smrg COUNTABLE(FG_LEFT_SECTORS, UINT64, AVERAGE), 4067ec681f3Smrg COUNTABLE(FG0_REQUESTS, UINT64, AVERAGE), 4077ec681f3Smrg COUNTABLE(FG0_STALLED, UINT64, AVERAGE), 4087ec681f3Smrg COUNTABLE(MEM_REQ512, UINT64, AVERAGE), 4097ec681f3Smrg COUNTABLE(MEM_REQ_SENT, UINT64, AVERAGE), 4107ec681f3Smrg COUNTABLE(MEM_LOCAL_READ_REQ, UINT64, AVERAGE), 4117ec681f3Smrg COUNTABLE(TC0_MH_STALLED, UINT64, AVERAGE), 4127ec681f3Smrg}; 4137ec681f3Smrg 4147ec681f3Smrgstatic const struct fd_perfcntr_countable sq_countables[] = { 4157ec681f3Smrg COUNTABLE(SQ_PIXEL_VECTORS_SUB, UINT64, AVERAGE), 4167ec681f3Smrg COUNTABLE(SQ_VERTEX_VECTORS_SUB, UINT64, AVERAGE), 4177ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_VTX_SIMD0, UINT64, AVERAGE), 4187ec681f3Smrg COUNTABLE(SQ_ALU1_ACTIVE_VTX_SIMD0, UINT64, AVERAGE), 4197ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_PIX_SIMD0, UINT64, AVERAGE), 4207ec681f3Smrg COUNTABLE(SQ_ALU1_ACTIVE_PIX_SIMD0, UINT64, AVERAGE), 4217ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_VTX_SIMD1, UINT64, AVERAGE), 4227ec681f3Smrg COUNTABLE(SQ_ALU1_ACTIVE_VTX_SIMD1, UINT64, AVERAGE), 4237ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_PIX_SIMD1, UINT64, AVERAGE), 4247ec681f3Smrg COUNTABLE(SQ_ALU1_ACTIVE_PIX_SIMD1, UINT64, AVERAGE), 4257ec681f3Smrg COUNTABLE(SQ_EXPORT_CYCLES, UINT64, AVERAGE), 4267ec681f3Smrg COUNTABLE(SQ_ALU_CST_WRITTEN, UINT64, AVERAGE), 4277ec681f3Smrg COUNTABLE(SQ_TEX_CST_WRITTEN, UINT64, AVERAGE), 4287ec681f3Smrg COUNTABLE(SQ_ALU_CST_STALL, UINT64, AVERAGE), 4297ec681f3Smrg COUNTABLE(SQ_ALU_TEX_STALL, UINT64, AVERAGE), 4307ec681f3Smrg COUNTABLE(SQ_INST_WRITTEN, UINT64, AVERAGE), 4317ec681f3Smrg COUNTABLE(SQ_BOOLEAN_WRITTEN, UINT64, AVERAGE), 4327ec681f3Smrg COUNTABLE(SQ_LOOPS_WRITTEN, UINT64, AVERAGE), 4337ec681f3Smrg COUNTABLE(SQ_PIXEL_SWAP_IN, UINT64, AVERAGE), 4347ec681f3Smrg COUNTABLE(SQ_PIXEL_SWAP_OUT, UINT64, AVERAGE), 4357ec681f3Smrg COUNTABLE(SQ_VERTEX_SWAP_IN, UINT64, AVERAGE), 4367ec681f3Smrg COUNTABLE(SQ_VERTEX_SWAP_OUT, UINT64, AVERAGE), 4377ec681f3Smrg COUNTABLE(SQ_ALU_VTX_INST_ISSUED, UINT64, AVERAGE), 4387ec681f3Smrg COUNTABLE(SQ_TEX_VTX_INST_ISSUED, UINT64, AVERAGE), 4397ec681f3Smrg COUNTABLE(SQ_VC_VTX_INST_ISSUED, UINT64, AVERAGE), 4407ec681f3Smrg COUNTABLE(SQ_CF_VTX_INST_ISSUED, UINT64, AVERAGE), 4417ec681f3Smrg COUNTABLE(SQ_ALU_PIX_INST_ISSUED, UINT64, AVERAGE), 4427ec681f3Smrg COUNTABLE(SQ_TEX_PIX_INST_ISSUED, UINT64, AVERAGE), 4437ec681f3Smrg COUNTABLE(SQ_VC_PIX_INST_ISSUED, UINT64, AVERAGE), 4447ec681f3Smrg COUNTABLE(SQ_CF_PIX_INST_ISSUED, UINT64, AVERAGE), 4457ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_EMPTY_SIMD0, UINT64, AVERAGE), 4467ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_EMPTY_SIMD0, UINT64, AVERAGE), 4477ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_EMPTY_SIMD1, UINT64, AVERAGE), 4487ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_EMPTY_SIMD1, UINT64, AVERAGE), 4497ec681f3Smrg COUNTABLE(SQ_ALU_NOPS, UINT64, AVERAGE), 4507ec681f3Smrg COUNTABLE(SQ_PRED_SKIP, UINT64, AVERAGE), 4517ec681f3Smrg COUNTABLE(SQ_SYNC_ALU_STALL_SIMD0_VTX, UINT64, AVERAGE), 4527ec681f3Smrg COUNTABLE(SQ_SYNC_ALU_STALL_SIMD1_VTX, UINT64, AVERAGE), 4537ec681f3Smrg COUNTABLE(SQ_SYNC_TEX_STALL_VTX, UINT64, AVERAGE), 4547ec681f3Smrg COUNTABLE(SQ_SYNC_VC_STALL_VTX, UINT64, AVERAGE), 4557ec681f3Smrg COUNTABLE(SQ_CONSTANTS_USED_SIMD0, UINT64, AVERAGE), 4567ec681f3Smrg COUNTABLE(SQ_CONSTANTS_SENT_SP_SIMD0, UINT64, AVERAGE), 4577ec681f3Smrg COUNTABLE(SQ_GPR_STALL_VTX, UINT64, AVERAGE), 4587ec681f3Smrg COUNTABLE(SQ_GPR_STALL_PIX, UINT64, AVERAGE), 4597ec681f3Smrg COUNTABLE(SQ_VTX_RS_STALL, UINT64, AVERAGE), 4607ec681f3Smrg COUNTABLE(SQ_PIX_RS_STALL, UINT64, AVERAGE), 4617ec681f3Smrg COUNTABLE(SQ_SX_PC_FULL, UINT64, AVERAGE), 4627ec681f3Smrg COUNTABLE(SQ_SX_EXP_BUFF_FULL, UINT64, AVERAGE), 4637ec681f3Smrg COUNTABLE(SQ_SX_POS_BUFF_FULL, UINT64, AVERAGE), 4647ec681f3Smrg COUNTABLE(SQ_INTERP_QUADS, UINT64, AVERAGE), 4657ec681f3Smrg COUNTABLE(SQ_INTERP_ACTIVE, UINT64, AVERAGE), 4667ec681f3Smrg COUNTABLE(SQ_IN_PIXEL_STALL, UINT64, AVERAGE), 4677ec681f3Smrg COUNTABLE(SQ_IN_VTX_STALL, UINT64, AVERAGE), 4687ec681f3Smrg COUNTABLE(SQ_VTX_CNT, UINT64, AVERAGE), 4697ec681f3Smrg COUNTABLE(SQ_VTX_VECTOR2, UINT64, AVERAGE), 4707ec681f3Smrg COUNTABLE(SQ_VTX_VECTOR3, UINT64, AVERAGE), 4717ec681f3Smrg COUNTABLE(SQ_VTX_VECTOR4, UINT64, AVERAGE), 4727ec681f3Smrg COUNTABLE(SQ_PIXEL_VECTOR1, UINT64, AVERAGE), 4737ec681f3Smrg COUNTABLE(SQ_PIXEL_VECTOR23, UINT64, AVERAGE), 4747ec681f3Smrg COUNTABLE(SQ_PIXEL_VECTOR4, UINT64, AVERAGE), 4757ec681f3Smrg COUNTABLE(SQ_CONSTANTS_USED_SIMD1, UINT64, AVERAGE), 4767ec681f3Smrg COUNTABLE(SQ_CONSTANTS_SENT_SP_SIMD1, UINT64, AVERAGE), 4777ec681f3Smrg COUNTABLE(SQ_SX_MEM_EXP_FULL, UINT64, AVERAGE), 4787ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_VTX_SIMD2, UINT64, AVERAGE), 4797ec681f3Smrg COUNTABLE(SQ_ALU1_ACTIVE_VTX_SIMD2, UINT64, AVERAGE), 4807ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_PIX_SIMD2, UINT64, AVERAGE), 4817ec681f3Smrg COUNTABLE(SQ_ALU1_ACTIVE_PIX_SIMD2, UINT64, AVERAGE), 4827ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_VTX_SIMD3, UINT64, AVERAGE), 4837ec681f3Smrg COUNTABLE(SQ_PERFCOUNT_VTX_QUAL_TP_DONE, UINT64, AVERAGE), 4847ec681f3Smrg COUNTABLE(SQ_ALU0_ACTIVE_PIX_SIMD3, UINT64, AVERAGE), 4857ec681f3Smrg COUNTABLE(SQ_PERFCOUNT_PIX_QUAL_TP_DONE, UINT64, AVERAGE), 4867ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_EMPTY_SIMD2, UINT64, AVERAGE), 4877ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_EMPTY_SIMD2, UINT64, AVERAGE), 4887ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_EMPTY_SIMD3, UINT64, AVERAGE), 4897ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_EMPTY_SIMD3, UINT64, AVERAGE), 4907ec681f3Smrg COUNTABLE(SQ_SYNC_ALU_STALL_SIMD2_VTX, UINT64, AVERAGE), 4917ec681f3Smrg COUNTABLE(SQ_PERFCOUNT_VTX_POP_THREAD, UINT64, AVERAGE), 4927ec681f3Smrg COUNTABLE(SQ_SYNC_ALU_STALL_SIMD0_PIX, UINT64, AVERAGE), 4937ec681f3Smrg COUNTABLE(SQ_SYNC_ALU_STALL_SIMD1_PIX, UINT64, AVERAGE), 4947ec681f3Smrg COUNTABLE(SQ_SYNC_ALU_STALL_SIMD2_PIX, UINT64, AVERAGE), 4957ec681f3Smrg COUNTABLE(SQ_PERFCOUNT_PIX_POP_THREAD, UINT64, AVERAGE), 4967ec681f3Smrg COUNTABLE(SQ_SYNC_TEX_STALL_PIX, UINT64, AVERAGE), 4977ec681f3Smrg COUNTABLE(SQ_SYNC_VC_STALL_PIX, UINT64, AVERAGE), 4987ec681f3Smrg COUNTABLE(SQ_CONSTANTS_USED_SIMD2, UINT64, AVERAGE), 4997ec681f3Smrg COUNTABLE(SQ_CONSTANTS_SENT_SP_SIMD2, UINT64, AVERAGE), 5007ec681f3Smrg COUNTABLE(SQ_PERFCOUNT_VTX_DEALLOC_ACK, UINT64, AVERAGE), 5017ec681f3Smrg COUNTABLE(SQ_PERFCOUNT_PIX_DEALLOC_ACK, UINT64, AVERAGE), 5027ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_FULL_SIMD0, UINT64, AVERAGE), 5037ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_FULL_SIMD0, UINT64, AVERAGE), 5047ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_FULL_SIMD1, UINT64, AVERAGE), 5057ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_FULL_SIMD1, UINT64, AVERAGE), 5067ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_FULL_SIMD2, UINT64, AVERAGE), 5077ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_FULL_SIMD2, UINT64, AVERAGE), 5087ec681f3Smrg COUNTABLE(SQ_ALU0_FIFO_FULL_SIMD3, UINT64, AVERAGE), 5097ec681f3Smrg COUNTABLE(SQ_ALU1_FIFO_FULL_SIMD3, UINT64, AVERAGE), 5107ec681f3Smrg COUNTABLE(VC_PERF_STATIC, UINT64, AVERAGE), 5117ec681f3Smrg COUNTABLE(VC_PERF_STALLED, UINT64, AVERAGE), 5127ec681f3Smrg COUNTABLE(VC_PERF_STARVED, UINT64, AVERAGE), 5137ec681f3Smrg COUNTABLE(VC_PERF_SEND, UINT64, AVERAGE), 5147ec681f3Smrg COUNTABLE(VC_PERF_ACTUAL_STARVED, UINT64, AVERAGE), 5157ec681f3Smrg COUNTABLE(PIXEL_THREAD_0_ACTIVE, UINT64, AVERAGE), 5167ec681f3Smrg COUNTABLE(VERTEX_THREAD_0_ACTIVE, UINT64, AVERAGE), 5177ec681f3Smrg COUNTABLE(PIXEL_THREAD_0_NUMBER, UINT64, AVERAGE), 5187ec681f3Smrg COUNTABLE(VERTEX_THREAD_0_NUMBER, UINT64, AVERAGE), 5197ec681f3Smrg COUNTABLE(VERTEX_EVENT_NUMBER, UINT64, AVERAGE), 5207ec681f3Smrg COUNTABLE(PIXEL_EVENT_NUMBER, UINT64, AVERAGE), 5217ec681f3Smrg COUNTABLE(PTRBUFF_EF_PUSH, UINT64, AVERAGE), 5227ec681f3Smrg COUNTABLE(PTRBUFF_EF_POP_EVENT, UINT64, AVERAGE), 5237ec681f3Smrg COUNTABLE(PTRBUFF_EF_POP_NEW_VTX, UINT64, AVERAGE), 5247ec681f3Smrg COUNTABLE(PTRBUFF_EF_POP_DEALLOC, UINT64, AVERAGE), 5257ec681f3Smrg COUNTABLE(PTRBUFF_EF_POP_PVECTOR, UINT64, AVERAGE), 5267ec681f3Smrg COUNTABLE(PTRBUFF_EF_POP_PVECTOR_X, UINT64, AVERAGE), 5277ec681f3Smrg COUNTABLE(PTRBUFF_EF_POP_PVECTOR_VNZ, UINT64, AVERAGE), 5287ec681f3Smrg COUNTABLE(PTRBUFF_PB_DEALLOC, UINT64, AVERAGE), 5297ec681f3Smrg COUNTABLE(PTRBUFF_PI_STATE_PPB_POP, UINT64, AVERAGE), 5307ec681f3Smrg COUNTABLE(PTRBUFF_PI_RTR, UINT64, AVERAGE), 5317ec681f3Smrg COUNTABLE(PTRBUFF_PI_READ_EN, UINT64, AVERAGE), 5327ec681f3Smrg COUNTABLE(PTRBUFF_PI_BUFF_SWAP, UINT64, AVERAGE), 5337ec681f3Smrg COUNTABLE(PTRBUFF_SQ_FREE_BUFF, UINT64, AVERAGE), 5347ec681f3Smrg COUNTABLE(PTRBUFF_SQ_DEC, UINT64, AVERAGE), 5357ec681f3Smrg COUNTABLE(PTRBUFF_SC_VALID_CNTL_EVENT, UINT64, AVERAGE), 5367ec681f3Smrg COUNTABLE(PTRBUFF_SC_VALID_IJ_XFER, UINT64, AVERAGE), 5377ec681f3Smrg COUNTABLE(PTRBUFF_SC_NEW_VECTOR_1_Q, UINT64, AVERAGE), 5387ec681f3Smrg COUNTABLE(PTRBUFF_QUAL_NEW_VECTOR, UINT64, AVERAGE), 5397ec681f3Smrg COUNTABLE(PTRBUFF_QUAL_EVENT, UINT64, AVERAGE), 5407ec681f3Smrg COUNTABLE(PTRBUFF_END_BUFFER, UINT64, AVERAGE), 5417ec681f3Smrg COUNTABLE(PTRBUFF_FILL_QUAD, UINT64, AVERAGE), 5427ec681f3Smrg COUNTABLE(VERTS_WRITTEN_SPI, UINT64, AVERAGE), 5437ec681f3Smrg COUNTABLE(TP_FETCH_INSTR_EXEC, UINT64, AVERAGE), 5447ec681f3Smrg COUNTABLE(TP_FETCH_INSTR_REQ, UINT64, AVERAGE), 5457ec681f3Smrg COUNTABLE(TP_DATA_RETURN, UINT64, AVERAGE), 5467ec681f3Smrg COUNTABLE(SPI_WRITE_CYCLES_SP, UINT64, AVERAGE), 5477ec681f3Smrg COUNTABLE(SPI_WRITES_SP, UINT64, AVERAGE), 5487ec681f3Smrg COUNTABLE(SP_ALU_INSTR_EXEC, UINT64, AVERAGE), 5497ec681f3Smrg COUNTABLE(SP_CONST_ADDR_TO_SQ, UINT64, AVERAGE), 5507ec681f3Smrg COUNTABLE(SP_PRED_KILLS_TO_SQ, UINT64, AVERAGE), 5517ec681f3Smrg COUNTABLE(SP_EXPORT_CYCLES_TO_SX, UINT64, AVERAGE), 5527ec681f3Smrg COUNTABLE(SP_EXPORTS_TO_SX, UINT64, AVERAGE), 5537ec681f3Smrg COUNTABLE(SQ_CYCLES_ELAPSED, UINT64, AVERAGE), 5547ec681f3Smrg COUNTABLE(SQ_TCFS_OPT_ALLOC_EXEC, UINT64, AVERAGE), 5557ec681f3Smrg COUNTABLE(SQ_TCFS_NO_OPT_ALLOC, UINT64, AVERAGE), 5567ec681f3Smrg COUNTABLE(SQ_ALU0_NO_OPT_ALLOC, UINT64, AVERAGE), 5577ec681f3Smrg COUNTABLE(SQ_ALU1_NO_OPT_ALLOC, UINT64, AVERAGE), 5587ec681f3Smrg COUNTABLE(SQ_TCFS_ARB_XFC_CNT, UINT64, AVERAGE), 5597ec681f3Smrg COUNTABLE(SQ_ALU0_ARB_XFC_CNT, UINT64, AVERAGE), 5607ec681f3Smrg COUNTABLE(SQ_ALU1_ARB_XFC_CNT, UINT64, AVERAGE), 5617ec681f3Smrg COUNTABLE(SQ_TCFS_CFS_UPDATE_CNT, UINT64, AVERAGE), 5627ec681f3Smrg COUNTABLE(SQ_ALU0_CFS_UPDATE_CNT, UINT64, AVERAGE), 5637ec681f3Smrg COUNTABLE(SQ_ALU1_CFS_UPDATE_CNT, UINT64, AVERAGE), 5647ec681f3Smrg COUNTABLE(SQ_VTX_PUSH_THREAD_CNT, UINT64, AVERAGE), 5657ec681f3Smrg COUNTABLE(SQ_VTX_POP_THREAD_CNT, UINT64, AVERAGE), 5667ec681f3Smrg COUNTABLE(SQ_PIX_PUSH_THREAD_CNT, UINT64, AVERAGE), 5677ec681f3Smrg COUNTABLE(SQ_PIX_POP_THREAD_CNT, UINT64, AVERAGE), 5687ec681f3Smrg COUNTABLE(SQ_PIX_TOTAL, UINT64, AVERAGE), 5697ec681f3Smrg COUNTABLE(SQ_PIX_KILLED, UINT64, AVERAGE), 5707ec681f3Smrg}; 5717ec681f3Smrg 5727ec681f3Smrgstatic const struct fd_perfcntr_countable sx_countables[] = { 5737ec681f3Smrg COUNTABLE(SX_EXPORT_VECTORS, UINT64, AVERAGE), 5747ec681f3Smrg COUNTABLE(SX_DUMMY_QUADS, UINT64, AVERAGE), 5757ec681f3Smrg COUNTABLE(SX_ALPHA_FAIL, UINT64, AVERAGE), 5767ec681f3Smrg COUNTABLE(SX_RB_QUAD_BUSY, UINT64, AVERAGE), 5777ec681f3Smrg COUNTABLE(SX_RB_COLOR_BUSY, UINT64, AVERAGE), 5787ec681f3Smrg COUNTABLE(SX_RB_QUAD_STALL, UINT64, AVERAGE), 5797ec681f3Smrg COUNTABLE(SX_RB_COLOR_STALL, UINT64, AVERAGE), 5807ec681f3Smrg}; 5817ec681f3Smrg 5827ec681f3Smrgstatic const struct fd_perfcntr_countable mh_countables[] = { 5837ec681f3Smrg COUNTABLE(CP_R0_REQUESTS, UINT64, AVERAGE), 5847ec681f3Smrg COUNTABLE(CP_R1_REQUESTS, UINT64, AVERAGE), 5857ec681f3Smrg COUNTABLE(CP_R2_REQUESTS, UINT64, AVERAGE), 5867ec681f3Smrg COUNTABLE(CP_R3_REQUESTS, UINT64, AVERAGE), 5877ec681f3Smrg COUNTABLE(CP_R4_REQUESTS, UINT64, AVERAGE), 5887ec681f3Smrg COUNTABLE(CP_TOTAL_READ_REQUESTS, UINT64, AVERAGE), 5897ec681f3Smrg COUNTABLE(CP_TOTAL_WRITE_REQUESTS, UINT64, AVERAGE), 5907ec681f3Smrg COUNTABLE(CP_TOTAL_REQUESTS, UINT64, AVERAGE), 5917ec681f3Smrg COUNTABLE(CP_DATA_BYTES_WRITTEN, UINT64, AVERAGE), 5927ec681f3Smrg COUNTABLE(CP_WRITE_CLEAN_RESPONSES, UINT64, AVERAGE), 5937ec681f3Smrg COUNTABLE(CP_R0_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 5947ec681f3Smrg COUNTABLE(CP_R1_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 5957ec681f3Smrg COUNTABLE(CP_R2_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 5967ec681f3Smrg COUNTABLE(CP_R3_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 5977ec681f3Smrg COUNTABLE(CP_R4_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 5987ec681f3Smrg COUNTABLE(CP_TOTAL_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 5997ec681f3Smrg COUNTABLE(CP_R0_DATA_BEATS_READ, UINT64, AVERAGE), 6007ec681f3Smrg COUNTABLE(CP_R1_DATA_BEATS_READ, UINT64, AVERAGE), 6017ec681f3Smrg COUNTABLE(CP_R2_DATA_BEATS_READ, UINT64, AVERAGE), 6027ec681f3Smrg COUNTABLE(CP_R3_DATA_BEATS_READ, UINT64, AVERAGE), 6037ec681f3Smrg COUNTABLE(CP_R4_DATA_BEATS_READ, UINT64, AVERAGE), 6047ec681f3Smrg COUNTABLE(CP_TOTAL_DATA_BEATS_READ, UINT64, AVERAGE), 6057ec681f3Smrg COUNTABLE(VGT_R0_REQUESTS, UINT64, AVERAGE), 6067ec681f3Smrg COUNTABLE(VGT_R1_REQUESTS, UINT64, AVERAGE), 6077ec681f3Smrg COUNTABLE(VGT_TOTAL_REQUESTS, UINT64, AVERAGE), 6087ec681f3Smrg COUNTABLE(VGT_R0_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 6097ec681f3Smrg COUNTABLE(VGT_R1_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 6107ec681f3Smrg COUNTABLE(VGT_TOTAL_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 6117ec681f3Smrg COUNTABLE(VGT_R0_DATA_BEATS_READ, UINT64, AVERAGE), 6127ec681f3Smrg COUNTABLE(VGT_R1_DATA_BEATS_READ, UINT64, AVERAGE), 6137ec681f3Smrg COUNTABLE(VGT_TOTAL_DATA_BEATS_READ, UINT64, AVERAGE), 6147ec681f3Smrg COUNTABLE(TC_TOTAL_REQUESTS, UINT64, AVERAGE), 6157ec681f3Smrg COUNTABLE(TC_ROQ_REQUESTS, UINT64, AVERAGE), 6167ec681f3Smrg COUNTABLE(TC_INFO_SENT, UINT64, AVERAGE), 6177ec681f3Smrg COUNTABLE(TC_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 6187ec681f3Smrg COUNTABLE(TC_DATA_BEATS_READ, UINT64, AVERAGE), 6197ec681f3Smrg COUNTABLE(TCD_BURSTS_READ, UINT64, AVERAGE), 6207ec681f3Smrg COUNTABLE(RB_REQUESTS, UINT64, AVERAGE), 6217ec681f3Smrg COUNTABLE(RB_DATA_BYTES_WRITTEN, UINT64, AVERAGE), 6227ec681f3Smrg COUNTABLE(RB_WRITE_CLEAN_RESPONSES, UINT64, AVERAGE), 6237ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_0, UINT64, AVERAGE), 6247ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_1, UINT64, AVERAGE), 6257ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_2, UINT64, AVERAGE), 6267ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_3, UINT64, AVERAGE), 6277ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_4, UINT64, AVERAGE), 6287ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_5, UINT64, AVERAGE), 6297ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_6, UINT64, AVERAGE), 6307ec681f3Smrg COUNTABLE(AXI_READ_REQUESTS_ID_7, UINT64, AVERAGE), 6317ec681f3Smrg COUNTABLE(AXI_TOTAL_READ_REQUESTS, UINT64, AVERAGE), 6327ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_0, UINT64, AVERAGE), 6337ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_1, UINT64, AVERAGE), 6347ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_2, UINT64, AVERAGE), 6357ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_3, UINT64, AVERAGE), 6367ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_4, UINT64, AVERAGE), 6377ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_5, UINT64, AVERAGE), 6387ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_6, UINT64, AVERAGE), 6397ec681f3Smrg COUNTABLE(AXI_WRITE_REQUESTS_ID_7, UINT64, AVERAGE), 6407ec681f3Smrg COUNTABLE(AXI_TOTAL_WRITE_REQUESTS, UINT64, AVERAGE), 6417ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_0, UINT64, AVERAGE), 6427ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_1, UINT64, AVERAGE), 6437ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_2, UINT64, AVERAGE), 6447ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_3, UINT64, AVERAGE), 6457ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_4, UINT64, AVERAGE), 6467ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_5, UINT64, AVERAGE), 6477ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_6, UINT64, AVERAGE), 6487ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS_ID_7, UINT64, AVERAGE), 6497ec681f3Smrg COUNTABLE(AXI_TOTAL_REQUESTS, UINT64, AVERAGE), 6507ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_0, UINT64, AVERAGE), 6517ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_1, UINT64, AVERAGE), 6527ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_2, UINT64, AVERAGE), 6537ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_3, UINT64, AVERAGE), 6547ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_4, UINT64, AVERAGE), 6557ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_5, UINT64, AVERAGE), 6567ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_6, UINT64, AVERAGE), 6577ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_BURSTS_ID_7, UINT64, AVERAGE), 6587ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_TOTAL_BURSTS, UINT64, AVERAGE), 6597ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_0, UINT64, AVERAGE), 6607ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_1, UINT64, AVERAGE), 6617ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_2, UINT64, AVERAGE), 6627ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_3, UINT64, AVERAGE), 6637ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_4, UINT64, AVERAGE), 6647ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_5, UINT64, AVERAGE), 6657ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_6, UINT64, AVERAGE), 6667ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_DATA_BEATS_READ_ID_7, UINT64, AVERAGE), 6677ec681f3Smrg COUNTABLE(AXI_READ_CHANNEL_TOTAL_DATA_BEATS_READ, UINT64, AVERAGE), 6687ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_0, UINT64, AVERAGE), 6697ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_1, UINT64, AVERAGE), 6707ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_2, UINT64, AVERAGE), 6717ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_3, UINT64, AVERAGE), 6727ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_4, UINT64, AVERAGE), 6737ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_5, UINT64, AVERAGE), 6747ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_6, UINT64, AVERAGE), 6757ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_BURSTS_ID_7, UINT64, AVERAGE), 6767ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_TOTAL_BURSTS, UINT64, AVERAGE), 6777ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_0, UINT64, AVERAGE), 6787ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_1, UINT64, AVERAGE), 6797ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_2, UINT64, AVERAGE), 6807ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_3, UINT64, AVERAGE), 6817ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_4, UINT64, AVERAGE), 6827ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_5, UINT64, AVERAGE), 6837ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_6, UINT64, AVERAGE), 6847ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_DATA_BYTES_WRITTEN_ID_7, UINT64, AVERAGE), 6857ec681f3Smrg COUNTABLE(AXI_WRITE_CHANNEL_TOTAL_DATA_BYTES_WRITTEN, UINT64, AVERAGE), 6867ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_0, UINT64, AVERAGE), 6877ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_1, UINT64, AVERAGE), 6887ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_2, UINT64, AVERAGE), 6897ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_3, UINT64, AVERAGE), 6907ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_4, UINT64, AVERAGE), 6917ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_5, UINT64, AVERAGE), 6927ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_6, UINT64, AVERAGE), 6937ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_RESPONSES_ID_7, UINT64, AVERAGE), 6947ec681f3Smrg COUNTABLE(AXI_WRITE_RESPONSE_CHANNEL_TOTAL_RESPONSES, UINT64, AVERAGE), 6957ec681f3Smrg COUNTABLE(TOTAL_MMU_MISSES, UINT64, AVERAGE), 6967ec681f3Smrg COUNTABLE(MMU_READ_MISSES, UINT64, AVERAGE), 6977ec681f3Smrg COUNTABLE(MMU_WRITE_MISSES, UINT64, AVERAGE), 6987ec681f3Smrg COUNTABLE(TOTAL_MMU_HITS, UINT64, AVERAGE), 6997ec681f3Smrg COUNTABLE(MMU_READ_HITS, UINT64, AVERAGE), 7007ec681f3Smrg COUNTABLE(MMU_WRITE_HITS, UINT64, AVERAGE), 7017ec681f3Smrg COUNTABLE(SPLIT_MODE_TC_HITS, UINT64, AVERAGE), 7027ec681f3Smrg COUNTABLE(SPLIT_MODE_TC_MISSES, UINT64, AVERAGE), 7037ec681f3Smrg COUNTABLE(SPLIT_MODE_NON_TC_HITS, UINT64, AVERAGE), 7047ec681f3Smrg COUNTABLE(SPLIT_MODE_NON_TC_MISSES, UINT64, AVERAGE), 7057ec681f3Smrg COUNTABLE(STALL_AWAITING_TLB_MISS_FETCH, UINT64, AVERAGE), 7067ec681f3Smrg COUNTABLE(MMU_TLB_MISS_READ_BURSTS_RECEIVED, UINT64, AVERAGE), 7077ec681f3Smrg COUNTABLE(MMU_TLB_MISS_DATA_BEATS_READ, UINT64, AVERAGE), 7087ec681f3Smrg COUNTABLE(CP_CYCLES_HELD_OFF, UINT64, AVERAGE), 7097ec681f3Smrg COUNTABLE(VGT_CYCLES_HELD_OFF, UINT64, AVERAGE), 7107ec681f3Smrg COUNTABLE(TC_CYCLES_HELD_OFF, UINT64, AVERAGE), 7117ec681f3Smrg COUNTABLE(TC_ROQ_CYCLES_HELD_OFF, UINT64, AVERAGE), 7127ec681f3Smrg COUNTABLE(TC_CYCLES_HELD_OFF_TCD_FULL, UINT64, AVERAGE), 7137ec681f3Smrg COUNTABLE(RB_CYCLES_HELD_OFF, UINT64, AVERAGE), 7147ec681f3Smrg COUNTABLE(TOTAL_CYCLES_ANY_CLNT_HELD_OFF, UINT64, AVERAGE), 7157ec681f3Smrg COUNTABLE(TLB_MISS_CYCLES_HELD_OFF, UINT64, AVERAGE), 7167ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_HELD_OFF, UINT64, AVERAGE), 7177ec681f3Smrg COUNTABLE(AXI_WRITE_REQUEST_HELD_OFF, UINT64, AVERAGE), 7187ec681f3Smrg COUNTABLE(AXI_REQUEST_HELD_OFF, UINT64, AVERAGE), 7197ec681f3Smrg COUNTABLE(AXI_REQUEST_HELD_OFF_INFLIGHT_LIMIT, UINT64, AVERAGE), 7207ec681f3Smrg COUNTABLE(AXI_WRITE_DATA_HELD_OFF, UINT64, AVERAGE), 7217ec681f3Smrg COUNTABLE(CP_SAME_PAGE_BANK_REQUESTS, UINT64, AVERAGE), 7227ec681f3Smrg COUNTABLE(VGT_SAME_PAGE_BANK_REQUESTS, UINT64, AVERAGE), 7237ec681f3Smrg COUNTABLE(TC_SAME_PAGE_BANK_REQUESTS, UINT64, AVERAGE), 7247ec681f3Smrg COUNTABLE(TC_ARB_HOLD_SAME_PAGE_BANK_REQUESTS, UINT64, AVERAGE), 7257ec681f3Smrg COUNTABLE(RB_SAME_PAGE_BANK_REQUESTS, UINT64, AVERAGE), 7267ec681f3Smrg COUNTABLE(TOTAL_SAME_PAGE_BANK_REQUESTS, UINT64, AVERAGE), 7277ec681f3Smrg COUNTABLE(CP_SAME_PAGE_BANK_REQUESTS_KILLED_FAIRNESS_LIMIT, UINT64, AVERAGE), 7287ec681f3Smrg COUNTABLE(VGT_SAME_PAGE_BANK_REQUESTS_KILLED_FAIRNESS_LIMIT, UINT64, AVERAGE), 7297ec681f3Smrg COUNTABLE(TC_SAME_PAGE_BANK_REQUESTS_KILLED_FAIRNESS_LIMIT, UINT64, AVERAGE), 7307ec681f3Smrg COUNTABLE(RB_SAME_PAGE_BANK_REQUESTS_KILLED_FAIRNESS_LIMIT, UINT64, AVERAGE), 7317ec681f3Smrg COUNTABLE(TOTAL_SAME_PAGE_BANK_KILLED_FAIRNESS_LIMIT, UINT64, AVERAGE), 7327ec681f3Smrg COUNTABLE(TOTAL_MH_READ_REQUESTS, UINT64, AVERAGE), 7337ec681f3Smrg COUNTABLE(TOTAL_MH_WRITE_REQUESTS, UINT64, AVERAGE), 7347ec681f3Smrg COUNTABLE(TOTAL_MH_REQUESTS, UINT64, AVERAGE), 7357ec681f3Smrg COUNTABLE(MH_BUSY, UINT64, AVERAGE), 7367ec681f3Smrg COUNTABLE(CP_NTH_ACCESS_SAME_PAGE_BANK_SEQUENCE, UINT64, AVERAGE), 7377ec681f3Smrg COUNTABLE(VGT_NTH_ACCESS_SAME_PAGE_BANK_SEQUENCE, UINT64, AVERAGE), 7387ec681f3Smrg COUNTABLE(TC_NTH_ACCESS_SAME_PAGE_BANK_SEQUENCE, UINT64, AVERAGE), 7397ec681f3Smrg COUNTABLE(RB_NTH_ACCESS_SAME_PAGE_BANK_SEQUENCE, UINT64, AVERAGE), 7407ec681f3Smrg COUNTABLE(TC_ROQ_N_VALID_ENTRIES, UINT64, AVERAGE), 7417ec681f3Smrg COUNTABLE(ARQ_N_ENTRIES, UINT64, AVERAGE), 7427ec681f3Smrg COUNTABLE(WDB_N_ENTRIES, UINT64, AVERAGE), 7437ec681f3Smrg COUNTABLE(MH_READ_LATENCY_OUTST_REQ_SUM, UINT64, AVERAGE), 7447ec681f3Smrg COUNTABLE(MC_READ_LATENCY_OUTST_REQ_SUM, UINT64, AVERAGE), 7457ec681f3Smrg COUNTABLE(MC_TOTAL_READ_REQUESTS, UINT64, AVERAGE), 7467ec681f3Smrg COUNTABLE(ELAPSED_CYCLES_MH_GATED_CLK, UINT64, AVERAGE), 7477ec681f3Smrg COUNTABLE(ELAPSED_CLK_CYCLES, UINT64, AVERAGE), 7487ec681f3Smrg COUNTABLE(CP_W_16B_REQUESTS, UINT64, AVERAGE), 7497ec681f3Smrg COUNTABLE(CP_W_32B_REQUESTS, UINT64, AVERAGE), 7507ec681f3Smrg COUNTABLE(TC_16B_REQUESTS, UINT64, AVERAGE), 7517ec681f3Smrg COUNTABLE(TC_32B_REQUESTS, UINT64, AVERAGE), 7527ec681f3Smrg COUNTABLE(PA_REQUESTS, UINT64, AVERAGE), 7537ec681f3Smrg COUNTABLE(PA_DATA_BYTES_WRITTEN, UINT64, AVERAGE), 7547ec681f3Smrg COUNTABLE(PA_WRITE_CLEAN_RESPONSES, UINT64, AVERAGE), 7557ec681f3Smrg COUNTABLE(PA_CYCLES_HELD_OFF, UINT64, AVERAGE), 7567ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_0, UINT64, AVERAGE), 7577ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_1, UINT64, AVERAGE), 7587ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_2, UINT64, AVERAGE), 7597ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_3, UINT64, AVERAGE), 7607ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_4, UINT64, AVERAGE), 7617ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_5, UINT64, AVERAGE), 7627ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_6, UINT64, AVERAGE), 7637ec681f3Smrg COUNTABLE(AXI_READ_REQUEST_DATA_BEATS_ID_7, UINT64, AVERAGE), 7647ec681f3Smrg COUNTABLE(AXI_TOTAL_READ_REQUEST_DATA_BEATS, UINT64, AVERAGE), 7657ec681f3Smrg}; 7667ec681f3Smrg 7677ec681f3Smrgstatic const struct fd_perfcntr_countable rb_countables[] = { 7687ec681f3Smrg COUNTABLE(RBPERF_CNTX_BUSY, UINT64, AVERAGE), 7697ec681f3Smrg COUNTABLE(RBPERF_CNTX_BUSY_MAX, UINT64, AVERAGE), 7707ec681f3Smrg COUNTABLE(RBPERF_SX_QUAD_STARVED, UINT64, AVERAGE), 7717ec681f3Smrg COUNTABLE(RBPERF_SX_QUAD_STARVED_MAX, UINT64, AVERAGE), 7727ec681f3Smrg COUNTABLE(RBPERF_GA_GC_CH0_SYS_REQ, UINT64, AVERAGE), 7737ec681f3Smrg COUNTABLE(RBPERF_GA_GC_CH0_SYS_REQ_MAX, UINT64, AVERAGE), 7747ec681f3Smrg COUNTABLE(RBPERF_GA_GC_CH1_SYS_REQ, UINT64, AVERAGE), 7757ec681f3Smrg COUNTABLE(RBPERF_GA_GC_CH1_SYS_REQ_MAX, UINT64, AVERAGE), 7767ec681f3Smrg COUNTABLE(RBPERF_MH_STARVED, UINT64, AVERAGE), 7777ec681f3Smrg COUNTABLE(RBPERF_MH_STARVED_MAX, UINT64, AVERAGE), 7787ec681f3Smrg COUNTABLE(RBPERF_AZ_BC_COLOR_BUSY, UINT64, AVERAGE), 7797ec681f3Smrg COUNTABLE(RBPERF_AZ_BC_COLOR_BUSY_MAX, UINT64, AVERAGE), 7807ec681f3Smrg COUNTABLE(RBPERF_AZ_BC_Z_BUSY, UINT64, AVERAGE), 7817ec681f3Smrg COUNTABLE(RBPERF_AZ_BC_Z_BUSY_MAX, UINT64, AVERAGE), 7827ec681f3Smrg COUNTABLE(RBPERF_RB_SC_TILE_RTR_N, UINT64, AVERAGE), 7837ec681f3Smrg COUNTABLE(RBPERF_RB_SC_TILE_RTR_N_MAX, UINT64, AVERAGE), 7847ec681f3Smrg COUNTABLE(RBPERF_RB_SC_SAMP_RTR_N, UINT64, AVERAGE), 7857ec681f3Smrg COUNTABLE(RBPERF_RB_SC_SAMP_RTR_N_MAX, UINT64, AVERAGE), 7867ec681f3Smrg COUNTABLE(RBPERF_RB_SX_QUAD_RTR_N, UINT64, AVERAGE), 7877ec681f3Smrg COUNTABLE(RBPERF_RB_SX_QUAD_RTR_N_MAX, UINT64, AVERAGE), 7887ec681f3Smrg COUNTABLE(RBPERF_RB_SX_COLOR_RTR_N, UINT64, AVERAGE), 7897ec681f3Smrg COUNTABLE(RBPERF_RB_SX_COLOR_RTR_N_MAX, UINT64, AVERAGE), 7907ec681f3Smrg COUNTABLE(RBPERF_RB_SC_SAMP_LZ_BUSY, UINT64, AVERAGE), 7917ec681f3Smrg COUNTABLE(RBPERF_RB_SC_SAMP_LZ_BUSY_MAX, UINT64, AVERAGE), 7927ec681f3Smrg COUNTABLE(RBPERF_ZXP_STALL, UINT64, AVERAGE), 7937ec681f3Smrg COUNTABLE(RBPERF_ZXP_STALL_MAX, UINT64, AVERAGE), 7947ec681f3Smrg COUNTABLE(RBPERF_EVENT_PENDING, UINT64, AVERAGE), 7957ec681f3Smrg COUNTABLE(RBPERF_EVENT_PENDING_MAX, UINT64, AVERAGE), 7967ec681f3Smrg COUNTABLE(RBPERF_RB_MH_VALID, UINT64, AVERAGE), 7977ec681f3Smrg COUNTABLE(RBPERF_RB_MH_VALID_MAX, UINT64, AVERAGE), 7987ec681f3Smrg COUNTABLE(RBPERF_SX_RB_QUAD_SEND, UINT64, AVERAGE), 7997ec681f3Smrg COUNTABLE(RBPERF_SX_RB_COLOR_SEND, UINT64, AVERAGE), 8007ec681f3Smrg COUNTABLE(RBPERF_SC_RB_TILE_SEND, UINT64, AVERAGE), 8017ec681f3Smrg COUNTABLE(RBPERF_SC_RB_SAMPLE_SEND, UINT64, AVERAGE), 8027ec681f3Smrg COUNTABLE(RBPERF_SX_RB_MEM_EXPORT, UINT64, AVERAGE), 8037ec681f3Smrg COUNTABLE(RBPERF_SX_RB_QUAD_EVENT, UINT64, AVERAGE), 8047ec681f3Smrg COUNTABLE(RBPERF_SC_RB_TILE_EVENT_FILTERED, UINT64, AVERAGE), 8057ec681f3Smrg COUNTABLE(RBPERF_SC_RB_TILE_EVENT_ALL, UINT64, AVERAGE), 8067ec681f3Smrg COUNTABLE(RBPERF_RB_SC_EZ_SEND, UINT64, AVERAGE), 8077ec681f3Smrg COUNTABLE(RBPERF_RB_SX_INDEX_SEND, UINT64, AVERAGE), 8087ec681f3Smrg COUNTABLE(RBPERF_GMEM_INTFO_RD, UINT64, AVERAGE), 8097ec681f3Smrg COUNTABLE(RBPERF_GMEM_INTF1_RD, UINT64, AVERAGE), 8107ec681f3Smrg COUNTABLE(RBPERF_GMEM_INTFO_WR, UINT64, AVERAGE), 8117ec681f3Smrg COUNTABLE(RBPERF_GMEM_INTF1_WR, UINT64, AVERAGE), 8127ec681f3Smrg COUNTABLE(RBPERF_RB_CP_CONTEXT_DONE, UINT64, AVERAGE), 8137ec681f3Smrg COUNTABLE(RBPERF_RB_CP_CACHE_FLUSH, UINT64, AVERAGE), 8147ec681f3Smrg COUNTABLE(RBPERF_ZPASS_DONE, UINT64, AVERAGE), 8157ec681f3Smrg COUNTABLE(RBPERF_ZCMD_VALID, UINT64, AVERAGE), 8167ec681f3Smrg COUNTABLE(RBPERF_CCMD_VALID, UINT64, AVERAGE), 8177ec681f3Smrg COUNTABLE(RBPERF_ACCUM_GRANT, UINT64, AVERAGE), 8187ec681f3Smrg COUNTABLE(RBPERF_ACCUM_C0_GRANT, UINT64, AVERAGE), 8197ec681f3Smrg COUNTABLE(RBPERF_ACCUM_C1_GRANT, UINT64, AVERAGE), 8207ec681f3Smrg COUNTABLE(RBPERF_ACCUM_FULL_BE_WR, UINT64, AVERAGE), 8217ec681f3Smrg COUNTABLE(RBPERF_ACCUM_REQUEST_NO_GRANT, UINT64, AVERAGE), 8227ec681f3Smrg COUNTABLE(RBPERF_ACCUM_TIMEOUT_PULSE, UINT64, AVERAGE), 8237ec681f3Smrg COUNTABLE(RBPERF_ACCUM_LIN_TIMEOUT_PULSE, UINT64, AVERAGE), 8247ec681f3Smrg COUNTABLE(RBPERF_ACCUM_CAM_HIT_FLUSHING, UINT64, AVERAGE), 8257ec681f3Smrg}; 8267ec681f3Smrg 8277ec681f3Smrgstatic const struct fd_perfcntr_counter pa_su_counters[] = { 8287ec681f3Smrg COUNTER(PA_SU_PERFCOUNTER0_SELECT, PA_SU_PERFCOUNTER0_LOW, PA_SU_PERFCOUNTER0_HI), 8297ec681f3Smrg COUNTER(PA_SU_PERFCOUNTER1_SELECT, PA_SU_PERFCOUNTER1_LOW, PA_SU_PERFCOUNTER1_HI), 8307ec681f3Smrg COUNTER(PA_SU_PERFCOUNTER2_SELECT, PA_SU_PERFCOUNTER2_LOW, PA_SU_PERFCOUNTER2_HI), 8317ec681f3Smrg COUNTER(PA_SU_PERFCOUNTER3_SELECT, PA_SU_PERFCOUNTER3_LOW, PA_SU_PERFCOUNTER3_HI), 8327ec681f3Smrg}; 8337ec681f3Smrg 8347ec681f3Smrgstatic const struct fd_perfcntr_counter pa_sc_counters[] = { 8357ec681f3Smrg COUNTER(PA_SC_PERFCOUNTER0_SELECT, PA_SC_PERFCOUNTER0_LOW, PA_SC_PERFCOUNTER0_HI), 8367ec681f3Smrg}; 8377ec681f3Smrg 8387ec681f3Smrgstatic const struct fd_perfcntr_counter vgt_counters[] = { 8397ec681f3Smrg COUNTER(VGT_PERFCOUNTER0_SELECT, VGT_PERFCOUNTER0_LOW, VGT_PERFCOUNTER0_HI), 8407ec681f3Smrg COUNTER(VGT_PERFCOUNTER1_SELECT, VGT_PERFCOUNTER1_LOW, VGT_PERFCOUNTER1_HI), 8417ec681f3Smrg COUNTER(VGT_PERFCOUNTER2_SELECT, VGT_PERFCOUNTER2_LOW, VGT_PERFCOUNTER2_HI), 8427ec681f3Smrg COUNTER(VGT_PERFCOUNTER3_SELECT, VGT_PERFCOUNTER3_LOW, VGT_PERFCOUNTER3_HI), 8437ec681f3Smrg}; 8447ec681f3Smrg 8457ec681f3Smrgstatic const struct fd_perfcntr_counter tcr_counters[] = { 8467ec681f3Smrg COUNTER(TCR_PERFCOUNTER0_SELECT, TCR_PERFCOUNTER0_LOW, TCR_PERFCOUNTER0_HI), 8477ec681f3Smrg COUNTER(TCR_PERFCOUNTER1_SELECT, TCR_PERFCOUNTER1_LOW, TCR_PERFCOUNTER1_HI), 8487ec681f3Smrg}; 8497ec681f3Smrg 8507ec681f3Smrgstatic const struct fd_perfcntr_counter tp0_counters[] = { 8517ec681f3Smrg COUNTER(TP0_PERFCOUNTER0_SELECT, TP0_PERFCOUNTER0_LOW, TP0_PERFCOUNTER0_HI), 8527ec681f3Smrg COUNTER(TP0_PERFCOUNTER1_SELECT, TP0_PERFCOUNTER1_LOW, TP0_PERFCOUNTER1_HI), 8537ec681f3Smrg}; 8547ec681f3Smrg 8557ec681f3Smrgstatic const struct fd_perfcntr_counter tcm_counters[] = { 8567ec681f3Smrg COUNTER(TCM_PERFCOUNTER0_SELECT, TCM_PERFCOUNTER0_LOW, TCM_PERFCOUNTER0_HI), 8577ec681f3Smrg COUNTER(TCM_PERFCOUNTER1_SELECT, TCM_PERFCOUNTER1_LOW, TCM_PERFCOUNTER1_HI), 8587ec681f3Smrg}; 8597ec681f3Smrg 8607ec681f3Smrgstatic const struct fd_perfcntr_counter tcf_counters[] = { 8617ec681f3Smrg COUNTER(TCF_PERFCOUNTER0_SELECT, TCF_PERFCOUNTER0_LOW, TCF_PERFCOUNTER0_HI), 8627ec681f3Smrg COUNTER(TCF_PERFCOUNTER1_SELECT, TCF_PERFCOUNTER1_LOW, TCF_PERFCOUNTER1_HI), 8637ec681f3Smrg COUNTER(TCF_PERFCOUNTER2_SELECT, TCF_PERFCOUNTER2_LOW, TCF_PERFCOUNTER2_HI), 8647ec681f3Smrg COUNTER(TCF_PERFCOUNTER3_SELECT, TCF_PERFCOUNTER3_LOW, TCF_PERFCOUNTER3_HI), 8657ec681f3Smrg COUNTER(TCF_PERFCOUNTER4_SELECT, TCF_PERFCOUNTER4_LOW, TCF_PERFCOUNTER4_HI), 8667ec681f3Smrg COUNTER(TCF_PERFCOUNTER5_SELECT, TCF_PERFCOUNTER5_LOW, TCF_PERFCOUNTER5_HI), 8677ec681f3Smrg COUNTER(TCF_PERFCOUNTER6_SELECT, TCF_PERFCOUNTER6_LOW, TCF_PERFCOUNTER6_HI), 8687ec681f3Smrg COUNTER(TCF_PERFCOUNTER7_SELECT, TCF_PERFCOUNTER7_LOW, TCF_PERFCOUNTER7_HI), 8697ec681f3Smrg COUNTER(TCF_PERFCOUNTER8_SELECT, TCF_PERFCOUNTER8_LOW, TCF_PERFCOUNTER8_HI), 8707ec681f3Smrg COUNTER(TCF_PERFCOUNTER9_SELECT, TCF_PERFCOUNTER9_LOW, TCF_PERFCOUNTER9_HI), 8717ec681f3Smrg COUNTER(TCF_PERFCOUNTER10_SELECT, TCF_PERFCOUNTER10_LOW, TCF_PERFCOUNTER10_HI), 8727ec681f3Smrg COUNTER(TCF_PERFCOUNTER11_SELECT, TCF_PERFCOUNTER11_LOW, TCF_PERFCOUNTER11_HI), 8737ec681f3Smrg}; 8747ec681f3Smrg 8757ec681f3Smrgstatic const struct fd_perfcntr_counter sq_counters[] = { 8767ec681f3Smrg COUNTER(SQ_PERFCOUNTER0_SELECT, SQ_PERFCOUNTER0_LOW, SQ_PERFCOUNTER0_HI), 8777ec681f3Smrg COUNTER(SQ_PERFCOUNTER1_SELECT, SQ_PERFCOUNTER1_LOW, SQ_PERFCOUNTER1_HI), 8787ec681f3Smrg COUNTER(SQ_PERFCOUNTER2_SELECT, SQ_PERFCOUNTER2_LOW, SQ_PERFCOUNTER2_HI), 8797ec681f3Smrg COUNTER(SQ_PERFCOUNTER3_SELECT, SQ_PERFCOUNTER3_LOW, SQ_PERFCOUNTER3_HI), 8807ec681f3Smrg}; 8817ec681f3Smrg 8827ec681f3Smrgstatic const struct fd_perfcntr_countable rbbm_countables[] = { 8837ec681f3Smrg COUNTABLE(RBBM1_COUNT, UINT64, AVERAGE), 8847ec681f3Smrg COUNTABLE(RBBM1_NRT_BUSY, UINT64, AVERAGE), 8857ec681f3Smrg COUNTABLE(RBBM1_RB_BUSY, UINT64, AVERAGE), 8867ec681f3Smrg COUNTABLE(RBBM1_SQ_CNTX0_BUSY, UINT64, AVERAGE), 8877ec681f3Smrg COUNTABLE(RBBM1_SQ_CNTX17_BUSY, UINT64, AVERAGE), 8887ec681f3Smrg COUNTABLE(RBBM1_VGT_BUSY, UINT64, AVERAGE), 8897ec681f3Smrg COUNTABLE(RBBM1_VGT_NODMA_BUSY, UINT64, AVERAGE), 8907ec681f3Smrg COUNTABLE(RBBM1_PA_BUSY, UINT64, AVERAGE), 8917ec681f3Smrg COUNTABLE(RBBM1_SC_CNTX_BUSY, UINT64, AVERAGE), 8927ec681f3Smrg COUNTABLE(RBBM1_TPC_BUSY, UINT64, AVERAGE), 8937ec681f3Smrg COUNTABLE(RBBM1_TC_BUSY, UINT64, AVERAGE), 8947ec681f3Smrg COUNTABLE(RBBM1_SX_BUSY, UINT64, AVERAGE), 8957ec681f3Smrg COUNTABLE(RBBM1_CP_COHER_BUSY, UINT64, AVERAGE), 8967ec681f3Smrg COUNTABLE(RBBM1_CP_NRT_BUSY, UINT64, AVERAGE), 8977ec681f3Smrg COUNTABLE(RBBM1_GFX_IDLE_STALL, UINT64, AVERAGE), 8987ec681f3Smrg COUNTABLE(RBBM1_INTERRUPT, UINT64, AVERAGE), 8997ec681f3Smrg}; 9007ec681f3Smrg 9017ec681f3Smrgstatic const struct fd_perfcntr_countable cp_countables[] = { 9027ec681f3Smrg COUNTABLE(ALWAYS_COUNT, UINT64, AVERAGE), 9037ec681f3Smrg COUNTABLE(TRANS_FIFO_FULL, UINT64, AVERAGE), 9047ec681f3Smrg COUNTABLE(TRANS_FIFO_AF, UINT64, AVERAGE), 9057ec681f3Smrg COUNTABLE(RCIU_PFPTRANS_WAIT, UINT64, AVERAGE), 9067ec681f3Smrg COUNTABLE(RCIU_NRTTRANS_WAIT, UINT64, AVERAGE), 9077ec681f3Smrg COUNTABLE(CSF_NRT_READ_WAIT, UINT64, AVERAGE), 9087ec681f3Smrg COUNTABLE(CSF_I1_FIFO_FULL, UINT64, AVERAGE), 9097ec681f3Smrg COUNTABLE(CSF_I2_FIFO_FULL, UINT64, AVERAGE), 9107ec681f3Smrg COUNTABLE(CSF_ST_FIFO_FULL, UINT64, AVERAGE), 9117ec681f3Smrg COUNTABLE(CSF_RING_ROQ_FULL, UINT64, AVERAGE), 9127ec681f3Smrg COUNTABLE(CSF_I1_ROQ_FULL, UINT64, AVERAGE), 9137ec681f3Smrg COUNTABLE(CSF_I2_ROQ_FULL, UINT64, AVERAGE), 9147ec681f3Smrg COUNTABLE(CSF_ST_ROQ_FULL, UINT64, AVERAGE), 9157ec681f3Smrg COUNTABLE(MIU_TAG_MEM_FULL, UINT64, AVERAGE), 9167ec681f3Smrg COUNTABLE(MIU_WRITECLEAN, UINT64, AVERAGE), 9177ec681f3Smrg COUNTABLE(MIU_NRT_WRITE_STALLED, UINT64, AVERAGE), 9187ec681f3Smrg COUNTABLE(MIU_NRT_READ_STALLED, UINT64, AVERAGE), 9197ec681f3Smrg COUNTABLE(ME_WRITE_CONFIRM_FIFO_FULL, UINT64, AVERAGE), 9207ec681f3Smrg COUNTABLE(ME_VS_DEALLOC_FIFO_FULL, UINT64, AVERAGE), 9217ec681f3Smrg COUNTABLE(ME_PS_DEALLOC_FIFO_FULL, UINT64, AVERAGE), 9227ec681f3Smrg COUNTABLE(ME_REGS_VS_EVENT_FIFO_FULL, UINT64, AVERAGE), 9237ec681f3Smrg COUNTABLE(ME_REGS_PS_EVENT_FIFO_FULL, UINT64, AVERAGE), 9247ec681f3Smrg COUNTABLE(ME_REGS_CF_EVENT_FIFO_FULL, UINT64, AVERAGE), 9257ec681f3Smrg COUNTABLE(ME_MICRO_RB_STARVED, UINT64, AVERAGE), 9267ec681f3Smrg COUNTABLE(ME_MICRO_I1_STARVED, UINT64, AVERAGE), 9277ec681f3Smrg COUNTABLE(ME_MICRO_I2_STARVED, UINT64, AVERAGE), 9287ec681f3Smrg COUNTABLE(ME_MICRO_ST_STARVED, UINT64, AVERAGE), 9297ec681f3Smrg COUNTABLE(RCIU_RBBM_DWORD_SENT, UINT64, AVERAGE), 9307ec681f3Smrg COUNTABLE(ME_BUSY_CLOCKS, UINT64, AVERAGE), 9317ec681f3Smrg COUNTABLE(ME_WAIT_CONTEXT_AVAIL, UINT64, AVERAGE), 9327ec681f3Smrg COUNTABLE(PFP_TYPE0_PACKET, UINT64, AVERAGE), 9337ec681f3Smrg COUNTABLE(PFP_TYPE3_PACKET, UINT64, AVERAGE), 9347ec681f3Smrg COUNTABLE(CSF_RB_WPTR_NEQ_RPTR, UINT64, AVERAGE), 9357ec681f3Smrg COUNTABLE(CSF_I1_SIZE_NEQ_ZERO, UINT64, AVERAGE), 9367ec681f3Smrg COUNTABLE(CSF_I2_SIZE_NEQ_ZERO, UINT64, AVERAGE), 9377ec681f3Smrg COUNTABLE(CSF_RBI1I2_FETCHING, UINT64, AVERAGE), 9387ec681f3Smrg}; 9397ec681f3Smrg 9407ec681f3Smrgstatic const struct fd_perfcntr_counter sx_counters[] = { 9417ec681f3Smrg COUNTER(SX_PERFCOUNTER0_SELECT, SX_PERFCOUNTER0_LOW, SX_PERFCOUNTER0_HI), 9427ec681f3Smrg}; 9437ec681f3Smrg 9447ec681f3Smrgstatic const struct fd_perfcntr_counter mh_counters[] = { 9457ec681f3Smrg COUNTER(MH_PERFCOUNTER0_SELECT, MH_PERFCOUNTER0_LOW, MH_PERFCOUNTER0_HI), 9467ec681f3Smrg COUNTER(MH_PERFCOUNTER1_SELECT, MH_PERFCOUNTER1_LOW, MH_PERFCOUNTER1_HI), 9477ec681f3Smrg}; 9487ec681f3Smrg 9497ec681f3Smrgstatic const struct fd_perfcntr_counter rbbm_counters[] = { 9507ec681f3Smrg COUNTER(RBBM_PERFCOUNTER0_SELECT, RBBM_PERFCOUNTER0_LO, RBBM_PERFCOUNTER0_HI), 9517ec681f3Smrg COUNTER(RBBM_PERFCOUNTER1_SELECT, RBBM_PERFCOUNTER1_LO, RBBM_PERFCOUNTER1_HI), 9527ec681f3Smrg}; 9537ec681f3Smrg 9547ec681f3Smrgstatic const struct fd_perfcntr_counter cp_counters[] = { 9557ec681f3Smrg COUNTER(CP_PERFCOUNTER_SELECT, CP_PERFCOUNTER_LO, CP_PERFCOUNTER_HI), 9567ec681f3Smrg}; 9577ec681f3Smrg 9587ec681f3Smrgstatic const struct fd_perfcntr_counter rb_counters[] = { 9597ec681f3Smrg COUNTER(RB_PERFCOUNTER0_SELECT, RB_PERFCOUNTER0_LOW, RB_PERFCOUNTER0_HI), 9607ec681f3Smrg COUNTER(RB_PERFCOUNTER1_SELECT, RB_PERFCOUNTER1_LOW, RB_PERFCOUNTER1_HI), 9617ec681f3Smrg COUNTER(RB_PERFCOUNTER2_SELECT, RB_PERFCOUNTER2_LOW, RB_PERFCOUNTER2_HI), 9627ec681f3Smrg COUNTER(RB_PERFCOUNTER3_SELECT, RB_PERFCOUNTER3_LOW, RB_PERFCOUNTER3_HI), 9637ec681f3Smrg}; 9647ec681f3Smrg 9657ec681f3Smrgconst struct fd_perfcntr_group a2xx_perfcntr_groups[] = { 9667ec681f3Smrg GROUP("CP", cp_counters, cp_countables), 9677ec681f3Smrg GROUP("PA_SU", pa_su_counters, pa_su_countables), 9687ec681f3Smrg GROUP("PA_SC", pa_sc_counters, pa_sc_countables), 9697ec681f3Smrg GROUP("VGT", vgt_counters, vgt_countables), 9707ec681f3Smrg GROUP("TCR", tcr_counters, tcr_countables), 9717ec681f3Smrg GROUP("TP0", tp0_counters, tp0_countables), 9727ec681f3Smrg GROUP("TCM", tcm_counters, tcm_countables), 9737ec681f3Smrg GROUP("TCF", tcf_counters, tcf_countables), 9747ec681f3Smrg GROUP("SQ", sq_counters, sq_countables), 9757ec681f3Smrg GROUP("SX", sx_counters, sx_countables), 9767ec681f3Smrg GROUP("MH", mh_counters, mh_countables), 9777ec681f3Smrg GROUP("RBBM", rbbm_counters, rbbm_countables), 9787ec681f3Smrg GROUP("RB", rb_counters, rb_countables), 9797ec681f3Smrg}; 9807ec681f3Smrg 9817ec681f3Smrgconst unsigned a2xx_num_perfcntr_groups = ARRAY_SIZE(a2xx_perfcntr_groups); 982