* [PATCH] powerpc/perf_counter: Log invalid data addresses as all 1s
@ 2009-09-22 2:56 Anton Blanchard
0 siblings, 0 replies; only message in thread
From: Anton Blanchard @ 2009-09-22 2:56 UTC (permalink / raw)
To: paulus, benh, a.p.zijlstra, mingo; +Cc: linuxppc-dev
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 ~OUL instead.
Signed-off-by: Anton Blanchard <anton@samba.org>
---
Index: linux.trees.git/arch/powerpc/kernel/perf_event.c
===================================================================
--- linux.trees.git.orig/arch/powerpc/kernel/perf_event.c 2009-09-22 11:54:32.000000000 +1000
+++ linux.trees.git/arch/powerpc/kernel/perf_event.c 2009-09-22 11:59:33.000000000 +1000
@@ -1162,7 +1162,7 @@ static void record_and_restart(struct pe
*/
if (record) {
struct perf_sample_data data = {
- .addr = 0,
+ .addr = ~0ULL,
.period = event->hw.last_period,
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-22 2:56 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-22 2:56 [PATCH] powerpc/perf_counter: Log invalid data addresses as all 1s Anton Blanchard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.