diff options
| author | Ingo Molnar <mingo@kernel.org> | 2012-05-09 09:22:23 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2012-05-09 09:22:23 -0400 |
| commit | ad8537cda68a8fe81776cceca6c22d54dd652ea5 (patch) | |
| tree | bbef398c784fb884ca77fc2b7bee74c4ac5e1853 /arch/x86/include/asm | |
| parent | 149936a068d83370c9dcd68894c276d4ba0f8560 (diff) | |
| parent | fab06992de6433af097c4a1d2d1b119812753ca7 (diff) | |
Merge branch 'perf/x86-ibs' into perf/core
Diffstat (limited to 'arch/x86/include/asm')
| -rw-r--r-- | arch/x86/include/asm/msr-index.h | 5 | ||||
| -rw-r--r-- | arch/x86/include/asm/perf_event.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index ccb805966f68..957ec87385af 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h | |||
| @@ -134,6 +134,8 @@ | |||
| 134 | #define MSR_AMD64_IBSFETCHCTL 0xc0011030 | 134 | #define MSR_AMD64_IBSFETCHCTL 0xc0011030 |
| 135 | #define MSR_AMD64_IBSFETCHLINAD 0xc0011031 | 135 | #define MSR_AMD64_IBSFETCHLINAD 0xc0011031 |
| 136 | #define MSR_AMD64_IBSFETCHPHYSAD 0xc0011032 | 136 | #define MSR_AMD64_IBSFETCHPHYSAD 0xc0011032 |
| 137 | #define MSR_AMD64_IBSFETCH_REG_COUNT 3 | ||
| 138 | #define MSR_AMD64_IBSFETCH_REG_MASK ((1UL<<MSR_AMD64_IBSFETCH_REG_COUNT)-1) | ||
| 137 | #define MSR_AMD64_IBSOPCTL 0xc0011033 | 139 | #define MSR_AMD64_IBSOPCTL 0xc0011033 |
| 138 | #define MSR_AMD64_IBSOPRIP 0xc0011034 | 140 | #define MSR_AMD64_IBSOPRIP 0xc0011034 |
| 139 | #define MSR_AMD64_IBSOPDATA 0xc0011035 | 141 | #define MSR_AMD64_IBSOPDATA 0xc0011035 |
| @@ -141,8 +143,11 @@ | |||
| 141 | #define MSR_AMD64_IBSOPDATA3 0xc0011037 | 143 | #define MSR_AMD64_IBSOPDATA3 0xc0011037 |
| 142 | #define MSR_AMD64_IBSDCLINAD 0xc0011038 | 144 | #define MSR_AMD64_IBSDCLINAD 0xc0011038 |
| 143 | #define MSR_AMD64_IBSDCPHYSAD 0xc0011039 | 145 | #define MSR_AMD64_IBSDCPHYSAD 0xc0011039 |
| 146 | #define MSR_AMD64_IBSOP_REG_COUNT 7 | ||
| 147 | #define MSR_AMD64_IBSOP_REG_MASK ((1UL<<MSR_AMD64_IBSOP_REG_COUNT)-1) | ||
| 144 | #define MSR_AMD64_IBSCTL 0xc001103a | 148 | #define MSR_AMD64_IBSCTL 0xc001103a |
| 145 | #define MSR_AMD64_IBSBRTARGET 0xc001103b | 149 | #define MSR_AMD64_IBSBRTARGET 0xc001103b |
| 150 | #define MSR_AMD64_IBS_REG_COUNT_MAX 8 /* includes MSR_AMD64_IBSBRTARGET */ | ||
| 146 | 151 | ||
| 147 | /* Fam 15h MSRs */ | 152 | /* Fam 15h MSRs */ |
| 148 | #define MSR_F15H_PERF_CTL 0xc0010200 | 153 | #define MSR_F15H_PERF_CTL 0xc0010200 |
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index 2291895b1836..8a3c75d824b7 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h | |||
| @@ -178,6 +178,8 @@ struct x86_pmu_capability { | |||
| 178 | #define IBS_FETCH_MAX_CNT 0x0000FFFFULL | 178 | #define IBS_FETCH_MAX_CNT 0x0000FFFFULL |
| 179 | 179 | ||
| 180 | /* IbsOpCtl bits */ | 180 | /* IbsOpCtl bits */ |
| 181 | /* lower 4 bits of the current count are ignored: */ | ||
| 182 | #define IBS_OP_CUR_CNT (0xFFFF0ULL<<32) | ||
| 181 | #define IBS_OP_CNT_CTL (1ULL<<19) | 183 | #define IBS_OP_CNT_CTL (1ULL<<19) |
| 182 | #define IBS_OP_VAL (1ULL<<18) | 184 | #define IBS_OP_VAL (1ULL<<18) |
| 183 | #define IBS_OP_ENABLE (1ULL<<17) | 185 | #define IBS_OP_ENABLE (1ULL<<17) |
