projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c581a7
)
perf_counter, x86: Fix generic cache events on P6-mobile CPUs
author
Ingo Molnar
<
[email protected]
>
Tue, 11 Aug 2009 08:26:33 +0000
(10:26 +0200)
committer
Ingo Molnar
<
[email protected]
>
Tue, 11 Aug 2009 09:35:26 +0000
(11:35 +0200)
Johannes Stezenbach reported that 'perf stat' does not count
cache-miss and cache-references events on his Pentium-M based
laptop.
This is because we left them blank in p6_perfmon_event_map[],
fill them in.
Reported-by: Johannes Stezenbach <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Frederic Weisbecker <
[email protected]
>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/cpu/perf_counter.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/perf_counter.c
b/arch/x86/kernel/cpu/perf_counter.c
index 40e233a24d9f305d20900b4aa08b920362c63c59..fffc126dbdf09ac66469372200b220c25ff9d2c4 100644
(file)
--- a/
arch/x86/kernel/cpu/perf_counter.c
+++ b/
arch/x86/kernel/cpu/perf_counter.c
@@
-72,8
+72,8
@@
static const u64 p6_perfmon_event_map[] =
{
[PERF_COUNT_HW_CPU_CYCLES] = 0x0079,
[PERF_COUNT_HW_INSTRUCTIONS] = 0x00c0,
- [PERF_COUNT_HW_CACHE_REFERENCES] = 0x0
000
,
- [PERF_COUNT_HW_CACHE_MISSES] = 0x0
000
,
+ [PERF_COUNT_HW_CACHE_REFERENCES] = 0x0
f2e
,
+ [PERF_COUNT_HW_CACHE_MISSES] = 0x0
12e
,
[PERF_COUNT_HW_BRANCH_INSTRUCTIONS] = 0x00c4,
[PERF_COUNT_HW_BRANCH_MISSES] = 0x00c5,
[PERF_COUNT_HW_BUS_CYCLES] = 0x0062,