diff options
author | Robert Richter <robert.richter@amd.com> | 2010-03-29 12:36:50 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-04-02 13:52:02 -0400 |
commit | 948b1bb89a44561560531394c18da4a99215f772 (patch) | |
tree | b44054c805d049ffeba328c3bfc3063f5d8d11ba /arch/x86/kernel/cpu/perf_event_p6.c | |
parent | ec5e61aabeac58670691bd0613388d16697d0d81 (diff) |
perf, x86: Undo some some *_counter* -> *_event* renames
The big rename:
cdd6c48 perf: Do the big rename: Performance Counters -> Performance Events
accidentally renamed some members of stucts that were named after
registers in the spec. To avoid confusion this patch reverts some
changes. The related specs are MSR descriptions in AMD's BKDGs and the
ARCHITECTURAL PERFORMANCE MONITORING section in the Intel 64 and IA-32
Architectures Software Developer's Manuals.
This patch does:
$ sed -i -e 's:num_events:num_counters:g' \
arch/x86/include/asm/perf_event.h \
arch/x86/kernel/cpu/perf_event_amd.c \
arch/x86/kernel/cpu/perf_event.c \
arch/x86/kernel/cpu/perf_event_intel.c \
arch/x86/kernel/cpu/perf_event_p6.c \
arch/x86/kernel/cpu/perf_event_p4.c \
arch/x86/oprofile/op_model_ppro.c
$ sed -i -e 's:event_bits:cntval_bits:g' -e 's:event_mask:cntval_mask:g' \
arch/x86/kernel/cpu/perf_event_amd.c \
arch/x86/kernel/cpu/perf_event.c \
arch/x86/kernel/cpu/perf_event_intel.c \
arch/x86/kernel/cpu/perf_event_p6.c \
arch/x86/kernel/cpu/perf_event_p4.c
Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1269880612-25800-2-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/perf_event_p6.c')
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_p6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_p6.c b/arch/x86/kernel/cpu/perf_event_p6.c index 877182c850df..b26fbc7eb93c 100644 --- a/arch/x86/kernel/cpu/perf_event_p6.c +++ b/arch/x86/kernel/cpu/perf_event_p6.c | |||
@@ -119,7 +119,7 @@ static __initconst struct x86_pmu p6_pmu = { | |||
119 | .apic = 1, | 119 | .apic = 1, |
120 | .max_period = (1ULL << 31) - 1, | 120 | .max_period = (1ULL << 31) - 1, |
121 | .version = 0, | 121 | .version = 0, |
122 | .num_events = 2, | 122 | .num_counters = 2, |
123 | /* | 123 | /* |
124 | * Events have 40 bits implemented. However they are designed such | 124 | * Events have 40 bits implemented. However they are designed such |
125 | * that bits [32-39] are sign extensions of bit 31. As such the | 125 | * that bits [32-39] are sign extensions of bit 31. As such the |
@@ -127,8 +127,8 @@ static __initconst struct x86_pmu p6_pmu = { | |||
127 | * | 127 | * |
128 | * See IA-32 Intel Architecture Software developer manual Vol 3B | 128 | * See IA-32 Intel Architecture Software developer manual Vol 3B |
129 | */ | 129 | */ |
130 | .event_bits = 32, | 130 | .cntval_bits = 32, |
131 | .event_mask = (1ULL << 32) - 1, | 131 | .cntval_mask = (1ULL << 32) - 1, |
132 | .get_event_constraints = x86_get_event_constraints, | 132 | .get_event_constraints = x86_get_event_constraints, |
133 | .event_constraints = p6_event_constraints, | 133 | .event_constraints = p6_event_constraints, |
134 | }; | 134 | }; |