summaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorAnton Arapov <anton@redhat.com>2012-10-29 11:32:50 +0100
committerAnton Arapov <anton@redhat.com>2012-10-29 11:32:50 +0100
commit7f6dc119ae2a77a23a3c07ebefba6fd7df65a74c (patch)
tree109fdbb7cff60b946bdadae15f5de052d96abae8 /include/trace
parent4f87faf0a40754afe619316ef1e5980a1811d883 (diff)
downloadkernel-uprobes-f18.zip
kernel-uprobes-f18.tar.gz
kernel-uprobes-f18.tar.xz
fedora kernel: 1c1fad82422e58b20bf06bb371c38154b4b965dbv3.6.3-4f18
Signed-off-by: Anton Arapov <anton@redhat.com>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/kmem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/trace/events/kmem.h b/include/trace/events/kmem.h
index 5f889f1..08fa272 100644
--- a/include/trace/events/kmem.h
+++ b/include/trace/events/kmem.h
@@ -214,7 +214,7 @@ TRACE_EVENT(mm_page_alloc,
TP_printk("page=%p pfn=%lu order=%d migratetype=%d gfp_flags=%s",
__entry->page,
- page_to_pfn(__entry->page),
+ __entry->page ? page_to_pfn(__entry->page) : 0,
__entry->order,
__entry->migratetype,
show_gfp_flags(__entry->gfp_flags))
@@ -240,7 +240,7 @@ DECLARE_EVENT_CLASS(mm_page,
TP_printk("page=%p pfn=%lu order=%u migratetype=%d percpu_refill=%d",
__entry->page,
- page_to_pfn(__entry->page),
+ __entry->page ? page_to_pfn(__entry->page) : 0,
__entry->order,
__entry->migratetype,
__entry->order == 0)