Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bc284e5d authored by Anton Blanchard's avatar Anton Blanchard Committed by Paul Mackerras
Browse files

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: default avatarAnton Blanchard <anton@samba.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent a3ccf63e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1162,7 +1162,7 @@ static void record_and_restart(struct perf_event *event, unsigned long val,
	 */
	if (record) {
		struct perf_sample_data data = {
			.addr	= 0,
			.addr	= ~0ULL,
			.period	= event->hw.last_period,
		};