perf/x86: Remove old MSR perf tracing code
authorAndi Kleen <ak@linux.intel.com>
Wed, 2 Dec 2015 01:01:00 +0000 (17:01 -0800)
committerIngo Molnar <mingo@kernel.org>
Sun, 6 Dec 2015 11:56:14 +0000 (12:56 +0100)
Now that we have generic MSR trace points we can remove the old
hackish perf MSR read tracing code.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
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>
Cc: rostedt@goodmis.org
Link: http://lkml.kernel.org/r/1449018060-1742-4-git-send-email-andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.h

index a7ab350bce98d9668cdfa23bcf575fc9583cf907..799e6bd58cc14d3feb709642cfa3214eaba536e3 100644 (file)
 
 #include <linux/perf_event.h>
 
-#if 0
-#undef wrmsrl
-#define wrmsrl(msr, val)                                               \
-do {                                                                   \
-       unsigned int _msr = (msr);                                      \
-       u64 _val = (val);                                               \
-       trace_printk("wrmsrl(%x, %Lx)\n", (unsigned int)(_msr),         \
-                       (unsigned long long)(_val));                    \
-       native_write_msr((_msr), (u32)(_val), (u32)(_val >> 32));       \
-} while (0)
-#endif
+/* To enable MSR tracing please use the generic trace points. */
 
 /*
  *          |   NHM/WSM    |      SNB     |