Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2109038rdh; Tue, 26 Sep 2023 12:42:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFn+Xx4mYnejFYT4BhMqfZ+jzf5aoqg6+SMORFMUwtfyz3kIviUNnVv1q+wE0yZiZ7jfQdx X-Received: by 2002:a17:903:1206:b0:1c6:d1f:514d with SMTP id l6-20020a170903120600b001c60d1f514dmr9615438plh.45.1695757369655; Tue, 26 Sep 2023 12:42:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695757369; cv=none; d=google.com; s=arc-20160816; b=z3XHqIeIQY4ri9vwx4UTStNZN7+kmLC1/nlqIUdQs/ezls975RiLBt/mcxiFtH2iCk WwoeIzbIuKy5B5JyrCIY99nSyZgKTp45Qede8NjIAPnU1FbpvvorbNKetpM/+vXmtUgX EFUIk5fgA6kV54NTm9kQ4G/zKoIt96SLH5MPbH46uG+zlAk+NaqPqZd+4l/uZjceA4FO GqHLE/+KJt+p8xH97Ya45m+gNRAUA6h1cgWKJnX99uA9hOcH7pPFtsCEfpGEcp4KKu4I eKbRkRuUggqDPvWRHyPk07JTvb8urt/FkeXGnR5kw19AI0HnJT+SftOUXGxplK7+M2Qx KjNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=H3Oe39cGTNo+yiiEqmr7SRIrnBthIHanatXch0saY8w=; fh=R1OkhriIwip1F03SPBPuQjbmUJVFiHc78tVoBI9xOtw=; b=HSR7U8psPrWq1R4vChpRcpgGsT/xKDhn4FMtVxYuCMvLI+BzKty9aIaBU8kVssnPd/ D/C9P/v/EjuDRmGDlJocMPYIs6489uisYRly3yFMEv6zkOHVUCJ5Q8H6/lIj7fX6TGul fFNueWT3ltGBKrNXaAK+kAhRsgaCeexxhDdA9XJArWlXnkwp/pYHySvz1rtvuirCIAfz VMSQzRXxGKhqnMYloMapgRVnekc+zYVQFqAdW+CGFUqDKkTPAvH41WsepQhRJAys087L J7mtsNa8BKf2BrNoJY1ZiGmOq5MxM5v7ZJwiRJDl7qyRmmOahIeKew7Hr9udL4dat+Wr KoDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atupXXp2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u16-20020a170902e81000b001c5bab14164si14250299plg.60.2023.09.26.12.42.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 12:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=atupXXp2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id BF7238047473; Tue, 26 Sep 2023 08:20:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231243AbjIZPUe (ORCPT + 99 others); Tue, 26 Sep 2023 11:20:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233293AbjIZPUc (ORCPT ); Tue, 26 Sep 2023 11:20:32 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4BE9199; Tue, 26 Sep 2023 08:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695741624; x=1727277624; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=nB6ZESUpQait4Sao7+LPxqiHduWytkDaP5+UtQrukm0=; b=atupXXp2NYyjUrFRQwSMz5bbjfnU9AklX2fRZ98F81FxnAbXJOkGtAz/ /nHsTmg4FQDvYGkAxjcLjfErsjDdOTjqpWUZhNPuRJi4DNGc9e543ezkA VebxLhwP0W1dTC4VsByzEC8oTG9/zW1d1hC6qOLinENmcr6NpUAZ80EIg AUiN9qX5ncrJvKGUbufWdX78QhIQg5uQ0W6OkwDhTcJ5CI5nrY8cF/Ai6 /DVHNDVzrSNt/6FmkgluePPn+QUoUwGaeoP0jA2YEJhuf+C1Xo6BfB2NA 8nD+J/+0Bi4W7DzTi5Ejl7yedyifv13oXbBlwZ0YRMIIFlrI18Cc4dnPH A==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="412506676" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="412506676" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 08:20:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="783977450" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="783977450" Received: from linux.intel.com ([10.54.29.200]) by orsmga001.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 08:20:23 -0700 Received: from [10.209.130.196] (kliang2-mobl1.ccr.corp.intel.com [10.209.130.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id C7A72580BBE; Tue, 26 Sep 2023 08:20:21 -0700 (PDT) Message-ID: Date: Tue, 26 Sep 2023 11:20:20 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC PATCH 04/25] perf pmu-events: Add counter info into JSON files for SapphireRapids Content-Language: en-US To: weilin.wang@intel.com, Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Perry Taylor , Samantha Alt , Caleb Biggers , Mark Rutland References: <20230925061824.3818631-1-weilin.wang@intel.com> <20230925061824.3818631-5-weilin.wang@intel.com> From: "Liang, Kan" In-Reply-To: <20230925061824.3818631-5-weilin.wang@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 08:20:35 -0700 (PDT) On 2023-09-25 2:18 a.m., weilin.wang@intel.com wrote: > diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py > index 2809f68d2..5614bc203 100755 > --- a/tools/perf/pmu-events/jevents.py > +++ b/tools/perf/pmu-events/jevents.py > @@ -655,7 +655,7 @@ def preprocess_one_file(parents: Sequence[str], item: os.DirEntry) -> None: > _bcs.add(pmu_name, metric=True) > _bcs.add(event.build_c_string(metric=True), metric=True) > if event.size: > - _bcs.add(event.build_c_string(metric=False, layout=True)) > + _bcs.add(event.build_c_string(metric=False, layout=True), metric=False) > What's it for? Seems should belong to a dedicated patch? Thanks, Kan > def process_one_file(parents: Sequence[str], item: os.DirEntry) -> None: > """Process a JSON file during the main walk.""" > --