Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1283760rdh; Mon, 25 Sep 2023 08:15:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFUuTnNtZ9hS4N0SsHr5SNfC3yIlo3urRJVocjSAs996nxFU6Uo70sZGrbngFz4zlm2wIUF X-Received: by 2002:a92:c263:0:b0:351:165b:8b80 with SMTP id h3-20020a92c263000000b00351165b8b80mr9141164ild.31.1695654931893; Mon, 25 Sep 2023 08:15:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695654931; cv=none; d=google.com; s=arc-20160816; b=oTTh8UvrJwsJ+5M8TstEwXakH4o/94QnvgSqcm2bHHv+qdQJRXD3HBriW5qdFKRBXZ xtGU7sPK50YuuxsWUXfdmwaj/oDHjjL9FgFnTUu2yktNhweRzWFyF7NcxN1uzLSbDacY IzVBKPcCghM+pdZDLORAx2hn2QDXd2gh5z9+UX15FEAD/G5sJ69HAhPuuCT/x4WcPEF9 8LyGMvSfyou455djyR51ikW5ZxINAJjCQ/kxX0Whw2z29Tf7foHOq98FMnKlm/XFQvh5 O3421x8F6s0FyuwOC+RvO+glNQxZ4dDZ/CS/zHjU9xqDCl4/vnmVTXgisYvbNQ26I6od Ekvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OVD5S05NFMmTD6TLncOSXU2ULgNu8Re6Qx9ApLFQYDI=; fh=aicQXd2sVDKynU70/92qv+8AnsPgYK5pq7fTzS41MP4=; b=i60WH2LfO4gU/NHMvP0KnwpdCvz4rRZc3qVaNDDhUBgScAIi3YR6f+Cjg+NJUCpUJE f9nrAPHxyj0j+odN5kJVZXV/Bq30tE4ZWWskJHd0KPphkpG9c0gLN4UwpjR9W10PrYkT iNjmpMi/t1hymVFy8IqWikUzIbxTfvRSJSYXUAJoaCiUzZ+dqKS2WeuTN862FlWvisNh qQzy0zkiCYtkJoP9Skf0KWvmHlhNJrat7Q/oIWj/qIgmNJITPKgzlyOPDNFxBsFzaJ6w xKpyUpcxVv47B+wXcR9MUyBw4JBk0cG+NgiD8eCM1NGWTRg5MKBFCl0CZ+fI92GwjoLo UzYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gvySYfT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n13-20020a65488d000000b00578ed63fdacsi10174997pgs.878.2023.09.25.08.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 08:15:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gvySYfT9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 20D13804C62C; Sun, 24 Sep 2023 23:21:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232084AbjIYGUy (ORCPT + 99 others); Mon, 25 Sep 2023 02:20:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232051AbjIYGUO (ORCPT ); Mon, 25 Sep 2023 02:20:14 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 619A0CF6; Sun, 24 Sep 2023 23:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695622802; x=1727158802; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=434mI2QGF0/LiDNuizu0YRPTYvUdMUanr80HyTfwaXg=; b=gvySYfT9RN+RVqeOiLfgTWMBhSpEepZQiIg992i0XP21+dhj8buqGjc+ IK1lZy5PFXkwPHmNhXE9cMdEOe0MRbQEUF/0qNcgo3B2xeWTDcV+yNkIq Y9LTwpetqkw7Lt2HGj6iLIBQdPA6rZr0FUXHKhkwSdkfmc+HY8coNVZMb r509zUcd5qRBJSrx6gxuCE0ntIDr6GY+VaesMgMu2/ZK2onM9JQoGjLH/ 3FFi6jGuFJPLe2jZ2E8/Il4FzR2PoLmo4FhqRtopxy/6fc/Sg8lEKtjfn CfdoI7OKGhJRTG5ZtW1sc7K0pFGcJDamhy+NJLFqXLZYTQ+EYSYkmcqFl g==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="445279504" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="445279504" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Sep 2023 23:19:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="818494395" X-IronPort-AV: E=Sophos;i="6.03,174,1694761200"; d="scan'208";a="818494395" Received: from b49691a75598.jf.intel.com ([10.54.34.22]) by fmsmga004.fm.intel.com with ESMTP; 24 Sep 2023 23:19:20 -0700 From: weilin.wang@intel.com To: weilin.wang@intel.com, Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kan Liang Cc: linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Perry Taylor , Samantha Alt , Caleb Biggers , Mark Rutland Subject: [RFC PATCH 16/25] perf stat: Update keyword core to default_core to adjust to the changes for events with no unit Date: Sun, 24 Sep 2023 23:18:15 -0700 Message-Id: <20230925061824.3818631-17-weilin.wang@intel.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230925061824.3818631-1-weilin.wang@intel.com> References: <20230925061824.3818631-1-weilin.wang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Sun, 24 Sep 2023 23:21:04 -0700 (PDT) From: Weilin Wang 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; -- 2.39.3