Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1935206rwl; Thu, 30 Mar 2023 03:45:53 -0700 (PDT) X-Google-Smtp-Source: AKy350b4lDu6wgeMNQfAH3BmgXmZ86ttOFqvBYC0jIrn9tB+I7pEjjr+RQWz7g6hTj37VhfnKunB X-Received: by 2002:a17:90a:94c6:b0:240:d04d:cf with SMTP id j6-20020a17090a94c600b00240d04d00cfmr703145pjw.2.1680173153272; Thu, 30 Mar 2023 03:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680173153; cv=none; d=google.com; s=arc-20160816; b=JGiYOsYDu9gzt4pYUx5EEuQ7oWNC2GcLlHNffe3afInZoQyCzkW7ckTkdT2X2qrJIz 7L1Bw0iEeiBWdmp1+cEaMphFUERdEIB7oLY6zSwLHnVxglpGwqPUhmphejtDMC1tUPxC N2arVinRC5X43KZokytj2rjMTD615vTvCvnjufwLrVO3hbs3nD1/FhJP1vE845H/dS2x 3WNHxzkSCDN5S18VQcpmYNnC361r6jMWEpHYN02zondxWIn53LD8FkYJXAOWblqlvAEb 2luYFDAnLBu5LeLKc/k7wNJLXhYFpvUVRSXFBl2VnCoqA6ifp2uP28GOfowKSIBSZuDJ DSmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=zo/GCQB0mH1y9ZA9mG4P9nPARAyBB6418qpnlyoAZOc=; b=duB2tLb824wDYwio2n2xPl4Knjiv8taTfeIKxNaRks6SIWXaqUMqz7S32nfBLOF/U7 GMTAO2wzrWb86Kx00NdpynnPfQJUqTzifj3CHDq5lQvHGE4mHF0Li9iHafKKAuBEGZ/N tXCOYJ0+VDVTgIX0gEaF9G31+aqZwMjE7lIk9IfnpdNN1PkBI/Dbx4MnIe0jvQiFSUN/ A1KxRbs9xBYU59yJRQy2FjFZ/0pGpkW/vY1ss/dy8BCaPnZl7719jNP8OaY7Z+7BSw7+ sOX3U2+0nnfNlcFvLurbOT8Jv3SdApvaqlC+TFKO2zot++GQF2HBQNB4WLZaL6aqofrR 2Bmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oYlWHu21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a17090ab00d00b00233f3034302si3733979pjq.46.2023.03.30.03.45.41; Thu, 30 Mar 2023 03:45:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=oYlWHu21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231206AbjC3Knw (ORCPT + 99 others); Thu, 30 Mar 2023 06:43:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbjC3Knl (ORCPT ); Thu, 30 Mar 2023 06:43:41 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 521449754; Thu, 30 Mar 2023 03:43:36 -0700 (PDT) Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 32U97oCQ006972; Thu, 30 Mar 2023 10:43:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pp1; bh=zo/GCQB0mH1y9ZA9mG4P9nPARAyBB6418qpnlyoAZOc=; b=oYlWHu21vyAr+wF1ls8i6liE98oxdrbmfvgI+np4tplbq2dxvNGyDHEB7R7CmstWPoHy AMCIiIZXk4a1mjlbf7QZ5kl7RVPH7wvfIKRsFaHa6l6ryvk41nsQH1TsndQLb+6gf9En CWUDqWRE4OawQv/TYZe91yBayBqMrsw6Y9wO7IHgOXkNmCQjyyzF2wWfnWwPl7W2w/Qg kzEkACZ23v4L9+GfCt3MViNdeg59/NY5944CMAxUmf3wmZPDft3fnaBG5CrlD1dwFbvE 9g2JPJdg/Tz0P6i+O4Y0DXaqZlAeni6JYbmpWacSgQimsCWFj9IzEcwbChP6musPgkzz iA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pmp2xvv6y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 10:43:22 +0000 Received: from m0098409.ppops.net (m0098409.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 32UAhMso028180; Thu, 30 Mar 2023 10:43:22 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3pmp2xvv6h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 10:43:22 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 32TKpn9C010293; Thu, 30 Mar 2023 10:43:19 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3phrk6nrw4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 30 Mar 2023 10:43:19 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 32UAhGW612452498 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 30 Mar 2023 10:43:16 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E67D82004B; Thu, 30 Mar 2023 10:43:15 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7E17F20040; Thu, 30 Mar 2023 10:43:11 +0000 (GMT) Received: from [9.43.72.95] (unknown [9.43.72.95]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 30 Mar 2023 10:43:10 +0000 (GMT) Message-ID: <22e4e2e2-df06-f6a9-cb68-c295db064a80@linux.ibm.com> Date: Thu, 30 Mar 2023 16:13:09 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] perf vendor events power9: Remove UTF-8 characters from json files To: Arnaldo Carvalho de Melo , Ian Rogers Cc: sukadev@linux.vnet.ibm.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, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo References: <20230328112908.113158-1-kjain@linux.ibm.com> Content-Language: en-US From: kajoljain In-Reply-To: Content-Type: text/plain; charset=UTF-8 X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: JIOGJO1L7_q__-zUpqPPvjwZu-vY-N16 X-Proofpoint-GUID: I-i3c4fi6A-SUDzfGhwdeS-TZbTUkK0K Content-Transfer-Encoding: 8bit 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-30_04,2023-03-30_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 malwarescore=0 suspectscore=0 mlxlogscore=999 spamscore=0 lowpriorityscore=0 impostorscore=0 clxscore=1015 mlxscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2303300086 X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/29/23 18:54, Arnaldo Carvalho de Melo wrote: > Em Tue, Mar 28, 2023 at 09:21:49AM -0700, Ian Rogers escreveu: >> On Tue, Mar 28, 2023 at 4:30 AM Kajol Jain wrote: >>> >>> 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. >> >> nit: s/bakes/break/ > > I'll fix that later, thans. > >>> Fix this issue by removing the UTF-8 characters from other.json and >>> pipeline.json files. >>> >>> Result without the fix patch: > > [perfbuilder@five ~]$ cat dm.log/summary > 1 23.25 ubuntu:18.04-x-powerpc : Ok powerpc-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 > 2 24.56 ubuntu:18.04-x-powerpc64 : Ok powerpc64-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 > 3 25.06 ubuntu:18.04-x-powerpc64el : Ok powerpc64le-linux-gnu-gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 > BUILD_TARBALL_HEAD=9da5ab1d38cd17fb47cbe5a1f95bca63e6ca9796 > Thanks Ian and Arnaldo for reviewing it. Thanks, Kajol Jain >>> [command]# file -i pmu-events/arch/powerpc/power9/* >>> pmu-events/arch/powerpc/power9/cache.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/floating-point.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/frontend.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/marked.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/memory.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/metrics.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/nest_metrics.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/other.json: application/json; charset=utf-8 >>> pmu-events/arch/powerpc/power9/pipeline.json: application/json; charset=utf-8 >>> pmu-events/arch/powerpc/power9/pmc.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/translation.json: application/json; charset=us-ascii >>> >>> Result with the fix patch: >>> >>> [command]# file -i pmu-events/arch/powerpc/power9/* >>> pmu-events/arch/powerpc/power9/cache.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/floating-point.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/frontend.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/marked.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/memory.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/metrics.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/nest_metrics.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/other.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/pipeline.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/pmc.json: application/json; charset=us-ascii >>> pmu-events/arch/powerpc/power9/translation.json: application/json; charset=us-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 >> >> Thanks, >> Ian >> >>> --- >>> 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/perf/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, fmsub, fnmsub) Scalar instructions only. " >>> + "BriefDescription": "two flops operation completed (fmadd, fnmadd, fmsub, 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 Flush 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 launched 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 but can't allocate to LMQ (LMQ full or other reason). Already gave dval but can't watch it for snoop_hit_larx. Need to take the “bad dval” 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 Flush 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 launched 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 but can't allocate to LMQ (LMQ full or other reason). Already gave dval but can't watch it for snoop_hit_larx. Need to take the 'bad dval' back and flush all younger ops)" >>> }, >>> { >>> "EventCode": "0x5094", >>> diff --git a/tools/perf/pmu-events/arch/powerpc/power9/pipeline.json b/tools/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 " >>> + "BriefDescription": "DP vector version of fmul, fsub, fcmp, fsel, fabs, fnabs, fres ,fsqrte, fneg" >>> }, >>> { >>> "EventCode": "0x1F142", >>> -- >>> 2.39.1 >>> >