x86/mm: Add tracepoints for TLB flushes
authorDave Hansen <dave@sr71.net>
Thu, 31 Jul 2014 15:40:59 +0000 (08:40 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 31 Jul 2014 15:48:51 +0000 (08:48 -0700)
commitd17d8f9dedb9dd76fd540a5c497101529d9eb25a
tree9419fa5866856e22eb1fc26202085904556f346c
parenta23421f111bb256cdbf23dcfe15f35567ab88e98
x86/mm: Add tracepoints for TLB flushes

We don't have any good way to figure out what kinds of flushes
are being attempted.  Right now, we can try to use the vm
counters, but those only tell us what we actually did with the
hardware (one-by-one vs full) and don't tell us what was actually
_requested_.

This allows us to select out "interesting" TLB flushes that we
might want to optimize (like the ranged ones) and ignore the ones
that we have very little control over (the ones at context
switch).

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Link: http://lkml.kernel.org/r/20140731154059.4C96CBA5@viggo.jf.intel.com
Acked-by: Rik van Riel <riel@redhat.com>
Cc: Mel Gorman <mgorman@suse.de>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/mmu_context.h
arch/x86/mm/init.c
arch/x86/mm/tlb.c
include/linux/mm_types.h
include/trace/events/tlb.h [new file with mode: 0644]