perf_counter/powerpc: Fix cache event codes for POWER7
PATCH 1/1 perf_counter/powerpc: Fix cache event codes for POWER7
I had the codes for L1 D-cache load accesses and misses swapped around, and the wrong codes for LL-cache accesses and misses. This corrects them.
Reported-by Corey Ashford <[email protected]>
Signed-off-by Paul Mackerras <[email protected]>
---
Ingo, if you have perfcounter fixes that you are going to ask Linus to pull before .32, please include this.
arch/powerpc/kernel/power7-pmu.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/kernel/power7-pmu.c +3 -3
@@ -317,7 +317,7 @@ static int power7_generic_events[] = {*/ static int power7_cache_events[C (MAX )][C (OP_MAX )][C (RESULT_MAX )] = { [C (L1D )] = {/* RESULT_ACCESS RESULT_MISS */ - [C (OP_READ )] = {0x400f0 ,0xc880 }, + [C (OP_READ )] = {0xc880 ,0x400f0 }, [C (OP_WRITE )] = {0 ,0x300f0 }, [C (OP_PREFETCH )] = {0xd8b8 ,0 }, },
@@ -327,8 +327,8 @@ static int power7_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { [C (OP_PREFETCH )] = {0x408a ,0 }, }, [C(LL)] = { /* RESULT_ACCESS RESULT_MISS */ - [C (OP_READ )] = {0x6080 ,0x6084 }, - [C (OP_WRITE )] = {0x6082 ,0x6086 }, + [C (OP_READ )] = {0x16080 ,0x26080 }, + [C (OP_WRITE )] = {0x16082 ,0x26082 }, [C (OP_PREFETCH )] = {0 ,0 }, }, [C (DTLB )] = {/* RESULT_ACCESS RESULT_MISS */
Signature · 1 line
1.6.0.4
Commit-ID: a3df6f7d3090e611bcc774cd2cba45ae016d37e1 Gitweb: http://git.kernel.org/tip/a3df6f7d3090e611bcc774cd2cba45ae016d37e1 Author: Paul Mackerras <[email protected]> AuthorDate: Thu, 3 Sep 2009 11:52:02 +1000 Committer: Ingo Molnar <[email protected]> CommitDate: Thu, 3 Sep 2009 08:41:53 +0200
perf_counter/powerpc: Fix cache event codes for POWER7
I had the codes for L1 D-cache load accesses and misses swapped around, and the wrong codes for LL-cache accesses and misses. This corrects them.
Reported-by Corey Ashford <[email protected]>
Signed-off-by Paul Mackerras <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by Ingo Molnar <[email protected]>
--- arch/powerpc/kernel/power7-pmu.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/kernel/power7-pmu.c +3 -3
@@ -317,7 +317,7 @@ static int power7_generic_events[] = {*/ static int power7_cache_events[C (MAX )][C (OP_MAX )][C (RESULT_MAX )] = { [C (L1D )] = {/* RESULT_ACCESS RESULT_MISS */ - [C (OP_READ )] = {0x400f0 ,0xc880 }, + [C (OP_READ )] = {0xc880 ,0x400f0 }, [C (OP_WRITE )] = {0 ,0x300f0 }, [C (OP_PREFETCH )] = {0xd8b8 ,0 }, },
@@ -327,8 +327,8 @@ static int power7_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = { [C (OP_PREFETCH )] = {0x408a ,0 }, }, [C(LL)] = { /* RESULT_ACCESS RESULT_MISS */ - [C (OP_READ )] = {0x6080 ,0x6084 }, - [C (OP_WRITE )] = {0x6082 ,0x6086 }, + [C (OP_READ )] = {0x16080 ,0x26080 }, + [C (OP_WRITE )] = {0x16082 ,0x26082 }, [C (OP_PREFETCH )] = {0 ,0 }, }, [C (DTLB )] = {/* RESULT_ACCESS RESULT_MISS */