Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2206863rdh; Tue, 26 Sep 2023 16:31:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF9QsNPEaIOkw+sDJtpsR1bHmAUdzyxTp5mJgb3MDZqXyfjjlisnFLUr6qpNnuZfmjmkxk4 X-Received: by 2002:a9d:58cc:0:b0:6b9:f169:99d with SMTP id s12-20020a9d58cc000000b006b9f169099dmr427909oth.2.1695771086506; Tue, 26 Sep 2023 16:31:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695771086; cv=none; d=google.com; s=arc-20160816; b=iRAAP+i+jkSH8RBo+EeySg7qUeneNRLDUCd63TSARKzfz9KbPQ5YbaRS4uhAQab7h8 fyNGuWeBOsaAx1ApDGGJkiJj4ADqqf2qDBDk/hed09GJu4rpueFJNK+PI/ZekzsE82TG +vM4U1pxL5HJQRL32s55F4HniSP8+KKlH78vHxu6EfOqf0e5q1lQ1qN1LiAJK2zXLWlP 7+qoHBYqftGqnnDKscqShIFdsj8VJcUZfkr/vQ9fxIHUYQLxrcY/HgzlA4h0S9zLGDZU R2mNJyQAYCPf8hDWakTyiOxylS/Fbv79rUeZwIVlARZMsbaLiCqRuQhRKwI3RxlBbNgg Grlw== 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=dOXIxyV7sSoo/SOV4DJTMV98YSaWg1B9LOXVEN9GgXc=; fh=R1OkhriIwip1F03SPBPuQjbmUJVFiHc78tVoBI9xOtw=; b=a+xO4UyfHc6B0gDj03P6YJbug6MM1rMVQQMA+BwMcY2LRd4+AcJA4/y3DOTv9wFv9J s0NTISi7aN0stTx3L+T4WVmdoqYl/DZKaqQ/dVpugUMZMFhbas5xHAVnUJbSeJN7N97N f64e8jlabU4BpI4GgWcHnGp79u2av6vzAXY3D3D67eEQcn8y1zpFVa7LfwF/d2NQZ8eU oZdJvDmUh4RgouMU8NvMG0YFmxWegX3GnceQGxbFRZaMCjYXaWmuH/5tKDs0DeWJDYIn eAeYrloEUzOTLH7aDWn7KVycevqBuI8TXqcW7iuQOk2BbRdCrghNH5dZfStpIhRkVq8d WGCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=T5O3wg05; 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 s30-20020a63925e000000b00578cbee11e2si14193268pgn.642.2023.09.26.16.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 16:31:26 -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=T5O3wg05; 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 A674C818F6A4; Tue, 26 Sep 2023 09:25:31 -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 S235234AbjIZQZf (ORCPT + 99 others); Tue, 26 Sep 2023 12:25:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231668AbjIZQZe (ORCPT ); Tue, 26 Sep 2023 12:25:34 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5E16B3; Tue, 26 Sep 2023 09:25:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695745527; x=1727281527; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=xpnX8lTTYF2at425OtGQ4G91Yj2Q43UiudbbHMtTeCU=; b=T5O3wg05/cio6VADwdjn8FjrVpXObNWNhRiKDgQx2FZFEX1h+E4JLns+ Ekq529q6lP7N5oM82PoO2qlwME1sw/rnZDKVb6toBaVnXcngighFybWmT xJZgAt1lPPtQ8HFopNyvMikl6vKFUIVxX9Du1zm8jjfoiyZHn4voSNmpD jzvs4kf6xCisFtwOcMA3NlmHJo3x2N+sW5ij/2YqNyW+xeCvfz8gMz7NJ YXNFmQKAxUuo/oUjeJZ9GiQ2K2JuHbi/o6vEoFhxn5Fc4k/1EL4CzdyvQ kj7BIUnf8/8xQV737f1VU6vWdFqrFaNGZmsL8r+JlTmnm3TsdNBBdH5RV w==; X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="366670505" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="366670505" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:25:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10845"; a="698528646" X-IronPort-AV: E=Sophos;i="6.03,178,1694761200"; d="scan'208";a="698528646" Received: from linux.intel.com ([10.54.29.200]) by orsmga003.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2023 09:25:07 -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 5DE06580D9B; Tue, 26 Sep 2023 09:25:05 -0700 (PDT) Message-ID: <7ffd2c76-3499-a921-58b9-eb71432e59ff@linux.intel.com> Date: Tue, 26 Sep 2023 12:25:04 -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 16/25] perf stat: Update keyword core to default_core to adjust to the changes for events with no unit 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-17-weilin.wang@intel.com> From: "Liang, Kan" In-Reply-To: <20230925061824.3818631-17-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,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 09:25:31 -0700 (PDT) On 2023-09-25 2:18 a.m., weilin.wang@intel.com wrote: > From: Weilin Wang > Description? Shouldn't the default_core be used when the keyword core is first introduced? Thanks, Kan > Signed-off-by: Weilin Wang > --- > tools/perf/pmu-events/jevents.py | 2 +- > tools/perf/util/metricgroup.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py > index 5614bc203..d8c2fd258 100755 > --- a/tools/perf/pmu-events/jevents.py > +++ b/tools/perf/pmu-events/jevents.py > @@ -303,7 +303,7 @@ class JsonEvent: > 'cpu_core': 'cpu_core', > 'cpu_atom': 'cpu_atom', > 'ali_drw': 'ali_drw', > - 'Core': 'core', > + 'Core': 'default_core', > } > return table[unit] if unit in table else f'uncore_{unit.lower()}' > > diff --git a/tools/perf/util/metricgroup.c b/tools/perf/util/metricgroup.c > index 2e7a8e315..7884cb036 100644 > --- a/tools/perf/util/metricgroup.c > +++ b/tools/perf/util/metricgroup.c > @@ -2085,7 +2085,7 @@ static int hw_aware_build_grouping(struct expr_parse_ctx *ctx __maybe_unused, > pr_debug("found event %s\n", id); > if (!strncmp(id, special_pattern, strlen(special_pattern))) { > struct metricgroup__event_info *event; > - event = event_info__new(id, "core", "0", true); > + event = event_info__new(id, "default_core", "0", true); > if (!event) { > ret = -ENOMEM; > goto err_out;