diff options
| -rw-r--r-- | arch/x86/events/intel/pt.h | 24 | ||||
| -rw-r--r-- | arch/x86/include/asm/msr-index.h | 20 |
2 files changed, 24 insertions, 20 deletions
diff --git a/arch/x86/events/intel/pt.h b/arch/x86/events/intel/pt.h index 3abb5f5cccc8..81454fa4ea26 100644 --- a/arch/x86/events/intel/pt.h +++ b/arch/x86/events/intel/pt.h | |||
| @@ -20,6 +20,30 @@ | |||
| 20 | #define __INTEL_PT_H__ | 20 | #define __INTEL_PT_H__ |
| 21 | 21 | ||
| 22 | /* | 22 | /* |
| 23 | * PT MSR bit definitions | ||
| 24 | */ | ||
| 25 | #define RTIT_CTL_TRACEEN BIT(0) | ||
| 26 | #define RTIT_CTL_CYCLEACC BIT(1) | ||
| 27 | #define RTIT_CTL_OS BIT(2) | ||
| 28 | #define RTIT_CTL_USR BIT(3) | ||
| 29 | #define RTIT_CTL_CR3EN BIT(7) | ||
| 30 | #define RTIT_CTL_TOPA BIT(8) | ||
| 31 | #define RTIT_CTL_MTC_EN BIT(9) | ||
| 32 | #define RTIT_CTL_TSC_EN BIT(10) | ||
| 33 | #define RTIT_CTL_DISRETC BIT(11) | ||
| 34 | #define RTIT_CTL_BRANCH_EN BIT(13) | ||
| 35 | #define RTIT_CTL_MTC_RANGE_OFFSET 14 | ||
| 36 | #define RTIT_CTL_MTC_RANGE (0x0full << RTIT_CTL_MTC_RANGE_OFFSET) | ||
| 37 | #define RTIT_CTL_CYC_THRESH_OFFSET 19 | ||
| 38 | #define RTIT_CTL_CYC_THRESH (0x0full << RTIT_CTL_CYC_THRESH_OFFSET) | ||
| 39 | #define RTIT_CTL_PSB_FREQ_OFFSET 24 | ||
| 40 | #define RTIT_CTL_PSB_FREQ (0x0full << RTIT_CTL_PSB_FREQ_OFFSET) | ||
| 41 | #define RTIT_STATUS_CONTEXTEN BIT(1) | ||
| 42 | #define RTIT_STATUS_TRIGGEREN BIT(2) | ||
| 43 | #define RTIT_STATUS_ERROR BIT(4) | ||
| 44 | #define RTIT_STATUS_STOPPED BIT(5) | ||
| 45 | |||
| 46 | /* | ||
| 23 | * Single-entry ToPA: when this close to region boundary, switch | 47 | * Single-entry ToPA: when this close to region boundary, switch |
| 24 | * buffers to avoid losing data. | 48 | * buffers to avoid losing data. |
| 25 | */ | 49 | */ |
diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index 94555b4d85cf..7193577d8bc9 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h | |||
| @@ -89,27 +89,7 @@ | |||
| 89 | #define MSR_PEBS_LD_LAT_THRESHOLD 0x000003f6 | 89 | #define MSR_PEBS_LD_LAT_THRESHOLD 0x000003f6 |
| 90 | 90 | ||
| 91 | #define MSR_IA32_RTIT_CTL 0x00000570 | 91 | #define MSR_IA32_RTIT_CTL 0x00000570 |
| 92 | #define RTIT_CTL_TRACEEN BIT(0) | ||
| 93 | #define RTIT_CTL_CYCLEACC BIT(1) | ||
| 94 | #define RTIT_CTL_OS BIT(2) | ||
| 95 | #define RTIT_CTL_USR BIT(3) | ||
| 96 | #define RTIT_CTL_CR3EN BIT(7) | ||
| 97 | #define RTIT_CTL_TOPA BIT(8) | ||
| 98 | #define RTIT_CTL_MTC_EN BIT(9) | ||
| 99 | #define RTIT_CTL_TSC_EN BIT(10) | ||
| 100 | #define RTIT_CTL_DISRETC BIT(11) | ||
| 101 | #define RTIT_CTL_BRANCH_EN BIT(13) | ||
| 102 | #define RTIT_CTL_MTC_RANGE_OFFSET 14 | ||
| 103 | #define RTIT_CTL_MTC_RANGE (0x0full << RTIT_CTL_MTC_RANGE_OFFSET) | ||
| 104 | #define RTIT_CTL_CYC_THRESH_OFFSET 19 | ||
| 105 | #define RTIT_CTL_CYC_THRESH (0x0full << RTIT_CTL_CYC_THRESH_OFFSET) | ||
| 106 | #define RTIT_CTL_PSB_FREQ_OFFSET 24 | ||
| 107 | #define RTIT_CTL_PSB_FREQ (0x0full << RTIT_CTL_PSB_FREQ_OFFSET) | ||
| 108 | #define MSR_IA32_RTIT_STATUS 0x00000571 | 92 | #define MSR_IA32_RTIT_STATUS 0x00000571 |
| 109 | #define RTIT_STATUS_CONTEXTEN BIT(1) | ||
| 110 | #define RTIT_STATUS_TRIGGEREN BIT(2) | ||
| 111 | #define RTIT_STATUS_ERROR BIT(4) | ||
| 112 | #define RTIT_STATUS_STOPPED BIT(5) | ||
| 113 | #define MSR_IA32_RTIT_CR3_MATCH 0x00000572 | 93 | #define MSR_IA32_RTIT_CR3_MATCH 0x00000572 |
| 114 | #define MSR_IA32_RTIT_OUTPUT_BASE 0x00000560 | 94 | #define MSR_IA32_RTIT_OUTPUT_BASE 0x00000560 |
| 115 | #define MSR_IA32_RTIT_OUTPUT_MASK 0x00000561 | 95 | #define MSR_IA32_RTIT_OUTPUT_MASK 0x00000561 |
