perf/x86: Add an MSR PMU driver
authorAndy Lutomirski <luto@kernel.org>
Mon, 20 Jul 2015 15:49:06 +0000 (11:49 -0400)
committerIngo Molnar <mingo@kernel.org>
Tue, 4 Aug 2015 08:17:00 +0000 (10:17 +0200)
commitb7b7c7821d932ba18ef6c8eafc8536066b4c2ef4
tree5f8c3eda849b3a9357583f3c35782e6edda9f8b8
parent070e98873cf7196cad58f8b6e5278dd5533c81f0
perf/x86: Add an MSR PMU driver

This patch adds an MSR PMU to support free running MSR counters. Such
as time and freq related counters includes TSC, IA32_APERF, IA32_MPERF
and IA32_PPERF, but also SMI_COUNT.

The events are exposed in sysfs for use by perf stat and other tools.
The files are under /sys/devices/msr/events/

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Kan Liang <kan.liang@intel.com>
[ s/freq/msr/, added SMI_COUNT, fixed bugs. ]
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: acme@kernel.org
Cc: adrian.hunter@intel.com
Cc: dsahern@gmail.com
Cc: eranian@google.com
Cc: jolsa@kernel.org
Cc: mark.rutland@arm.com
Cc: namhyung@kernel.org
Link: http://lkml.kernel.org/r/1437407346-31186-1-git-send-email-kan.liang@intel.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/Makefile
arch/x86/kernel/cpu/perf_event_msr.c [new file with mode: 0644]