]> asedeno.scripts.mit.edu Git - linux.git/commit
perf/x86/intel/pt: Split ToPA metadata and page layout
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Wed, 21 Aug 2019 12:47:25 +0000 (15:47 +0300)
committerIngo Molnar <mingo@kernel.org>
Mon, 26 Aug 2019 10:00:14 +0000 (12:00 +0200)
commit38bb8d77d0b932a0773b5de2ef42479409314f96
tree3388d60025a94f2f93ad3194e5fe23749f7abaf2
parent539f7c26b41d4ed7d88dd9756de3966ae7ca07b4
perf/x86/intel/pt: Split ToPA metadata and page layout

PT uses page sized ToPA tables, where the ToPA table resides at the bottom
and its driver-specific metadata taking up a few words at the top of the
page. The split is currently calculated manually and needs to be redone
every time a field is added to or removed from the metadata structure.
Also, the 32-bit version can be made smaller.

By splitting the table and metadata into separate structures, we are making
the compiler figure out the division of the page.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Link: http://lkml.kernel.org/r/20190821124727.73310-5-alexander.shishkin@linux.intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/pt.c