]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec76feb17fe00ef82113c370bafbe7653c1816e8
tree9419fa5866856e22eb1fc26202085904556f346c
parent03e4e6954de9d44cf297964b1e751fae2aebd2e7
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]