Message ID | 20221112032244.1077370-12-namhyung@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1091013wru; Fri, 11 Nov 2022 19:30:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf6tTPHwQLE2YSR7R0G596TTIxh12C+yVqufRi0pmLsTLN6RuBSA5iRJq3bOH0Xwjsm6wmTv X-Received: by 2002:a17:902:9889:b0:186:6050:eb64 with SMTP id s9-20020a170902988900b001866050eb64mr5133896plp.151.1668223822520; Fri, 11 Nov 2022 19:30:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668223822; cv=none; d=google.com; s=arc-20160816; b=IoP5Iob4o6N6tC3/tD3NNKotIfkvKHoSyUzbRinOEdYNSsIpyUEIVxZmqz2FYROAeg HAauCissSxikCQfjm5d2myUDUjCzIXCQ01gwh2r/3W7HTHGSrc1EgEwcdWQgBhpv/yZ6 ynITdUzbIo6fvM2LF+I+Hh4eyvrxJaHL4WnhwWhdujhY1diCMmaeUVnqxalG5GM8nbrw fhh/TU+YhBBks/ysXl90nC2fNi6t6My+cuK7kCyiAvaalvJqJs4dJCezlMR+5sfNgpOH 2aQ0aWxyg1/zIbGWElXgQmbnLjHFNm4fHFKmTA0Sql4zmMeXkVIrMPcnhBsiX3xVfzVO xvSw== 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:sender :dkim-signature; bh=cbdcYDsOPafiPSVZSATOaxGNpCzEo4xQfFV4O82eayw=; b=snu+8+7bPdgAWCrK+/OuciIFUuLqAcTTR6xKUewYFYptOIvhmYk/QZN2fxv4C1gibH oGXlnJOvcuxm5cLLBtdn9MAHdVi/Wo8iLVLAW8e6FiE/RVU2hSh+yxsMHfHdsW+L84Fv wxzYYPPfBC1PfKuannRMk6RNfE3Y0uXEk3yLcKjxH9bL9mGLWD2ZJL/t+n2emVZKiW3y sVaTYA9b4qWXzByLPACtR8Us/X0hR9nUoIkXI7VH/6UfGteyxQM5Yvz6C3S1SRHMWAnU uVEsvencNDzfP+Ze3DOjdiKIifi+0AOJKeKpypahlejFWhbkPOkAcg00zig0UmEpfH2w YISA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f6lJ8r26; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ct22-20020a056a000f9600b0056bf15d0cbfsi4188778pfb.308.2022.11.11.19.30.08; Fri, 11 Nov 2022 19:30:22 -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=f6lJ8r26; 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 S234744AbiKLDXu (ORCPT <rfc822;winker.wchi@gmail.com> + 99 others); Fri, 11 Nov 2022 22:23:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234660AbiKLDX3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 11 Nov 2022 22:23:29 -0500 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C15A76FAA; Fri, 11 Nov 2022 19:23:08 -0800 (PST) Received: by mail-pl1-x635.google.com with SMTP id j12so5688681plj.5; Fri, 11 Nov 2022 19:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=cbdcYDsOPafiPSVZSATOaxGNpCzEo4xQfFV4O82eayw=; b=f6lJ8r26ECT6R8yo7oa+mPmSnf0+R4JS32T/9zbBThdOT5XMFIW+6NByrFFmsWgTS1 Q6Y0NYtG5bR2FrV8ILv91bYmzP9MTKP/948C8gEuVncwxRMqTa5fZmUzrSYZN7siQ04v qI176pCpR2V5bVy5HEUXDBtBujLLF/jKHMnS7Uj6u/Cpx/GsNiF4ar5ls2fS88D0gK63 7ihLLuh0jOZaT0BF17sqY8w1YQuM01a3STrMQN8KBvO9WshWdxvbQQYOYJmeH7FT2b7d ZxB1ZoNDWfhced6wuJbm7ip71wKogU354ovn7EMzA+qe1PkdDkx1G9l8a8P9WGs0B3Ll OXYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:sender:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=cbdcYDsOPafiPSVZSATOaxGNpCzEo4xQfFV4O82eayw=; b=0qL7SBX97FiTstx1paFl2ZzmdDWKmFBaBEgEQtU5acARmsDWpvD5HO7d0uM31y31yq zS0T5+Umunxun/SbxSd2xSPhAl658qkVsm43zSY6inUYuttxjq5NHooNl8G/J14/a04p /MslJ7OYTmnnlXfIDwPL7WZ3QUxHIB2wJEk3jz2IWasOOS4m6fffUDg4kwmgh52mudBj r3xLBpNwvAmG/0lVic4QzD3LevMj6m68AOum0myC/VsZGVFjvRvQdeSl9E3UU6/ZTAYb N0t+2vLJ/TXdlU8QeSp7VmaVHXlcJHZL0RZHpGytmgHSaJfZxs6QDBqnLtxL+ecOfcst KfGA== X-Gm-Message-State: ANoB5pnzHkDqDi9SXFHc/Jz57R8VFAJdRdfCOVDD6SEtWyei/PKQHQIZ xJssqW9htS5E+2dZ7i8UzZg= X-Received: by 2002:a17:903:c3:b0:186:8431:ece3 with SMTP id x3-20020a17090300c300b001868431ece3mr5486622plc.8.1668223387781; Fri, 11 Nov 2022 19:23:07 -0800 (PST) Received: from balhae.roam.corp.google.com ([2607:fb90:27dc:8408:33d7:3b01:eee1:84b]) by smtp.gmail.com with ESMTPSA id ij25-20020a170902ab5900b00186f0f59d1esm2434552plb.192.2022.11.11.19.23.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 19:23:07 -0800 (PST) Sender: Namhyung Kim <namhyung@gmail.com> From: Namhyung Kim <namhyung@kernel.org> To: Arnaldo Carvalho de Melo <acme@kernel.org>, Jiri Olsa <jolsa@kernel.org> Cc: Ingo Molnar <mingo@kernel.org>, Peter Zijlstra <peterz@infradead.org>, LKML <linux-kernel@vger.kernel.org>, Ian Rogers <irogers@google.com>, Adrian Hunter <adrian.hunter@intel.com>, linux-perf-users@vger.kernel.org, Kan Liang <kan.liang@linux.intel.com>, Zhengjun Xing <zhengjun.xing@linux.intel.com>, James Clark <james.clark@arm.com> Subject: [PATCH 11/11] perf stat: Add missing separator in the CSV header Date: Fri, 11 Nov 2022 19:22:44 -0800 Message-Id: <20221112032244.1077370-12-namhyung@kernel.org> X-Mailer: git-send-email 2.38.1.493.g58b659f92b-goog In-Reply-To: <20221112032244.1077370-1-namhyung@kernel.org> References: <20221112032244.1077370-1-namhyung@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.5 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749259463200796116?= X-GMAIL-MSGID: =?utf-8?q?1749259463200796116?= |
Series |
perf stat: Cleanup perf stat output display (v2)
|
|
Commit Message
Namhyung Kim
Nov. 12, 2022, 3:22 a.m. UTC
It should have a comma after 'cpus' for socket and die aggregation mode.
The output of the following command shows the issue.
$ sudo perf stat -a --per-socket -x, --metric-only -I1 true
Before:
+--- here
V
time,socket,cpusGhz,insn per cycle,branch-misses of all branches,
0.000908461,S0,8,0.950,1.65,1.21,
After:
time,socket,cpus,GHz,insn per cycle,branch-misses of all branches,
0.000683094,S0,8,0.593,2.00,0.60,
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
tools/perf/util/stat-display.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On Fri, Nov 11, 2022 at 7:23 PM Namhyung Kim <namhyung@kernel.org> wrote: > > It should have a comma after 'cpus' for socket and die aggregation mode. > The output of the following command shows the issue. > > $ sudo perf stat -a --per-socket -x, --metric-only -I1 true > > Before: > +--- here > V > time,socket,cpusGhz,insn per cycle,branch-misses of all branches, > 0.000908461,S0,8,0.950,1.65,1.21, > > After: > time,socket,cpus,GHz,insn per cycle,branch-misses of all branches, > 0.000683094,S0,8,0.593,2.00,0.60, > > Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Ian Rogers <irogers@google.com> Thanks, Ian > --- > tools/perf/util/stat-display.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c > index 96bb7a42fd41..a316807255cd 100644 > --- a/tools/perf/util/stat-display.c > +++ b/tools/perf/util/stat-display.c > @@ -828,8 +828,8 @@ static int aggr_header_lens[] = { > > static const char *aggr_header_csv[] = { > [AGGR_CORE] = "core,cpus,", > - [AGGR_DIE] = "die,cpus", > - [AGGR_SOCKET] = "socket,cpus", > + [AGGR_DIE] = "die,cpus,", > + [AGGR_SOCKET] = "socket,cpus,", > [AGGR_NONE] = "cpu,", > [AGGR_THREAD] = "comm-pid,", > [AGGR_NODE] = "node,", > -- > 2.38.1.493.g58b659f92b-goog >
diff --git a/tools/perf/util/stat-display.c b/tools/perf/util/stat-display.c index 96bb7a42fd41..a316807255cd 100644 --- a/tools/perf/util/stat-display.c +++ b/tools/perf/util/stat-display.c @@ -828,8 +828,8 @@ static int aggr_header_lens[] = { static const char *aggr_header_csv[] = { [AGGR_CORE] = "core,cpus,", - [AGGR_DIE] = "die,cpus", - [AGGR_SOCKET] = "socket,cpus", + [AGGR_DIE] = "die,cpus,", + [AGGR_SOCKET] = "socket,cpus,", [AGGR_NONE] = "cpu,", [AGGR_THREAD] = "comm-pid,", [AGGR_NODE] = "node,",