powerpc/perf: Add kernel support for new MSR[HV PR] bits in trace-imc
[linux-2.6-microblaze.git] / arch / powerpc / include / asm / imc-pmu.h
index 4da4fcb..4f89799 100644 (file)
@@ -99,6 +99,11 @@ struct trace_imc_data {
  */
 #define IMC_TRACE_RECORD_TB1_MASK      0x3ffffffffffULL
 
+/*
+ * Bit 0:1 in third DW of IMC trace record
+ * specifies the MSR[HV PR] values.
+ */
+#define IMC_TRACE_RECORD_VAL_HVPR(x)   ((x) >> 62)
 
 /*
  * Device tree parser code detects IMC pmu support and