Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5887418rwb; Mon, 14 Nov 2022 10:52:03 -0800 (PST) X-Google-Smtp-Source: AA0mqf7YzOphQFFeXg0tRVtMLy5dpQpvrlZyL5bEsO0fjfjVBPvM6E8Q0Y1t83jXKMilg4it0tSC X-Received: by 2002:a17:90a:9e9:b0:20a:df72:e61f with SMTP id 96-20020a17090a09e900b0020adf72e61fmr15064942pjo.87.1668451923511; Mon, 14 Nov 2022 10:52:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668451923; cv=none; d=google.com; s=arc-20160816; b=i/B6WNVp++2+nTKfX2rW/FKSknY/1OIWYvOai/aNgTNwxl65wlR4CZzwaQASQrq7+0 cvzhquwJo0hWidBKABSKp1Cl8It7sUjGjdJN0P2oGGz+aAn4UPPKTUS2DQ5CB2QHghAB Cy4xtYtu3GZqhLlONRviCrTNLdmF5dDK6gzFSIeEp9qFFcKDRLJCloxNm2O32D2JSKHN NVhiQDaaaZ56GA+Fz5O7DFvhEcxfeA+j6dHbIenNXXrl9qHACJabYLdW9OudjzLymjBF WmE98HtTdjpc2FzicHjFdiNohwIKaCbGKSDaOGQZtYoe9/dJSo1tmQy0gtl2E1IOMUMS 53IA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=3fM3xvJMAJZPiLtedRbSJTxYZ++wPBK4zKGdWqxdh5g=; b=M7s+U/PIg5I0sAn6S4mfNQ0o7mGLMqljv6QdyA0grQd8QVis3BgRYM0TMbN4Ms6R1K zGW3if+aHlDbOqcqiZiJP0HAb5q90SHBRnY4aw0gXy2dbC+/aK5GnITToR/3ms9Be75B Lhl01gJwe+HkjFOkMboxgm8Cp7KOMb0CanqiYXbU7XImEJcMQvpwkKZ3Da8fQBeNsxlH T64aVbT3Krn0eSEkO8zBBVytpqbBAC9xyrP9oCV/DHO1ZZM42VrKFJSfeX+et67u6P/J p2JMSxS/yDZ1vEieiR6/7Oa71A2R7WnONh+13AGvcce0fxzBY8ci/BKQoM0U0LVV5xrr K7tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=snxPpEkx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b9-20020a170903228900b001869c588d5asi10972308plh.110.2022.11.14.10.51.51; Mon, 14 Nov 2022 10:52:03 -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=@google.com header.s=20210112 header.b=snxPpEkx; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235905AbiKNSVo (ORCPT + 88 others); Mon, 14 Nov 2022 13:21:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236593AbiKNSVi (ORCPT ); Mon, 14 Nov 2022 13:21:38 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4759221814 for ; Mon, 14 Nov 2022 10:21:37 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id a14so19834814wru.5 for ; Mon, 14 Nov 2022 10:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=3fM3xvJMAJZPiLtedRbSJTxYZ++wPBK4zKGdWqxdh5g=; b=snxPpEkxEmcPnaT/ZJtgeLLhQnKgtiAPw/hOzamIRbmoD16BuPOdlPoN7trs1trm+e fHygPn2DX58zVFLrj/eUPU66cE4I7LJp2+H5H/9/7iZ1jI8cnwSAc/oYyx8cti2XwAfN l9t2XuP+nBhpYJKqOBmCJP6EfYLDcXBxFCF7MJBttafLecCCvHcSEgdCLwAZnfIFLJms CZacYGUTBbXbpKHr/LqXHaZhbEPZSiHIG48u7bN7DGBY1NK+mtNAzzblrDjmmwb9yu0s JbjUFvZRsdO7CTjrZXcZYXfEnUxadbkktlmQNZ9jJpjv5DmJ3+75lO36tmBKOLmmPvys W4yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3fM3xvJMAJZPiLtedRbSJTxYZ++wPBK4zKGdWqxdh5g=; b=GU4tpUu8Abt+mMjdH0dfrQKtVyMNh/wJWbxQ5B1HglOOwR8Q5CAx9FZUzvCd3BDnNd NvEJXXYmoxK6WOtwynRqTSR532zPVJfykegxLzf3EyFhFU+5UNqY5tXuswE0eugzrDNZ jfzLe84j7QGZzgpvjgBl0Fj4BAp1prkyFkvh22pwZCC7qU5Vj6D2Iip3CMtbOEcjL+XD RCZNnfd9TBEyML0DZ3BCzhGDNg5dkfpbZ/8Z+gRFk8OnDMs7Cbbq71qxAulPI4vJJymI 7ZzbLGJ55PHP8xFoQbTyrE00l2Z6YT1L3tBfeBbRshHh68xljyJmHoq0Mp9BC2tYs8VO y0NA== X-Gm-Message-State: ANoB5plW16/R51ZfRn2M0lqb/n/tQOWLLToSRXqeKz1PlWBzYkPoc24o GxQhvw6+L1yqZzCGVonBS8l8yTifagVQH/OTeVG9zJyLaHiX7Q== X-Received: by 2002:adf:ea82:0:b0:236:62d6:f586 with SMTP id s2-20020adfea82000000b0023662d6f586mr8359122wrm.40.1668450095599; Mon, 14 Nov 2022 10:21:35 -0800 (PST) MIME-Version: 1.0 References: <20221112032244.1077370-1-namhyung@kernel.org> <20221112032244.1077370-12-namhyung@kernel.org> In-Reply-To: <20221112032244.1077370-12-namhyung@kernel.org> From: Ian Rogers Date: Mon, 14 Nov 2022 10:21:22 -0800 Message-ID: Subject: Re: [PATCH 11/11] perf stat: Add missing separator in the CSV header To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Jiri Olsa , Ingo Molnar , Peter Zijlstra , LKML , Adrian Hunter , linux-perf-users@vger.kernel.org, Kan Liang , Zhengjun Xing , James Clark Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable 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 On Fri, Nov 11, 2022 at 7:23 PM Namhyung Kim 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 Acked-by: Ian Rogers 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 >