~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/tools/perf/util/perf-regs-arch/perf_regs_s390.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /tools/perf/util/perf-regs-arch/perf_regs_s390.c (Architecture i386) and /tools/perf/util/perf-regs-arch/perf_regs_s390.c (Architecture mips)


  1 // SPDX-License-Identifier: GPL-2.0                 1 // SPDX-License-Identifier: GPL-2.0
  2                                                     2 
  3 #include "../perf_regs.h"                           3 #include "../perf_regs.h"
  4 #include "../../../arch/s390/include/uapi/asm/      4 #include "../../../arch/s390/include/uapi/asm/perf_regs.h"
  5                                                     5 
  6 const char *__perf_reg_name_s390(int id)            6 const char *__perf_reg_name_s390(int id)
  7 {                                                   7 {
  8         switch (id) {                               8         switch (id) {
  9         case PERF_REG_S390_R0:                      9         case PERF_REG_S390_R0:
 10                 return "R0";                       10                 return "R0";
 11         case PERF_REG_S390_R1:                     11         case PERF_REG_S390_R1:
 12                 return "R1";                       12                 return "R1";
 13         case PERF_REG_S390_R2:                     13         case PERF_REG_S390_R2:
 14                 return "R2";                       14                 return "R2";
 15         case PERF_REG_S390_R3:                     15         case PERF_REG_S390_R3:
 16                 return "R3";                       16                 return "R3";
 17         case PERF_REG_S390_R4:                     17         case PERF_REG_S390_R4:
 18                 return "R4";                       18                 return "R4";
 19         case PERF_REG_S390_R5:                     19         case PERF_REG_S390_R5:
 20                 return "R5";                       20                 return "R5";
 21         case PERF_REG_S390_R6:                     21         case PERF_REG_S390_R6:
 22                 return "R6";                       22                 return "R6";
 23         case PERF_REG_S390_R7:                     23         case PERF_REG_S390_R7:
 24                 return "R7";                       24                 return "R7";
 25         case PERF_REG_S390_R8:                     25         case PERF_REG_S390_R8:
 26                 return "R8";                       26                 return "R8";
 27         case PERF_REG_S390_R9:                     27         case PERF_REG_S390_R9:
 28                 return "R9";                       28                 return "R9";
 29         case PERF_REG_S390_R10:                    29         case PERF_REG_S390_R10:
 30                 return "R10";                      30                 return "R10";
 31         case PERF_REG_S390_R11:                    31         case PERF_REG_S390_R11:
 32                 return "R11";                      32                 return "R11";
 33         case PERF_REG_S390_R12:                    33         case PERF_REG_S390_R12:
 34                 return "R12";                      34                 return "R12";
 35         case PERF_REG_S390_R13:                    35         case PERF_REG_S390_R13:
 36                 return "R13";                      36                 return "R13";
 37         case PERF_REG_S390_R14:                    37         case PERF_REG_S390_R14:
 38                 return "R14";                      38                 return "R14";
 39         case PERF_REG_S390_R15:                    39         case PERF_REG_S390_R15:
 40                 return "R15";                      40                 return "R15";
 41         case PERF_REG_S390_FP0:                    41         case PERF_REG_S390_FP0:
 42                 return "FP0";                      42                 return "FP0";
 43         case PERF_REG_S390_FP1:                    43         case PERF_REG_S390_FP1:
 44                 return "FP1";                      44                 return "FP1";
 45         case PERF_REG_S390_FP2:                    45         case PERF_REG_S390_FP2:
 46                 return "FP2";                      46                 return "FP2";
 47         case PERF_REG_S390_FP3:                    47         case PERF_REG_S390_FP3:
 48                 return "FP3";                      48                 return "FP3";
 49         case PERF_REG_S390_FP4:                    49         case PERF_REG_S390_FP4:
 50                 return "FP4";                      50                 return "FP4";
 51         case PERF_REG_S390_FP5:                    51         case PERF_REG_S390_FP5:
 52                 return "FP5";                      52                 return "FP5";
 53         case PERF_REG_S390_FP6:                    53         case PERF_REG_S390_FP6:
 54                 return "FP6";                      54                 return "FP6";
 55         case PERF_REG_S390_FP7:                    55         case PERF_REG_S390_FP7:
 56                 return "FP7";                      56                 return "FP7";
 57         case PERF_REG_S390_FP8:                    57         case PERF_REG_S390_FP8:
 58                 return "FP8";                      58                 return "FP8";
 59         case PERF_REG_S390_FP9:                    59         case PERF_REG_S390_FP9:
 60                 return "FP9";                      60                 return "FP9";
 61         case PERF_REG_S390_FP10:                   61         case PERF_REG_S390_FP10:
 62                 return "FP10";                     62                 return "FP10";
 63         case PERF_REG_S390_FP11:                   63         case PERF_REG_S390_FP11:
 64                 return "FP11";                     64                 return "FP11";
 65         case PERF_REG_S390_FP12:                   65         case PERF_REG_S390_FP12:
 66                 return "FP12";                     66                 return "FP12";
 67         case PERF_REG_S390_FP13:                   67         case PERF_REG_S390_FP13:
 68                 return "FP13";                     68                 return "FP13";
 69         case PERF_REG_S390_FP14:                   69         case PERF_REG_S390_FP14:
 70                 return "FP14";                     70                 return "FP14";
 71         case PERF_REG_S390_FP15:                   71         case PERF_REG_S390_FP15:
 72                 return "FP15";                     72                 return "FP15";
 73         case PERF_REG_S390_MASK:                   73         case PERF_REG_S390_MASK:
 74                 return "MASK";                     74                 return "MASK";
 75         case PERF_REG_S390_PC:                     75         case PERF_REG_S390_PC:
 76                 return "PC";                       76                 return "PC";
 77         default:                                   77         default:
 78                 return NULL;                       78                 return NULL;
 79         }                                          79         }
 80                                                    80 
 81         return NULL;                               81         return NULL;
 82 }                                                  82 }
 83                                                    83 
 84 uint64_t __perf_reg_ip_s390(void)                  84 uint64_t __perf_reg_ip_s390(void)
 85 {                                                  85 {
 86         return PERF_REG_S390_PC;                   86         return PERF_REG_S390_PC;
 87 }                                                  87 }
 88                                                    88 
 89 uint64_t __perf_reg_sp_s390(void)                  89 uint64_t __perf_reg_sp_s390(void)
 90 {                                                  90 {
 91         return PERF_REG_S390_R15;                  91         return PERF_REG_S390_R15;
 92 }                                                  92 }
 93                                                    93 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php