File perf-metrics-fix-parse-errors-in-skylake-metrics.patch of Package perf
56
1
From: Ian Rogers <irogers@google.com>
2
Date: Fri, 1 May 2020 10:33:24 -0700
3
Subject: perf metrics: Fix parse errors in skylake metrics
4
Git-commit: 7db61f384dae23217d9a31ca2c996ce10bc6c764
5
References: git-fixes
6
7
Remove over escaping with \\.
8
9
Fixes: fd5500989c8f (perf vendor events intel: Update metrics from TMAM 3.5)
10
Signed-off-by: Ian Rogers <irogers@google.com>
11
Acked-by: Jiri Olsa <jolsa@redhat.com>
12
Cc: Adrian Hunter <adrian.hunter@intel.com>
13
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
14
Cc: Andi Kleen <ak@linux.intel.com>
15
Cc: Haiyan Song <haiyanx.song@intel.com>
16
Cc: Jin Yao <yao.jin@linux.intel.com>
17
Cc: John Garry <john.garry@huawei.com>
18
Cc: Kajol Jain <kjain@linux.ibm.com>
19
Cc: Kan Liang <kan.liang@linux.intel.com>
20
Cc: Leo Yan <leo.yan@linaro.org>
21
Cc: Mark Rutland <mark.rutland@arm.com>
22
Cc: Namhyung Kim <namhyung@kernel.org>
23
Cc: Paul Clarke <pc@us.ibm.com>
24
Cc: Peter Zijlstra <peterz@infradead.org>
25
Cc: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
26
Cc: Song Liu <songliubraving@fb.com>
27
Cc: Stephane Eranian <eranian@google.com>
28
Link: http://lore.kernel.org/lkml/20200501173333.227162-4-irogers@google.com
29
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
30
Acked-by: Tony Jones <tonyj@suse.de>
31
---
32
tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json | 4 ++--
33
1 file changed, 2 insertions(+), 2 deletions(-)
34
35
diff --git a/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json b/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json
36
index b4f91137f40c..390bdab1be9d 100644
37
--- a/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json
38
+++ b/tools/perf/pmu-events/arch/x86/skylakex/skx-metrics.json
39
40
},
41
{
42
"BriefDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches",
43
- "MetricExpr": "1000000000 * ( cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x35\\\\\\,umask\\=0x21@ ) / ( cha_0@event\\=0x0@ / duration_time )",
44
+ "MetricExpr": "1000000000 * ( cha@event\\=0x36\\,umask\\=0x21@ / cha@event\\=0x35\\,umask\\=0x21@ ) / ( cha_0@event\\=0x0@ / duration_time )",
45
"MetricGroup": "Memory_Lat",
46
"MetricName": "DRAM_Read_Latency"
47
},
48
{
49
"BriefDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches",
50
- "MetricExpr": "cha@event\\=0x36\\\\\\,umask\\=0x21@ / cha@event\\=0x36\\\\\\,umask\\=0x21\\\\\\,thresh\\=1@",
51
+ "MetricExpr": "cha@event\\=0x36\\,umask\\=0x21@ / cha@event\\=0x36\\,umask\\=0x21\\,thresh\\=1@",
52
"MetricGroup": "Memory_BW",
53
"MetricName": "DRAM_Parallel_Reads"
54
},
55
56