diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-17 03:09:13 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-23 06:45:10 -0500 |
commit | eb2b861810d4ff72454c83996b891df4e0aaff9a (patch) | |
tree | 9b99f1ec88cd3a248425a6370c700aca2db9b759 /arch/x86/include/asm/perf_counter.h | |
parent | 5c167b8585c8d91206b395d57011ead7711e322f (diff) |
x86, perfcounters: prepare for fixed-mode PMCs
Impact: refactor the x86 code for fixed-mode PMCs
Extend the data structures and rename the existing facilities
to allow for a 'generic' versus 'fixed' counter distinction.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/perf_counter.h')
-rw-r--r-- | arch/x86/include/asm/perf_counter.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/include/asm/perf_counter.h b/arch/x86/include/asm/perf_counter.h index 9dadce1124ee..dd5a4a559e2d 100644 --- a/arch/x86/include/asm/perf_counter.h +++ b/arch/x86/include/asm/perf_counter.h | |||
@@ -1,6 +1,13 @@ | |||
1 | #ifndef _ASM_X86_PERF_COUNTER_H | 1 | #ifndef _ASM_X86_PERF_COUNTER_H |
2 | #define _ASM_X86_PERF_COUNTER_H | 2 | #define _ASM_X86_PERF_COUNTER_H |
3 | 3 | ||
4 | /* | ||
5 | * Performance counter hw details: | ||
6 | */ | ||
7 | |||
8 | #define X86_PMC_MAX_GENERIC 8 | ||
9 | #define X86_PMC_MAX_FIXED 3 | ||
10 | |||
4 | #define MSR_ARCH_PERFMON_PERFCTR0 0xc1 | 11 | #define MSR_ARCH_PERFMON_PERFCTR0 0xc1 |
5 | #define MSR_ARCH_PERFMON_PERFCTR1 0xc2 | 12 | #define MSR_ARCH_PERFMON_PERFCTR1 0xc2 |
6 | 13 | ||
@@ -20,6 +27,10 @@ | |||
20 | 27 | ||
21 | #define ARCH_PERFMON_BRANCH_MISSES_RETIRED 6 | 28 | #define ARCH_PERFMON_BRANCH_MISSES_RETIRED 6 |
22 | 29 | ||
30 | /* | ||
31 | * Intel "Architectural Performance Monitoring" CPUID | ||
32 | * detection/enumeration details: | ||
33 | */ | ||
23 | union cpuid10_eax { | 34 | union cpuid10_eax { |
24 | struct { | 35 | struct { |
25 | unsigned int version_id:8; | 36 | unsigned int version_id:8; |