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

TOMOYO Linux Cross Reference
Linux/tools/arch/powerpc/include/uapi/asm/perf_regs.h

Version: ~ [ linux-6.11-rc3 ] ~ [ linux-6.10.4 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.45 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.104 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.164 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.223 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.281 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.319 ] ~ [ 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.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 #ifndef _UAPI_ASM_POWERPC_PERF_REGS_H
  3 #define _UAPI_ASM_POWERPC_PERF_REGS_H
  4 
  5 enum perf_event_powerpc_regs {
  6         PERF_REG_POWERPC_R0,
  7         PERF_REG_POWERPC_R1,
  8         PERF_REG_POWERPC_R2,
  9         PERF_REG_POWERPC_R3,
 10         PERF_REG_POWERPC_R4,
 11         PERF_REG_POWERPC_R5,
 12         PERF_REG_POWERPC_R6,
 13         PERF_REG_POWERPC_R7,
 14         PERF_REG_POWERPC_R8,
 15         PERF_REG_POWERPC_R9,
 16         PERF_REG_POWERPC_R10,
 17         PERF_REG_POWERPC_R11,
 18         PERF_REG_POWERPC_R12,
 19         PERF_REG_POWERPC_R13,
 20         PERF_REG_POWERPC_R14,
 21         PERF_REG_POWERPC_R15,
 22         PERF_REG_POWERPC_R16,
 23         PERF_REG_POWERPC_R17,
 24         PERF_REG_POWERPC_R18,
 25         PERF_REG_POWERPC_R19,
 26         PERF_REG_POWERPC_R20,
 27         PERF_REG_POWERPC_R21,
 28         PERF_REG_POWERPC_R22,
 29         PERF_REG_POWERPC_R23,
 30         PERF_REG_POWERPC_R24,
 31         PERF_REG_POWERPC_R25,
 32         PERF_REG_POWERPC_R26,
 33         PERF_REG_POWERPC_R27,
 34         PERF_REG_POWERPC_R28,
 35         PERF_REG_POWERPC_R29,
 36         PERF_REG_POWERPC_R30,
 37         PERF_REG_POWERPC_R31,
 38         PERF_REG_POWERPC_NIP,
 39         PERF_REG_POWERPC_MSR,
 40         PERF_REG_POWERPC_ORIG_R3,
 41         PERF_REG_POWERPC_CTR,
 42         PERF_REG_POWERPC_LINK,
 43         PERF_REG_POWERPC_XER,
 44         PERF_REG_POWERPC_CCR,
 45         PERF_REG_POWERPC_SOFTE,
 46         PERF_REG_POWERPC_TRAP,
 47         PERF_REG_POWERPC_DAR,
 48         PERF_REG_POWERPC_DSISR,
 49         PERF_REG_POWERPC_SIER,
 50         PERF_REG_POWERPC_MMCRA,
 51         /* Extended registers */
 52         PERF_REG_POWERPC_MMCR0,
 53         PERF_REG_POWERPC_MMCR1,
 54         PERF_REG_POWERPC_MMCR2,
 55         PERF_REG_POWERPC_MMCR3,
 56         PERF_REG_POWERPC_SIER2,
 57         PERF_REG_POWERPC_SIER3,
 58         PERF_REG_POWERPC_PMC1,
 59         PERF_REG_POWERPC_PMC2,
 60         PERF_REG_POWERPC_PMC3,
 61         PERF_REG_POWERPC_PMC4,
 62         PERF_REG_POWERPC_PMC5,
 63         PERF_REG_POWERPC_PMC6,
 64         PERF_REG_POWERPC_SDAR,
 65         PERF_REG_POWERPC_SIAR,
 66         /* Max mask value for interrupt regs w/o extended regs */
 67         PERF_REG_POWERPC_MAX = PERF_REG_POWERPC_MMCRA + 1,
 68         /* Max mask value for interrupt regs including extended regs */
 69         PERF_REG_EXTENDED_MAX = PERF_REG_POWERPC_SIAR + 1,
 70 };
 71 
 72 #define PERF_REG_PMU_MASK       ((1ULL << PERF_REG_POWERPC_MAX) - 1)
 73 
 74 /*
 75  * PERF_REG_EXTENDED_MASK value for CPU_FTR_ARCH_300
 76  * includes 11 SPRS from MMCR0 to SIAR excluding the
 77  * unsupported SPRS MMCR3, SIER2 and SIER3.
 78  */
 79 #define PERF_REG_PMU_MASK_300   \
 80         ((1ULL << PERF_REG_POWERPC_MMCR0) | (1ULL << PERF_REG_POWERPC_MMCR1) | \
 81         (1ULL << PERF_REG_POWERPC_MMCR2) | (1ULL << PERF_REG_POWERPC_PMC1) | \
 82         (1ULL << PERF_REG_POWERPC_PMC2) | (1ULL << PERF_REG_POWERPC_PMC3) | \
 83         (1ULL << PERF_REG_POWERPC_PMC4) | (1ULL << PERF_REG_POWERPC_PMC5) | \
 84         (1ULL << PERF_REG_POWERPC_PMC6) | (1ULL << PERF_REG_POWERPC_SDAR) | \
 85         (1ULL << PERF_REG_POWERPC_SIAR))
 86 
 87 /*
 88  * PERF_REG_EXTENDED_MASK value for CPU_FTR_ARCH_31
 89  * includes 14 SPRs from MMCR0 to SIAR.
 90  */
 91 #define PERF_REG_PMU_MASK_31    \
 92         (PERF_REG_PMU_MASK_300 | (1ULL << PERF_REG_POWERPC_MMCR3) | \
 93         (1ULL << PERF_REG_POWERPC_SIER2) | (1ULL << PERF_REG_POWERPC_SIER3))
 94 
 95 #endif /* _UAPI_ASM_POWERPC_PERF_REGS_H */
 96 

~ [ 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