15000e7f6SLeo Yan // SPDX-License-Identifier: GPL-2.0 25000e7f6SLeo Yan 35000e7f6SLeo Yan #include "../perf_regs.h" 45000e7f6SLeo Yan #include "../../../arch/s390/include/uapi/asm/perf_regs.h" 55000e7f6SLeo Yan __perf_reg_name_s390(int id)65000e7f6SLeo Yanconst char *__perf_reg_name_s390(int id) 75000e7f6SLeo Yan { 85000e7f6SLeo Yan switch (id) { 95000e7f6SLeo Yan case PERF_REG_S390_R0: 105000e7f6SLeo Yan return "R0"; 115000e7f6SLeo Yan case PERF_REG_S390_R1: 125000e7f6SLeo Yan return "R1"; 135000e7f6SLeo Yan case PERF_REG_S390_R2: 145000e7f6SLeo Yan return "R2"; 155000e7f6SLeo Yan case PERF_REG_S390_R3: 165000e7f6SLeo Yan return "R3"; 175000e7f6SLeo Yan case PERF_REG_S390_R4: 185000e7f6SLeo Yan return "R4"; 195000e7f6SLeo Yan case PERF_REG_S390_R5: 205000e7f6SLeo Yan return "R5"; 215000e7f6SLeo Yan case PERF_REG_S390_R6: 225000e7f6SLeo Yan return "R6"; 235000e7f6SLeo Yan case PERF_REG_S390_R7: 245000e7f6SLeo Yan return "R7"; 255000e7f6SLeo Yan case PERF_REG_S390_R8: 265000e7f6SLeo Yan return "R8"; 275000e7f6SLeo Yan case PERF_REG_S390_R9: 285000e7f6SLeo Yan return "R9"; 295000e7f6SLeo Yan case PERF_REG_S390_R10: 305000e7f6SLeo Yan return "R10"; 315000e7f6SLeo Yan case PERF_REG_S390_R11: 325000e7f6SLeo Yan return "R11"; 335000e7f6SLeo Yan case PERF_REG_S390_R12: 345000e7f6SLeo Yan return "R12"; 355000e7f6SLeo Yan case PERF_REG_S390_R13: 365000e7f6SLeo Yan return "R13"; 375000e7f6SLeo Yan case PERF_REG_S390_R14: 385000e7f6SLeo Yan return "R14"; 395000e7f6SLeo Yan case PERF_REG_S390_R15: 405000e7f6SLeo Yan return "R15"; 415000e7f6SLeo Yan case PERF_REG_S390_FP0: 425000e7f6SLeo Yan return "FP0"; 435000e7f6SLeo Yan case PERF_REG_S390_FP1: 445000e7f6SLeo Yan return "FP1"; 455000e7f6SLeo Yan case PERF_REG_S390_FP2: 465000e7f6SLeo Yan return "FP2"; 475000e7f6SLeo Yan case PERF_REG_S390_FP3: 485000e7f6SLeo Yan return "FP3"; 495000e7f6SLeo Yan case PERF_REG_S390_FP4: 505000e7f6SLeo Yan return "FP4"; 515000e7f6SLeo Yan case PERF_REG_S390_FP5: 525000e7f6SLeo Yan return "FP5"; 535000e7f6SLeo Yan case PERF_REG_S390_FP6: 545000e7f6SLeo Yan return "FP6"; 555000e7f6SLeo Yan case PERF_REG_S390_FP7: 565000e7f6SLeo Yan return "FP7"; 575000e7f6SLeo Yan case PERF_REG_S390_FP8: 585000e7f6SLeo Yan return "FP8"; 595000e7f6SLeo Yan case PERF_REG_S390_FP9: 605000e7f6SLeo Yan return "FP9"; 615000e7f6SLeo Yan case PERF_REG_S390_FP10: 625000e7f6SLeo Yan return "FP10"; 635000e7f6SLeo Yan case PERF_REG_S390_FP11: 645000e7f6SLeo Yan return "FP11"; 655000e7f6SLeo Yan case PERF_REG_S390_FP12: 665000e7f6SLeo Yan return "FP12"; 675000e7f6SLeo Yan case PERF_REG_S390_FP13: 685000e7f6SLeo Yan return "FP13"; 695000e7f6SLeo Yan case PERF_REG_S390_FP14: 705000e7f6SLeo Yan return "FP14"; 715000e7f6SLeo Yan case PERF_REG_S390_FP15: 725000e7f6SLeo Yan return "FP15"; 735000e7f6SLeo Yan case PERF_REG_S390_MASK: 745000e7f6SLeo Yan return "MASK"; 755000e7f6SLeo Yan case PERF_REG_S390_PC: 765000e7f6SLeo Yan return "PC"; 775000e7f6SLeo Yan default: 785000e7f6SLeo Yan return NULL; 795000e7f6SLeo Yan } 805000e7f6SLeo Yan 815000e7f6SLeo Yan return NULL; 825000e7f6SLeo Yan } 835000e7f6SLeo Yan __perf_reg_ip_s390(void)84*34af56afSLeo Yanuint64_t __perf_reg_ip_s390(void) 85*34af56afSLeo Yan { 86*34af56afSLeo Yan return PERF_REG_S390_PC; 87*34af56afSLeo Yan } 88*34af56afSLeo Yan __perf_reg_sp_s390(void)89*34af56afSLeo Yanuint64_t __perf_reg_sp_s390(void) 90*34af56afSLeo Yan { 91*34af56afSLeo Yan return PERF_REG_S390_R15; 92*34af56afSLeo Yan } 93