]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
powerpc: perf_event: Log invalid data addresses as all 1s
authorAnton Blanchard <anton@samba.org>
Mon, 21 Sep 2009 16:56:10 +0000 (16:56 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 28 Oct 2009 05:13:02 +0000 (16:13 +1100)
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>
arch/powerpc/kernel/perf_event.c

index bbcbae183e92fce861fd800bdfa3647dae8ff31e..73c3b73bf009241aaaa7840122d6c67223c77094 100644 (file)
@@ -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,
                };