aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/perf_event.c
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2009-09-21 12:56:10 -0400
committerPaul Mackerras <paulus@samba.org>2009-10-28 01:13:02 -0400
commitbc284e5d9d6da48934a177db92bf8e09b96a9cb8 (patch)
tree23b3cfa9b04498de0e80cb0d9226befd130cb9ba /arch/powerpc/kernel/perf_event.c
parenta3ccf63ee643ef243cbf8918da8b3f9238f10029 (diff)
powerpc: perf_event: Log invalid data addresses as all 1s
When we take an exception and the SDAR isn't synchronised we currently log 0 as the address. Unfortunately this is a pretty common value, so use ~0UL instead. Signed-off-by: Anton Blanchard <anton@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/perf_event.c')
-rw-r--r--arch/powerpc/kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/perf_event.c b/arch/powerpc/kernel/perf_event.c
index bbcbae183e92..73c3b73bf009 100644
--- a/arch/powerpc/kernel/perf_event.c
+++ b/arch/powerpc/kernel/perf_event.c
@@ -1162,7 +1162,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
1162 */ 1162 */
1163 if (record) { 1163 if (record) {
1164 struct perf_sample_data data = { 1164 struct perf_sample_data data = {
1165 .addr = 0, 1165 .addr = ~0ULL,
1166 .period = event->hw.last_period, 1166 .period = event->hw.last_period,
1167 }; 1167 };
1168 1168