diff options
Diffstat (limited to 'arch/x86/include/asm')
| -rw-r--r-- | arch/x86/include/asm/hw_breakpoint.h | 1 | ||||
| -rw-r--r-- | arch/x86/include/asm/perf_event.h | 16 |
2 files changed, 14 insertions, 3 deletions
diff --git a/arch/x86/include/asm/hw_breakpoint.h b/arch/x86/include/asm/hw_breakpoint.h index 0675a7c4c20e..2a1bd8f4f23a 100644 --- a/arch/x86/include/asm/hw_breakpoint.h +++ b/arch/x86/include/asm/hw_breakpoint.h | |||
| @@ -10,7 +10,6 @@ | |||
| 10 | * (display/resolving) | 10 | * (display/resolving) |
| 11 | */ | 11 | */ |
| 12 | struct arch_hw_breakpoint { | 12 | struct arch_hw_breakpoint { |
| 13 | char *name; /* Contains name of the symbol to set bkpt */ | ||
| 14 | unsigned long address; | 13 | unsigned long address; |
| 15 | u8 len; | 14 | u8 len; |
| 16 | u8 type; | 15 | u8 type; |
diff --git a/arch/x86/include/asm/perf_event.h b/arch/x86/include/asm/perf_event.h index befd172c82ad..db6109a885a7 100644 --- a/arch/x86/include/asm/perf_event.h +++ b/arch/x86/include/asm/perf_event.h | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | #define MSR_ARCH_PERFMON_EVENTSEL0 0x186 | 18 | #define MSR_ARCH_PERFMON_EVENTSEL0 0x186 |
| 19 | #define MSR_ARCH_PERFMON_EVENTSEL1 0x187 | 19 | #define MSR_ARCH_PERFMON_EVENTSEL1 0x187 |
| 20 | 20 | ||
| 21 | #define ARCH_PERFMON_EVENTSEL0_ENABLE (1 << 22) | 21 | #define ARCH_PERFMON_EVENTSEL_ENABLE (1 << 22) |
| 22 | #define ARCH_PERFMON_EVENTSEL_ANY (1 << 21) | 22 | #define ARCH_PERFMON_EVENTSEL_ANY (1 << 21) |
| 23 | #define ARCH_PERFMON_EVENTSEL_INT (1 << 20) | 23 | #define ARCH_PERFMON_EVENTSEL_INT (1 << 20) |
| 24 | #define ARCH_PERFMON_EVENTSEL_OS (1 << 17) | 24 | #define ARCH_PERFMON_EVENTSEL_OS (1 << 17) |
| @@ -50,7 +50,7 @@ | |||
| 50 | INTEL_ARCH_INV_MASK| \ | 50 | INTEL_ARCH_INV_MASK| \ |
| 51 | INTEL_ARCH_EDGE_MASK|\ | 51 | INTEL_ARCH_EDGE_MASK|\ |
| 52 | INTEL_ARCH_UNIT_MASK|\ | 52 | INTEL_ARCH_UNIT_MASK|\ |
| 53 | INTEL_ARCH_EVTSEL_MASK) | 53 | INTEL_ARCH_EVENT_MASK) |
| 54 | 54 | ||
| 55 | #define ARCH_PERFMON_UNHALTED_CORE_CYCLES_SEL 0x3c | 55 | #define ARCH_PERFMON_UNHALTED_CORE_CYCLES_SEL 0x3c |
| 56 | #define ARCH_PERFMON_UNHALTED_CORE_CYCLES_UMASK (0x00 << 8) | 56 | #define ARCH_PERFMON_UNHALTED_CORE_CYCLES_UMASK (0x00 << 8) |
| @@ -117,6 +117,18 @@ union cpuid10_edx { | |||
| 117 | */ | 117 | */ |
| 118 | #define X86_PMC_IDX_FIXED_BTS (X86_PMC_IDX_FIXED + 16) | 118 | #define X86_PMC_IDX_FIXED_BTS (X86_PMC_IDX_FIXED + 16) |
| 119 | 119 | ||
| 120 | /* IbsFetchCtl bits/masks */ | ||
| 121 | #define IBS_FETCH_RAND_EN (1ULL<<57) | ||
| 122 | #define IBS_FETCH_VAL (1ULL<<49) | ||
| 123 | #define IBS_FETCH_ENABLE (1ULL<<48) | ||
| 124 | #define IBS_FETCH_CNT 0xFFFF0000ULL | ||
| 125 | #define IBS_FETCH_MAX_CNT 0x0000FFFFULL | ||
| 126 | |||
| 127 | /* IbsOpCtl bits */ | ||
| 128 | #define IBS_OP_CNT_CTL (1ULL<<19) | ||
| 129 | #define IBS_OP_VAL (1ULL<<18) | ||
| 130 | #define IBS_OP_ENABLE (1ULL<<17) | ||
| 131 | #define IBS_OP_MAX_CNT 0x0000FFFFULL | ||
| 120 | 132 | ||
| 121 | #ifdef CONFIG_PERF_EVENTS | 133 | #ifdef CONFIG_PERF_EVENTS |
| 122 | extern void init_hw_perf_events(void); | 134 | extern void init_hw_perf_events(void); |
