These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / tools / perf / util / perf_regs.c
index 43168fb..6b8eb13 100644 (file)
@@ -2,6 +2,11 @@
 #include "perf_regs.h"
 #include "event.h"
 
+const struct sample_reg __weak sample_reg_masks[] = {
+       SMPL_REG_END
+};
+
+#ifdef HAVE_PERF_REGS_SUPPORT
 int perf_reg_value(u64 *valp, struct regs_dump *regs, int id)
 {
        int i, idx = 0;
@@ -25,3 +30,4 @@ out:
        *valp = regs->cache_regs[id];
        return 0;
 }
+#endif