summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/tlb_hash64.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V2014-08-13 09:02:04 +0200
committerBenjamin Herrenschmidt2014-08-13 10:20:42 +0200
commit9e813308a5c18c58f9ccae1ec72ed4e14eaf9025 (patch)
tree3e72135c0e403930b809112552e059deaa7e5c11 /arch/powerpc/mm/tlb_hash64.c
parentpowerpc/mm: Use read barrier when creating real_pte (diff)
downloadkernel-qcow2-linux-9e813308a5c18c58f9ccae1ec72ed4e14eaf9025.tar.gz
kernel-qcow2-linux-9e813308a5c18c58f9ccae1ec72ed4e14eaf9025.tar.xz
kernel-qcow2-linux-9e813308a5c18c58f9ccae1ec72ed4e14eaf9025.zip
powerpc/thp: Add tracepoints to track hugepage invalidate
Add tracepoint to track hugepage invalidate. This help us in debugging difficult to track bugs. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/tlb_hash64.c')
-rw-r--r--arch/powerpc/mm/tlb_hash64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/mm/tlb_hash64.c b/arch/powerpc/mm/tlb_hash64.c
index 9adda5790463..d2a94b85dbc2 100644
--- a/arch/powerpc/mm/tlb_hash64.c
+++ b/arch/powerpc/mm/tlb_hash64.c
@@ -30,6 +30,8 @@
#include <asm/tlb.h>
#include <asm/bug.h>
+#include <trace/events/thp.h>
+
DEFINE_PER_CPU(struct ppc64_tlb_batch, ppc64_tlb_batch);
/*
@@ -213,6 +215,8 @@ void __flush_hash_table_range(struct mm_struct *mm, unsigned long start,
if (ptep == NULL)
continue;
pte = pte_val(*ptep);
+ if (hugepage_shift)
+ trace_hugepage_invalidate(start, pte_val(pte));
if (!(pte & _PAGE_HASHPTE))
continue;
if (unlikely(hugepage_shift && pmd_trans_huge(*(pmd_t *)pte)))