Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp617436rwl; Wed, 29 Mar 2023 06:29:54 -0700 (PDT) X-Google-Smtp-Source: AK7set+9vm7YYU4usO1miOcXhsJTvqX6i6gi0SyelXMEHTkOBI1sXiMsqs/vJwjZVrpKQh/3oVWv X-Received: by 2002:a05:6a20:6da2:b0:d9:f6ee:3b8f with SMTP id gl34-20020a056a206da200b000d9f6ee3b8fmr15764331pzb.17.1680096594486; Wed, 29 Mar 2023 06:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680096594; cv=none; d=google.com; s=arc-20160816; b=d9jVdrQE2JMefhj86HS0Zo46gEr5J59qPbZ6d4Et60VTmeegThXbqKWvDjnMtURQ8U 97UdQ6uppfMS4jtnJ+45SQb/4nA9UjL24UROqaWDSfNkKAyBdx//MiDjMbZa8WbCzRtu I1+0/FLyiI5dxcNQAkFvQKCNd5iQBsj4FzZg7nvkgITNInIhJCT9lP6ESS8diWe20aM0 5ZbPTWU8qgL2KLO9Efpsr4Wy7ALx8ZR7h+/bQu69vLI0A5YGKIUdD/LX4s2d8mxQu0BL 4E/CqCcxtsuI44b4pp3W7bObFp6aEuWPtM2HUociDe1qHZi7Ta7ZWqg1exiIoyOJQdzR W29g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7BT+BCfFDEalwC2mHCOqHNw9H1E+vTAxZzsHbEoHKQs=; b=frlISjiKloD13YqJ9+KmC1NKxIQZV9kCV8dql2rOdQwxqDp+wI+FE0NRPaNtwYAqKe xM1p7JJwr8yCtDy4jq+P7wD4qGaWQniHOU22FhsWj3ez9gS06SNe09v90Rs2IUPYzSqc 6hIWj6M4IIzcmvQ4FEkbs5TqccuezReZj00yZQSdNYy7TApxa/WHN0tj46RuGrUtmDmT je6ALgh1Tc8Hnp93CmvfmK1wdh+WNPj+ho5kYUbPzgDEJq6uYg7gUUQAZvosmwVCwpcv WzV5Vyi7q62qnc+HbYjYhvDQk/IDXidU9BlF0hdo09A188dFlZMa0v5t9AWZmU7/olsv HaFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WgjzEvDb; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j11-20020a056a00130b00b005a8ac97d6cdsi31870230pfu.344.2023.03.29.06.29.42; Wed, 29 Mar 2023 06:29:54 -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=@kernel.org header.s=k20201202 header.b=WgjzEvDb; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbjC2NYk (ORCPT + 99 others); Wed, 29 Mar 2023 09:24:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjC2NYf (ORCPT ); Wed, 29 Mar 2023 09:24:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D6164ED5; Wed, 29 Mar 2023 06:24:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 11B7761C2F; Wed, 29 Mar 2023 13:24:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2492CC4339B; Wed, 29 Mar 2023 13:24:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680096253; bh=B9ZlgYT32JXvL6r+V3u05oh637hA8lFhd1cUlq+5cBg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WgjzEvDbVTM7KJMGoXBzfWyNLjDmQM47ERZLqqkdSuvCs8rYIE/0MAgYKKswE2E1v CsxU8LNdtuty9PKKSvPxRs9UfjmX8YdQsqmGbwfLg2JHGM4Wlf9RqSYPbL6hy1jyEQ aRSuUPRf16oaUdy7IEqTovjaOshwe24NIwZVdmFkaA56qv/6XLXvN6zocfof8o3MXv i0B9WM/5qZ1awOUPYAvsmMcp8FmBwq8jD7vTRmstQiVx+57MUZuOleiHhuCGAEs1IN T3obesQZXOW3ttpXB8rHuJEovo/3fsbCfF1aTHMRIKomXIOFExC08QF6JELanHeO0B BsQmRsb73tyYA== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 517864052D; Wed, 29 Mar 2023 10:24:11 -0300 (-03) Date: Wed, 29 Mar 2023 10:24:11 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Kajol Jain , 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 Subject: Re: [PATCH] perf vendor events power9: Remove UTF-8 characters from json files Message-ID: References: <20230328112908.113158-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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 > > [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 > > -- - Arnaldo