aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2019-06-28 18:07:35 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-07-02 15:08:16 -0400
commit4df79ba3eb1b82e2939fb984b36a0e71bbed611b (patch)
treec67651fc5033475998b4d47f329aced6c1f8e733 /tools/perf
parent734ac47e23aee12e1c16a4dd52d7c1cb893eaf6c (diff)
perf vendor events intel: Metric fixes for SKX/CLX
- Add a missing filter for the DRAM_Latency / DRAM_Parallel_Reads metrics - Remove the useless PMM_* metrics from Skylake Signed-off-by: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20190628220737.13259-1-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json4
-rw-r--r--tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json22
2 files changed, 4 insertions, 22 deletions
diff --git a/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json b/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json
index 1a1a3501180a..a382b115633d 100644
--- a/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json
+++ b/tools/perf/pmu-events/arch/x86/cascadelakex/clx-metrics.json
@@ -314,13 +314,13 @@
314 "MetricName": "DRAM_BW_Use" 314 "MetricName": "DRAM_BW_Use"
315 }, 315 },
316 { 316 {
317 "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x35\\\\\\,umask\\=0x21@ ) / ( cha_0@event\\=0x0@ / duration_time )", 317 "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x35\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ ) / ( cha_0@event\\=0x0@ / duration_time )",
318 "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches", 318 "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches",
319 "MetricGroup": "Memory_Lat", 319 "MetricGroup": "Memory_Lat",
320 "MetricName": "DRAM_Read_Latency" 320 "MetricName": "DRAM_Read_Latency"
321 }, 321 },
322 { 322 {
323 "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1@", 323 "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1\\\\\\,config\\=0x40433@",
324 "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches", 324 "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches",
325 "MetricGroup": "Memory_BW", 325 "MetricGroup": "Memory_BW",
326 "MetricName": "DRAM_Parallel_Reads" 326 "MetricName": "DRAM_Parallel_Reads"
diff --git a/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json b/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json
index 56e03ba771f4..35b255fa6a79 100644
--- a/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json
+++ b/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json
@@ -314,36 +314,18 @@
314 "MetricName": "DRAM_BW_Use" 314 "MetricName": "DRAM_BW_Use"
315 }, 315 },
316 { 316 {
317 "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x35\\\\\\,umask\\=0x21@ ) / ( cha_0@event\\=0x0@ / duration_time )", 317 "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x35\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ ) / ( cha_0@event\\=0x0@ / duration_time )",
318 "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches", 318 "BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches",
319 "MetricGroup": "Memory_Lat", 319 "MetricGroup": "Memory_Lat",
320 "MetricName": "DRAM_Read_Latency" 320 "MetricName": "DRAM_Read_Latency"
321 }, 321 },
322 { 322 {
323 "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1@", 323 "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,config\\=0x40433@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1\\\\\\,config\\=0x40433@",
324 "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches", 324 "BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches",
325 "MetricGroup": "Memory_BW", 325 "MetricGroup": "Memory_BW",
326 "MetricName": "DRAM_Parallel_Reads" 326 "MetricName": "DRAM_Parallel_Reads"
327 }, 327 },
328 { 328 {
329 "MetricExpr": "( 1000000000 * ( imc@event\\=0xe0\\\\\\,umask\\=0x1@ / imc@event\\=0xe3@ ) / imc_0@event\\=0x0@ ) if 1 if 0 == 1 else 0 else 0",
330 "BriefDescription": "Average latency of data read request to external 3D X-Point memory [in nanoseconds]. Accounts for demand loads and L1/L2 data-read prefetches",
331 "MetricGroup": "Memory_Lat",
332 "MetricName": "MEM_PMM_Read_Latency"
333 },
334 {
335 "MetricExpr": "( ( 64 * imc@event\\=0xe3@ / 1000000000 ) / duration_time ) if 1 if 0 == 1 else 0 else 0",
336 "BriefDescription": "Average 3DXP Memory Bandwidth Use for reads [GB / sec]",
337 "MetricGroup": "Memory_BW",
338 "MetricName": "PMM_Read_BW"
339 },
340 {
341 "MetricExpr": "( ( 64 * imc@event\\=0xe7@ / 1000000000 ) / duration_time ) if 1 if 0 == 1 else 0 else 0",
342 "BriefDescription": "Average 3DXP Memory Bandwidth Use for Writes [GB / sec]",
343 "MetricGroup": "Memory_BW",
344 "MetricName": "PMM_Write_BW"
345 },
346 {
347 "MetricExpr": "cha_0@event\\=0x0@", 329 "MetricExpr": "cha_0@event\\=0x0@",
348 "BriefDescription": "Socket actual clocks when any core is active on that socket", 330 "BriefDescription": "Socket actual clocks when any core is active on that socket",
349 "MetricGroup": "", 331 "MetricGroup": "",