Skip to contentSkip to conversation

powerpc/perf_counter: Log invalid data addresses as all 1s

PATCH New Anton Blanchard 1 participant 1 message Sep 22, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/perf_counter: 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 ~OUL instead.

---

arch/powerpc/kernel/perf_event.c +1 -1
Index: linux.trees.git/arch/powerpc/kernel/perf_event.c
===================================================================
@@ -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,
 		};