Message ID | 20221107213314.3239159-1-namhyung@kernel.org |
---|---|
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 l7csp2308768wru; Mon, 7 Nov 2022 13:36:04 -0800 (PST) X-Google-Smtp-Source: AMsMyM7PpbbnLaKgW6B85jzPTOO4Y8lQfOJhpZEKW3tOH5w6gHoP8LxfX/xO6jUzoaPbVZBgRAB6 X-Received: by 2002:a17:906:2543:b0:7ad:d164:bc73 with SMTP id j3-20020a170906254300b007add164bc73mr41587652ejb.210.1667856964080; Mon, 07 Nov 2022 13:36:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667856964; cv=none; d=google.com; s=arc-20160816; b=AU+rMOraQEn5/tc8xi/hvejYZhV2doShCJwFASc3jDyznHglEepHkgpSWc0k5V55uD ngJoe5gEO+rjVB1+7RVLBkhyCqs0r4Uoc4zVPLdvsER84AJTiBeTJqc2Ap8zC6uZjtz3 qN8K2ABZKVT90uuFaZQawdWS6R3sxIxKsTXtO2BdAkwH58XtlrayC4V/gvLTp9j5cAvr uPRf/BZwYnkhd5Ipc3RaE8/Q7okwNRLelPFnVVAic6O3iYnexqcIPf1xzgi9zIt977F8 fXMhq35gUPxeRGjY43+tF9dYWObR8aLZ2e1w8GJB9WOkrj+ci58veMF4cQe1281CrS+x Rzsg== 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=gyy9yeqWT2k5QTrvk/RJBXpqivCI5uZGvU+9WCo85hA=; b=HLTSIubDr8rXc0/PKT5TtfuItdadmOQ/q+DsIHfhIzLbgPPIoH5wB2OVJzaCodO3vL D/vRwoJt9nOyIJu2RZfClMtUKcyhrKdNcw4w1TFusM0m6EANKyhpsZy2Bx8dTsrySmNB EGV1HmOY1dQTwzOF4LTybRb4B/OfQzo1hGPg7U9RrtP3I/cHmVdz9ZTlyKt9gYcyQmY/ S+j2Gn4nGMSGCYzQG22RSg/zJcliXmbtobhRgIAs/nsgepOF7xAEo7UMPD89gLyKftDF H0t+t3nImCSjYU+zuJ3H6Xly5667OfzCA3orsmQk2zKPWhKJFoICCJHCZ+DYtWK+6F+C 0xuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HIuQrVRy; 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 nd27-20020a170907629b00b0077156c9124esi8806896ejc.1001.2022.11.07.13.35.39; Mon, 07 Nov 2022 13:36:04 -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=HIuQrVRy; 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 S233360AbiKGVdW (ORCPT <rfc822;hjfbswb@gmail.com> + 99 others); Mon, 7 Nov 2022 16:33:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233373AbiKGVdU (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 7 Nov 2022 16:33:20 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11CBD2EF64; Mon, 7 Nov 2022 13:33:19 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id f63so11639310pgc.2; Mon, 07 Nov 2022 13:33:19 -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=gyy9yeqWT2k5QTrvk/RJBXpqivCI5uZGvU+9WCo85hA=; b=HIuQrVRyIVVkhXLShtxIMtpAcxjbqwECAJLv0mP+/vKOUyDfwJc/or06UW36RQYN// oni3DRPy+QD+l6S1OwolsIToWrMNTBwZ2tQdZFaPauy2L/u22g0+6RKbS1pcaU2DBApD 6jB7qDCE96NqM4lE9ihqePMbW4x/oyVeM5zxiRlWSd43RlU/411KpWHAgEitSe/nXeoc /cK5cQ7u2krDgiQWxThJQ+YIVMeGwzmdwSYPFJhFbb/9ov7O0tcjluImQAec1NiYAf2n f7150J57hwzOPyTOdKr2hM72dy4qSwqqBTl/Hb22LZPEv7aa6xfC2Wm1OJXjAZir0uaF kB2w== 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=gyy9yeqWT2k5QTrvk/RJBXpqivCI5uZGvU+9WCo85hA=; b=Y4O94Yfr3gtofiOlnhy3xtlSInlYxZLib9MI7JJA3bYeanB0eGUiUDMeIkyRH+wlx/ rfsgfhGq91F8JD2N5TNb4omcAGs8ijDSlIcUFR8YTJ6OIke7OwqFMw1sy5Qzpzo4Hsfh NE0HRmw7FJncDAs0T3HCXez46/Co+HcpVkAtmiVc7II/ucg0plR2zGzt2F94oekRDtVa 4uHOG/4RbsWWdlOItScImK41GLHYDzHFjtFMjw0Qu0CK8mRPyLNAOmqBChCj8UAVSjVa IgwMnjcEXCaXSqD8iU5k/LShwX/oONYiMSg7KEtXy9Oj5gsnp0EAwKvZAIaaFin2gnfE QNpw== X-Gm-Message-State: ACrzQf2iodTEgRbmVamjYDDc3XKXZDpTJ7sJrNKigzU4zS+n7b51CX65 eNYzpQ22zTCDRuzqvbDLf/I= X-Received: by 2002:a05:6a00:1304:b0:555:6d3f:1223 with SMTP id j4-20020a056a00130400b005556d3f1223mr53000295pfu.60.1667856798413; Mon, 07 Nov 2022 13:33:18 -0800 (PST) Received: from youngsil.svl.corp.google.com ([2620:15c:2d4:203:5850:5958:9c77:f623]) by smtp.gmail.com with ESMTPSA id a1-20020a1709027e4100b0017f5ba1fffasm5366413pln.297.2022.11.07.13.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 13:33:17 -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: [PATCHSET 0/9] perf stat: Cleanup perf stat output display (v1) Date: Mon, 7 Nov 2022 13:33:05 -0800 Message-Id: <20221107213314.3239159-1-namhyung@kernel.org> X-Mailer: git-send-email 2.38.1.431.g37b22c650d-goog 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?1748874783721231157?= X-GMAIL-MSGID: =?utf-8?q?1748874783721231157?= |
Series |
perf stat: Cleanup perf stat output display (v1)
|
|
Message
Namhyung Kim
Nov. 7, 2022, 9:33 p.m. UTC
Hello, I'm working on cleaning up the perf stat code and found a number of issues. Before moving on to the real changes, I'd like to fix those first. I'll think about how to test this properly. You can get it from 'perf/stat-cleanup-v1' branch in git://git.kernel.org/pub/scm/linux/kernel/git/namhyung/linux-perf.git Thanks, Namhyung Namhyung Kim (9): perf stat: Fix crash with --per-node --metric-only in CSV mode perf stat: Increase metric length to align outputs perf stat: Clear screen only if output file is a tty perf stat: Move common code in print_metric_headers() perf stat: Fix --metric-only --json output perf stat: Do not indent headers for JSON perf stat: Add header for interval in JSON output perf stat: Fix condition in print_interval() perf stat: Consolidate condition to print metrics tools/perf/util/stat-display.c | 55 ++++++++++++++-------------------- 1 file changed, 23 insertions(+), 32 deletions(-) base-commit: 96e6d929a6c3368ad6327a52f870294747888c77