x86/mpx: Trace allocation of new bounds tables
authorDave Hansen <dave.hansen@linux.intel.com>
Sun, 7 Jun 2015 18:37:04 +0000 (11:37 -0700)
committerIngo Molnar <mingo@kernel.org>
Tue, 9 Jun 2015 10:24:32 +0000 (12:24 +0200)
commitcd4996dce18b619bd7b3acf75c91f49c77f05a97
treea6c7e86ec06dd96684b9968b92336ee0f700579d
parent2a1dcb1f796ad37028df37d96fc7c5b6b1705a43
x86/mpx: Trace allocation of new bounds tables

Bounds tables are a significant consumer of memory.  It is
important to know when they are being allocated.  Add a trace
point to trace whenever an allocation occurs and also its
virtual address.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave@sr71.net>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150607183704.EC23A93E@viggo.jf.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/trace/mpx.h
arch/x86/mm/mpx.c