Skip to contentSkip to conversation

perf vendor events: Remove UTF-8 characters from cmn.json

PATCH Applied Jing Zhang 2 participants 2 messages Dec 21, 2023

Subsystems (3)
lore
Share & tools
lore

Jing Zhang

author
#0 lore raw

PATCH 1/1 perf vendor events: Remove UTF-8 characters from cmn.json

cmn.json contains UTF-8 characters in brief description which could break the perf build on some distros.

Fix this issue by removing the UTF-8 characters from cmn.json.

without the fix:
$find tools/perf/pmu-events/ -name "*.json" | xargs file -i | grep -v us-ascii
tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json: application/json; charset=utf-8

with the fix:
$file -i tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json: text/plain; charset=us-ascii

Fixes 0b4de7bdf46c5215 ("perf jevents: Add support for Arm CMN PMU aliasing")
---
 tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json +1 -1
index 428605c..5ec157c 100644
@@ -107,7 +107,7 @@
 		"EventName": "hnf_qos_hh_retry",
 		"EventidCode": "0xe",
 		"NodeType": "0x5",
-		"BriefDescription": "Counts number of times a HighHigh priority request is protocolretried at the HN‑F.",
+		"BriefDescription": "Counts number of times a HighHigh priority request is protocolretried at the HN-F.",
 		"Unit": "arm_cmn",
 		"Compat": "(434|436|43c|43a).*"
 	},
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw

Em Thu, Dec 21, 2023 at 02:03:13PM +0800, Jing Zhang escreveu:

Quoted 5 lines

cmn.json contains UTF-8 characters in brief description which could break the perf build on some distros.

Fix this issue by removing the UTF-8 characters from cmn.json.

Quoted 7 lines

without the fix:
$find tools/perf/pmu-events/ -name "*.json" | xargs file -i | grep -v us-ascii
tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json: application/json; charset=utf-8

with the fix:
$file -i tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json: text/plain; charset=us-ascii

Thanks, applied!

- Arnaldo

Quoted 23 lines
Fixes 0b4de7bdf46c5215 ("perf jevents: Add support for Arm CMN PMU aliasing")
---
 tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json +1 -1
index 428605c..5ec157c 100644
@@ -107,7 +107,7 @@
 		"EventName": "hnf_qos_hh_retry",
 		"EventidCode": "0xe",
 		"NodeType": "0x5",
-		"BriefDescription": "Counts number of times a HighHigh priority request is protocolretried at the HN‑F.",
+		"BriefDescription": "Counts number of times a HighHigh priority request is protocolretried at the HN-F.",
 		"Unit": "arm_cmn",
 		"Compat": "(434|436|43c|43a).*"
 	},
Signature · 1 line
1.8.3.1
Signature · 1 line
- Arnaldo