perf vendor events power9: Added nest imc metric events
authorKajol Jain <kjain@linux.ibm.com>
Fri, 3 Jul 2020 06:56:58 +0000 (12:26 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jul 2020 12:38:03 +0000 (09:38 -0300)
Added nest imc metric events.

Signed-off-by: Kajol Jain <kjain@linux.ibm.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Cc: Jin Yao <yao.jin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Nageswara R Sastry <nasastry@in.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Clarke <pc@us.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: maddy@linux.ibm.com
Link: http://lore.kernel.org/lkml/20200703065658.377467-1-kjain@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/pmu-events/arch/powerpc/power9/nest_metrics.json

index c121e52..8383a37 100644 (file)
        "MetricExpr": "(hv_24x7@PM_PB_CYC\\,chip\\=?@ )",
         "MetricName": "PowerBUS_Frequency",
         "ScaleUnit": "2.5e-7GHz"
+    },
+    {
+       "MetricExpr" : "nest_mcs01_imc@PM_MCS01_128B_RD_DISP_PORT01@ + nest_mcs01_imc@PM_MCS01_128B_RD_DISP_PORT23@",
+       "MetricName" : "mcs01-read",
+       "MetricGroup" : "memory_bw",
+       "ScaleUnit": "6.1e-5MB"
+    },
+    {
+       "MetricExpr" : "nest_mcs23_imc@PM_MCS23_128B_RD_DISP_PORT01@ + nest_mcs23_imc@PM_MCS23_128B_RD_DISP_PORT23@",
+       "MetricName" : "mcs23-read",
+       "MetricGroup" : "memory_bw",
+       "ScaleUnit": "6.1e-5MB"
+    },
+    {
+       "MetricExpr" : "nest_mcs01_imc@PM_MCS01_128B_WR_DISP_PORT01@ + nest_mcs01_imc@PM_MCS01_128B_WR_DISP_PORT23@",
+       "MetricName" : "mcs01-write",
+       "MetricGroup" : "memory_bw",
+       "ScaleUnit": "6.1e-5MB"
+    },
+    {
+       "MetricExpr" : "nest_mcs23_imc@PM_MCS23_128B_WR_DISP_PORT01@ + nest_mcs23_imc@PM_MCS23_128B_WR_DISP_PORT23@",
+       "MetricName" : "mcs23-write",
+       "MetricGroup" : "memory-bandwidth",
+       "ScaleUnit": "6.1e-5MB"
+    },
+    {
+       "MetricExpr" : "nest_powerbus0_imc@PM_PB_CYC@",
+       "MetricName" : "powerbus_freq",
+       "ScaleUnit": "1e-9GHz"
+    },
+    {
+       "MetricExpr" : "(nest_mcs01_imc@PM_MCS01_128B_RD_DISP_PORT01@ + nest_mcs01_imc@PM_MCS01_128B_RD_DISP_PORT23@ + nest_mcs23_imc@PM_MCS23_128B_RD_DISP_PORT01@ + nest_mcs23_imc@PM_MCS23_128B_RD_DISP_PORT23@ + nest_mcs01_imc@PM_MCS01_128B_WR_DISP_PORT01@ + nest_mcs01_imc@PM_MCS01_128B_WR_DISP_PORT23@ + nest_mcs23_imc@PM_MCS23_128B_WR_DISP_PORT01@ + nest_mcs23_imc@PM_MCS23_128B_WR_DISP_PORT23@)",
+       "MetricName" : "Memory-bandwidth-MCS",
+       "MetricGroup" : "memory_bw",
+       "ScaleUnit": "6.1e-5MB"
     }
 ]