Message ID | 1703138593-50486-1-git-send-email-renyu.zj@linux.alibaba.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-7878-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp210748dyi; Wed, 20 Dec 2023 22:04:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IH18b+mEoy26FkbQueYPcliFfBQ02kG37GA+RXMuF7yQhXSyHFXe2RZeVHM9iJjiokRQu5R X-Received: by 2002:a05:620a:1130:b0:780:e491:f233 with SMTP id p16-20020a05620a113000b00780e491f233mr228089qkk.64.1703138661015; Wed, 20 Dec 2023 22:04:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703138661; cv=none; d=google.com; s=arc-20160816; b=F0qlqfHp4xYJLOAsBwhsiiU/SCQ96iZsTj2Qaa6D4iSsSclTcPERrEUB7Tyt69HYKW el+/iVqymbbQ64Y7XMoMzG0O4S1CJy6QwuToXHOm74ASVdmDmD5z2Sv/cUhQ2/HuHCAT Ad0jU9u3k+r33RsMT2VCh98MAjiXDQdztbhWSYta1it+ZqXpZ6xYHUS2UeO8pCrB08v5 EfeMNyHC+ymAP7K9J1T3umHBezXqNIZ+mJvh9+l0k4+KT6oVcwTd+Pdsze3fSKuZ7GUE 7pplMkt2GnJUIyPDFxUx+tuvZ+c8v5qSlNFWgR91WDMPeOqqSnv7dInrjDFLov/+tkmI z30w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=aclkFz/cQanDb+R/BrEhodZXFCk7q3dm7rkI4/33K7I=; fh=IMHAtz+m6S1YJNoc0h9lzQWBZ/yLmPbcYOv+uvF11mY=; b=O/jnLLIBAZGWpy8c5FKoKCzqZUAjoNEbGjGb7KvcxpxupW9dPP/MyST1bLyQKg//aH Y6d2GF5gFmWyFBjrJXCsDVaZB4UnQ24MTsXH6H6yp88NSycwHYfsVm6xBaAbnxXyj+f8 qyzgS1P7KCGZ3gDRysNbe3k6BKoNAKLxfL1yvm1KtUxCJchwC7X2Z1FvnZdnJ2D5nta1 Bg7qXUVUDNaNYomCnevUHujnfhNGB31MhJKFf1IfyuGpE2LgwpkGv20PpOpPIZkuKaDU Sa2SodTagY+vfNnzjKKg3wLSzEPCo6v79ghxX6bXcd/fXnRBKwPg+qT2oSwoK0luaGSH KPqQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7878-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7878-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bs41-20020a05620a472900b007759f94727asi1623680qkb.271.2023.12.20.22.04.20 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 22:04:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-7878-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-7878-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-7878-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C9E4E1C21F1A for <ouuuleilei@gmail.com>; Thu, 21 Dec 2023 06:04:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E612ABA2F; Thu, 21 Dec 2023 06:04:08 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from out30-97.freemail.mail.aliyun.com (out30-97.freemail.mail.aliyun.com [115.124.30.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 16BA46FB9 for <linux-kernel@vger.kernel.org>; Thu, 21 Dec 2023 06:04:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R301e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VywbA6j_1703138595; Received: from srmbuffer011165236051.sqa.net(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VywbA6j_1703138595) by smtp.aliyun-inc.com; Thu, 21 Dec 2023 14:03:55 +0800 From: Jing Zhang <renyu.zj@linux.alibaba.com> To: Arnaldo Carvalho de Melo <acme@kernel.org> Cc: kajoljain <kjain@linux.ibm.com>, Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>, Ian Rogers <irogers@google.com>, Heiko Carstens <hca@linux.ibm.com>, Thomas Richter <tmricht@linux.ibm.com>, Adrian Hunter <adrian.hunter@intel.com>, Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] perf vendor events: Remove UTF-8 characters from cmn.json Date: Thu, 21 Dec 2023 14:03:13 +0800 Message-Id: <1703138593-50486-1-git-send-email-renyu.zj@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785870324904934948 X-GMAIL-MSGID: 1785870324904934948 |
Series |
perf vendor events: Remove UTF-8 characters from cmn.json
|
|
Commit Message
Jing Zhang
Dec. 21, 2023, 6:03 a.m. UTC
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")
Reported-by: Arnaldo Carvalho de Melo <acme@kernel.com>
Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com>
---
tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Em Thu, Dec 21, 2023 at 02:03:13PM +0800, Jing Zhang escreveu: > 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 Thanks, applied! - Arnaldo > Fixes: 0b4de7bdf46c5215 ("perf jevents: Add support for Arm CMN PMU aliasing") > Reported-by: Arnaldo Carvalho de Melo <acme@kernel.com> > Signed-off-by: Jing Zhang <renyu.zj@linux.alibaba.com> > --- > tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json b/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json > index 428605c..5ec157c 100644 > --- a/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json > +++ b/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json > @@ -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).*" > }, > -- > 1.8.3.1 >
diff --git a/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json b/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json index 428605c..5ec157c 100644 --- a/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json +++ b/tools/perf/pmu-events/arch/arm64/arm/cmn/sys/cmn.json @@ -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).*" },