From nobody Sun May 5 12:58:29 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7AE8AC76196 for ; Tue, 28 Mar 2023 11:31:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbjC1LbN (ORCPT ); Tue, 28 Mar 2023 07:31:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjC1LbE (ORCPT ); Tue, 28 Mar 2023 07:31:04 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D92BB19A3; Tue, 28 Mar 2023 04:30:43 -0700 (PDT) Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32SA9niV032356; Tue, 28 Mar 2023 11:30:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pp1; bh=xg+YHkHsXs8AGiJdTQbMYjOZVaBsjGkAIQA4bEe0A6I=; b=O82Pp87JAook/vwJBVPqkNI781KCwMa2mBHS0JOXUBkCEpLRwFN+cHHQScU5apUCsbm2 K8ogNYtRRuNB7p8/mK4UD6YTPS7h7P4CchdMSPeg6to6nL46BP3KGhnODtffaSKjSzTj jP82EpzOnm4P+9LfPSSdHt7lETdtI6qOIZjQ8aMGarZHC/qKw0kack1FavBnge03Rz24 c7l5HM6uoIeXjUI9GPceklNzwob7G4FOTcRuQgMFu7l4YvM7A4jY8tXhAiGnlDZXI3AX cluRJnrM+IBjFzDH5whlaecPESjEkzw0KmGQUNJ9TO1ZWuuf9McPLFodB53GFE3+v4k0 Og== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3pkwy1244k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 11:30:19 +0000 Received: from m0098419.ppops.net (m0098419.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32SB0h0J004434; Tue, 28 Mar 2023 11:30:18 GMT Received: from ppma02fra.de.ibm.com (47.49.7a9f.ip4.static.sl-reverse.com [159.122.73.71]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3pkwy123v2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 11:30:18 +0000 Received: from pps.filterd (ppma02fra.de.ibm.com [127.0.0.1]) by ppma02fra.de.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32S3TmHL003455; Tue, 28 Mar 2023 11:30:01 GMT Received: from smtprelay04.fra02v.mail.ibm.com ([9.218.2.228]) by ppma02fra.de.ibm.com (PPS) with ESMTPS id 3phrk6ub3n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 28 Mar 2023 11:30:01 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay04.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32SBTvXH31064782 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Mar 2023 11:29:57 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C48DF20040; Tue, 28 Mar 2023 11:29:57 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4203420043; Tue, 28 Mar 2023 11:29:47 +0000 (GMT) Received: from li-e8dccbcc-2adc-11b2-a85c-bc1f33b9b810.ibm.com.com (unknown [9.43.76.14]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Tue, 28 Mar 2023 11:29:47 +0000 (GMT) From: Kajol Jain To: acme@kernel.org Cc: sukadev@linux.vnet.ibm.com, irogers@google.com, linux-kernel@vger.kernel.org, jolsa@kernel.org, linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com, atrajeev@linux.vnet.ibm.com, disgoel@linux.ibm.com, kjain@linux.ibm.com, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH] perf vendor events power9: Remove UTF-8 characters from json files Date: Tue, 28 Mar 2023 16:59:08 +0530 Message-Id: <20230328112908.113158-1-kjain@linux.ibm.com> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset="utf-8" X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 6Alt45yqNPqB4Hrequa2KkD-STTXbzNn X-Proofpoint-ORIG-GUID: CvoFLTqPOpcFawLY0NzQQjuuwGBPYQMY Content-Transfer-Encoding: quoted-printable X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-24_11,2023-03-28_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 mlxlogscore=999 clxscore=1011 suspectscore=0 spamscore=0 mlxscore=0 priorityscore=1501 phishscore=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303280091 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 3c22ba524304 ("perf vendor events powerpc: Update POWER9 events") added and updated power9 pmu json events. However some of the json events which are part of other.json and pipeline.json files, contains UTF-8 characters in their brief description. Having UTF-8 character could brakes the perf build on some distros. Fix this issue by removing the UTF-8 characters from other.json and pipeline.json files. Result without the fix patch: [command]# file -i pmu-events/arch/powerpc/power9/* pmu-events/arch/powerpc/power9/cache.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/floating-point.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/frontend.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/marked.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/memory.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/metrics.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/nest_metrics.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/other.json: application/json; chars= et=3Dutf-8 pmu-events/arch/powerpc/power9/pipeline.json: application/json; chars= et=3Dutf-8 pmu-events/arch/powerpc/power9/pmc.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/translation.json: application/json; chars= et=3Dus-ascii Result with the fix patch: [command]# file -i pmu-events/arch/powerpc/power9/* pmu-events/arch/powerpc/power9/cache.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/floating-point.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/frontend.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/marked.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/memory.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/metrics.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/nest_metrics.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/other.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/pipeline.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/pmc.json: application/json; chars= et=3Dus-ascii pmu-events/arch/powerpc/power9/translation.json: application/json; chars= et=3Dus-ascii Fixes: 3c22ba524304 ("perf vendor events powerpc: Update POWER9 events") Reported-by: Arnaldo Carvalho de Melo Link: https://lore.kernel.org/lkml/ZBxP77deq7ikTxwG@kernel.org/ Signed-off-by: Kajol Jain Acked-by: Ian Rogers --- tools/perf/pmu-events/arch/powerpc/power9/other.json | 4 ++-- tools/perf/pmu-events/arch/powerpc/power9/pipeline.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/pmu-events/arch/powerpc/power9/other.json b/tools/p= erf/pmu-events/arch/powerpc/power9/other.json index 3f69422c21f9..f10bd554521a 100644 --- a/tools/perf/pmu-events/arch/powerpc/power9/other.json +++ b/tools/perf/pmu-events/arch/powerpc/power9/other.json @@ -1417,7 +1417,7 @@ { "EventCode": "0x45054", "EventName": "PM_FMA_CMPL", - "BriefDescription": "two flops operation completed (fmadd, fnmadd, fms= ub, fnmsub) Scalar instructions only.=C2=A0" + "BriefDescription": "two flops operation completed (fmadd, fnmadd, fms= ub, fnmsub) Scalar instructions only." }, { "EventCode": "0x201E8", @@ -2017,7 +2017,7 @@ { "EventCode": "0xC0BC", "EventName": "PM_LSU_FLUSH_OTHER", - "BriefDescription": "Other LSU flushes including: Sync (sync ack from = L2 caused search of LRQ for oldest snooped load, This will either signal a = Precise Flush of the oldest snooped loa or a Flush Next PPC); Data Valid Fl= ush Next (several cases of this, one example is store and reload are lined = up such that a store-hit-reload scenario exists and the CDF has already lau= nched and has gotten bad/stale data); Bad Data Valid Flush Next (might be a= few cases of this, one example is a larxa (D$ hit) return data and dval bu= t can't allocate to LMQ (LMQ full or other reason). Already gave dval but c= an't watch it for snoop_hit_larx. Need to take the =E2=80=9Cbad dval=E2=80= =9D back and flush all younger ops)" + "BriefDescription": "Other LSU flushes including: Sync (sync ack from = L2 caused search of LRQ for oldest snooped load, This will either signal a = Precise Flush of the oldest snooped loa or a Flush Next PPC); Data Valid Fl= ush Next (several cases of this, one example is store and reload are lined = up such that a store-hit-reload scenario exists and the CDF has already lau= nched and has gotten bad/stale data); Bad Data Valid Flush Next (might be a= few cases of this, one example is a larxa (D$ hit) return data and dval bu= t can't allocate to LMQ (LMQ full or other reason). Already gave dval but c= an't watch it for snoop_hit_larx. Need to take the 'bad dval' back and flus= h all younger ops)" }, { "EventCode": "0x5094", diff --git a/tools/perf/pmu-events/arch/powerpc/power9/pipeline.json b/tool= s/perf/pmu-events/arch/powerpc/power9/pipeline.json index d0265f255de2..723bffa41c44 100644 --- a/tools/perf/pmu-events/arch/powerpc/power9/pipeline.json +++ b/tools/perf/pmu-events/arch/powerpc/power9/pipeline.json @@ -442,7 +442,7 @@ { "EventCode": "0x4D052", "EventName": "PM_2FLOP_CMPL", - "BriefDescription": "DP vector version of fmul, fsub, fcmp, fsel, fabs= , fnabs, fres ,fsqrte, fneg=C2=A0" + "BriefDescription": "DP vector version of fmul, fsub, fcmp, fsel, fabs= , fnabs, fres ,fsqrte, fneg" }, { "EventCode": "0x1F142", --=20 2.39.1