perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers
authorPeter Zijlstra <peterz@infradead.org>
Thu, 23 Jun 2016 08:44:49 +0000 (10:44 +0200)
committerIngo Molnar <mingo@kernel.org>
Mon, 27 Jun 2016 09:34:21 +0000 (11:34 +0200)
commitd4cf1949f9689314aef962eea95df84a8288d097
tree97dd9211c7b91f1f775d66a50354acf5dd16783a
parent71adae99ed187de9fcf988cc8873ee2c3af3385f
perf/x86/intel: Add {rd,wr}lbr_{to,from} wrappers

The whole rdmsr()/wrmsr() for lbr_from got a little unweildy with the
sign extension quirk, provide a few simple wrappers to clean things up.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Carrillo-Cisneros <davidcc@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/events/intel/lbr.c