diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-04-27 11:44:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-05-05 04:13:55 -0400 |
commit | 0dd28e2cdaff5319c86cc3ed11d1ca4cf1554046 (patch) | |
tree | c5b1ecaaf48dd7d793b6ce84bc0d0c260a7fba72 | |
parent | c796bbbe8dccd9c91ebbb99ffef33e0f73ced7bf (diff) |
perf/x86/intel/pt: Move PT specific MSR bit definitions to a private header
Nothing outside of the Intel PT driver should ever care about its MSR
bits, so there is no reason to keep them in msr-index.h. This patch
moves them to a pt-local header.
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: vince@deater.net
Link: http://lkml.kernel.org/r/1461771888-10409-3-git-send-email-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-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 |