Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2879225rwb; Wed, 30 Nov 2022 12:09:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf6G/NShGbMCkbJeeHD/sIJuM0qaaIF49BZaa8kEztzV/4Dm2Lf6zF+bgyN/0FnWZPKgI1Ul X-Received: by 2002:a17:903:41ca:b0:189:78d9:fe2e with SMTP id u10-20020a17090341ca00b0018978d9fe2emr22512606ple.96.1669838967760; Wed, 30 Nov 2022 12:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669838967; cv=none; d=google.com; s=arc-20160816; b=cnxXkGzcj0idBqJhf3HyWXbDaIZJS1CWfVhVnv2vHKw4SMG44DiqM3r63CVlnlt9JB AU4MA7XE775pl/tzB5wGma89tt5BsDRZ6j0I+R41irfGC26VpSrXA/dlTkZ09Tf4ynOn K+q+hB5+xPx5vnWRzBNtjojRSRVtI90LRwqnwm/QzoztgT9QlZ7rjkwBbpIDQXQ7BASW HDInkTUOisQH725EZ9vylMzGUS9vOX4n6Atc+RmcKqHe5Q+vbrCHhQLCcUKt/0sBM6t+ Wfo+a7bWyjo/IrDlVBhhsM7+pB4xEprvoKPvNbCoCSJMsRnROJbIzKGfKN6bRY4fLDy9 pQUg== 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 :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=fyG8WvkPMaea4/Z35OOcdALNhvtYUcjAcZOj1KR+VQ4=; b=inYmVvqiwejB0NzmNvt2RfBKFkbHUKpFO2X/gbMhkyYcVEWBTwOkrzo2Cbs5qs9+Yd zA6a7dfJbUcwph4JhrhnzMH5jOMQUlW9VhIrdVoDHyjXvLBvP1/nprwMKo3AjSilxyoI JdKhLjvDuALZMFVFDYdIv2Gnj6OjdR7V8AAEV9o5qzuJr23DOjHDnYh/dLYSkufA7ShU mFTSW89GMOrZ17zxRylYqSgBiacOwqCkFY4IjB7i9uPe7V9Y/iHo9HIo8pTKLk3pvgL7 okJpN1qnBUzPAPtW51/sesdixOSG3Z1sxY0aQclVyqhV0e2qRCOE5lx+kOu17/xiV3m5 fhoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=kTuBUGuW; 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 nv3-20020a17090b1b4300b0021870b9d3c7si2639780pjb.45.2022.11.30.12.09.16; Wed, 30 Nov 2022 12:09:27 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=kTuBUGuW; 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 S229722AbiK3TgT (ORCPT + 83 others); Wed, 30 Nov 2022 14:36:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229499AbiK3TgS (ORCPT ); Wed, 30 Nov 2022 14:36:18 -0500 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BA4089AFE; Wed, 30 Nov 2022 11:36:17 -0800 (PST) Received: by mail-pl1-x62c.google.com with SMTP id s7so1959675plk.5; Wed, 30 Nov 2022 11:36:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=fyG8WvkPMaea4/Z35OOcdALNhvtYUcjAcZOj1KR+VQ4=; b=kTuBUGuWT1T5EiBXVPP90GRGXROkfO1Lcxj+dxMPRnM+Po6lvjemlajHY81b8cmng1 Unz7b75KPYUDSNPmetr8diP2hmLKeNT6mRCgEooL/X1alxrz2kAsQOphtQzcvkp/lVFd DAcyfgtC3KG1QKwEJCA4W4ucmh4GNaDNQDzgnYfWeuh76Sgh7YA+jMrNBcZFVwZcgSXT SAvSfPI4vv2cHAdlrnmyyNZRBDXb9+dOBhQSCX8wLzxO0vLBoe7OUilwgTZA15heUdS8 m7KWrBIeG6cx+qOUk18qsnQa/CkBDIg3jExA+S77nCzzl80A0qtdnCJuEyWXe69M+FQu I4gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fyG8WvkPMaea4/Z35OOcdALNhvtYUcjAcZOj1KR+VQ4=; b=WFKMWXHWXmNLVQQjgVDNLOLXtL48my6caMLaXRu7v13jEm1t6pUGqGwPhz8KielrKq 8buzjG0BgeeY6hy86KqAW/+5SfQOa+lOnjtnF2wWM+nwgu3WTkOChBVGrAYopWHndS1n PnwD9uUKLDYeev5BA6ZyA7+oq97F3yfyYUi710lkRyukWEs6zw8IlMY+5jTewEXCdd3J 83MDNlcxZQJOIkHOT40Q/GH1XeBCTFq7ZEJkdkaq4fSxn/0p5meB3taxxrOwMcP5DC24 QvMPuIwIM03eNwrU9xcwvBJTcdVaONjHk2sZDH3LzZ9pPRMq8HcYIQjkUAaJ60eAy8H7 rIGA== X-Gm-Message-State: ANoB5plKHQrS0aSTvGK6I6sNWrM/sJC7SIQnEWJEbnjoLMjrw0/vEsse ETm32JTMWYEOb4hkTnMPinZ7WqshYRU= X-Received: by 2002:a17:902:d4c5:b0:189:5e92:d457 with SMTP id o5-20020a170902d4c500b001895e92d457mr29960801plg.166.1669836976603; Wed, 30 Nov 2022 11:36:16 -0800 (PST) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:b6d7:38d3:afe2:969f]) by smtp.gmail.com with ESMTPSA id k9-20020a63ff09000000b0044046aec036sm1297683pgi.81.2022.11.30.11.36.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Nov 2022 11:36:15 -0800 (PST) Sender: Namhyung Kim From: Namhyung Kim To: Arnaldo Carvalho de Melo , Jiri Olsa Cc: Ingo Molnar , Peter Zijlstra , LKML , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, James Clark , Kan Liang Subject: [PATCH] Revert "perf stat: Rename "aggregate-number" to "cpu-count" in JSON" Date: Wed, 30 Nov 2022 11:36:13 -0800 Message-Id: <20221130193613.1046804-1-namhyung@kernel.org> X-Mailer: git-send-email 2.38.1.584.g0f3c55d4c2-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS autolearn=no 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 This reverts commit c4b41b83c25073c09bfcc4e5ec496c9dd316656b. As Ian said, the "cpu-count" is not appropriate for uncore events, also it caused a perf test failure. Signed-off-by: Namhyung Kim --- tools/perf/util/stat-display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c index 847acdb5dc40..f1ee4b052198 100644 --- a/tools/perf/util/stat-display.c +++ b/tools/perf/util/stat-display.c @@ -281,19 +281,19 @@ static void print_aggr_id_json(struct perf_stat_config *config, switch (config->aggr_mode) { case AGGR_CORE: - fprintf(output, "\"core\" : \"S%d-D%d-C%d\", \"cpu-count\" : %d, ", + fprintf(output, "\"core\" : \"S%d-D%d-C%d\", \"aggregate-number\" : %d, ", id.socket, id.die, id.core, nr); break; case AGGR_DIE: - fprintf(output, "\"die\" : \"S%d-D%d\", \"cpu-count\" : %d, ", + fprintf(output, "\"die\" : \"S%d-D%d\", \"aggregate-number\" : %d, ", id.socket, id.die, nr); break; case AGGR_SOCKET: - fprintf(output, "\"socket\" : \"S%d\", \"cpu-count\" : %d, ", + fprintf(output, "\"socket\" : \"S%d\", \"aggregate-number\" : %d, ", id.socket, nr); break; case AGGR_NODE: - fprintf(output, "\"node\" : \"N%d\", \"cpu-count\" : %d, ", + fprintf(output, "\"node\" : \"N%d\", \"aggregate-number\" : %d, ", id.node, nr); break; case AGGR_NONE: -- 2.38.1.584.g0f3c55d4c2-goog