Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp541414pxu; Wed, 14 Oct 2020 07:41:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfnImqiaulgLmW8/W/1mGc89iAum9D7dOIyS3oYcPLCol1pgfSveKxf4HHvpr1fHtQ03GJ X-Received: by 2002:a17:907:204c:: with SMTP id pg12mr5667291ejb.160.1602686488604; Wed, 14 Oct 2020 07:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602686488; cv=none; d=google.com; s=arc-20160816; b=eGUMMs1N2+WUxV+OM66hQ0LRt/gTSwpAWS41e5/COBBai55btjgKIDrNqOKfM8ILyI wkCdsEGwhHmMOgIL6lAT7iF8REH8c820dhiSoKSdehanxLddKlUl4aQW6psY9QkuypAl mcETqD3v7E/55BiQvppmJJCDnjsdwkaEg8/UDWXmY7OK+39qGM7C+xavLZpJ+UNbwSNh RU23rc8Wtn65GqW/jjgSkqIHUF63UWEhqTAG//S+yunPTrDNG3hHH7U+Kg5nEiC6aKRc j9RKwyuHRmy6K5pF752dysviSymh40wO3Vnnm0u5mcnJOg0cLmHfLMdPaeOSOf4wahEa d1wQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=P24ctiPgA/nHDR78H2N6HQcISCla3VGLPTthOKXCcGE=; b=w3VzxQ2qroYkQ3nVwMoVApRTdQtOq965I7Zx8xIyH1PEOShb8BPoRLEcwVz4JiX9Cc SGyEGFSpcCiyvw9OEkiIbT1aiGbaKQl+8SJmgrXG3feaQzkHDXortUUItPfFqTZk90kf JV4jI8qTx55pkmjuqk1o2E8izpOEpeAwL9VN6jD5SGA2OZ4gR12fGJRNp9SABmaK0MIc 8uLdkTfyzZOQ34UOIRIg6FNVjJi/hkxDAkQHGpu/fMYLnv4RdF0vGSd5MVi91LbdoDdi vSIBV2626/AcfuYHxbuGuk1dCsMi3MUMdMrXBXIIdl98S3T/hHqQB1RdgtK+8mvc+iwZ 44Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W8My26oS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u17si2771360ejk.29.2020.10.14.07.41.05; Wed, 14 Oct 2020 07:41:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=W8My26oS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387507AbgJNIop (ORCPT + 99 others); Wed, 14 Oct 2020 04:44:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729900AbgJNIol (ORCPT ); Wed, 14 Oct 2020 04:44:41 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10AC1C04584C for ; Tue, 13 Oct 2020 22:09:34 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id e18so2121118wrw.9 for ; Tue, 13 Oct 2020 22:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=P24ctiPgA/nHDR78H2N6HQcISCla3VGLPTthOKXCcGE=; b=W8My26oS7j5Nd3h8LhcLwAO53xxIfSg3+E20CCvPsO3o8gGwYfyc6LTvxquHJ1aKS7 nB7QQKbMS0aXEGSd0IQYHHD4fI4PAC5fKff+NF3rDtC/XG+8R99hKi1UFGpiJzFbalqf t6o7CdI9MK3eHZLjzcTI922TJ7YzilRwt1a4hGjHhPaxZI1dnLp1gYzsEYd8go0OBPbs QPPMfu0FT2R17gn472ATHBOE7Fbe+FHhbRVm9l9dz/qkrVALJpM8Sz7O8UYL/QRy0l85 /qsGEuaLprtgd3SWFcil/8C+mLSQjgpkqJc29FbV1l/wN7U6HliSdLnTQY9k35H7PI12 Byjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=P24ctiPgA/nHDR78H2N6HQcISCla3VGLPTthOKXCcGE=; b=HuycY3oADMX6LxAcL/6n1M6/+Zqpjimx0jWOKQ59slL2RLws0AKZ+EvTnU0z3DcRdi jx+KxcaQTyjndTdrNUVurD41bSb6fQLGVAttsb5yl6jdou2Z31EwMh5dJYnZchVXx7/j g3hI1oO+bkLWuaILmdlirxd+2Ddlo1drJ4p5Xcjs3Qhdh7cnzx8VlWXnsYDMtAxvE5Tf pr9QHUZLdZVT3s3L/SSfjlaKITHwBbgrSqAIgs+khLCvXAeq8KCq8o+NH5TLsurKyyQM ae6oBycoBaIqn9kyX5bE9R7IKO8sa1kaob4EnTySeBnzKJND7GeegJ5wH6hSCvJ3qv6I A/GA== X-Gm-Message-State: AOAM532GkVwPmqQSJnI2qOY53T4tpwtiBkndFZlf6/iVnILDKWxPiaUI gS2p08FDjO4bZCMmV/nAL3vcSg== X-Received: by 2002:adf:e650:: with SMTP id b16mr3299541wrn.350.1602652172767; Tue, 13 Oct 2020 22:09:32 -0700 (PDT) Received: from hackbox2.linaro.org ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id t124sm1823330wmg.31.2020.10.13.22.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 22:09:32 -0700 (PDT) From: Leo Yan To: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andi Kleen , David Ahern , Don Zickus , Joe Mario , Al Grant , James Clark , linux-kernel@vger.kernel.org Cc: Leo Yan Subject: [PATCH v1 1/8] perf c2c: Display the total numbers continuously Date: Wed, 14 Oct 2020 06:09:14 +0100 Message-Id: <20201014050921.5591-2-leo.yan@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201014050921.5591-1-leo.yan@linaro.org> References: <20201014050921.5591-1-leo.yan@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org To view the statistics with "breakdown" mode, it's good to show the summary numbers for the total records, all stores and all loads, then the sequential conlumns can be used to break into more detailed items. To achieve this purpose, this patch displays the summary numbers for records/stores/loads continuously and places them before breakdown items, this can allow uses to easily read the summarized statistics. Signed-off-by: Leo Yan --- tools/perf/builtin-c2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index 5938b100eaf4..e602b7891ce9 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -2846,13 +2846,13 @@ static int perf_c2c__report(int argc, const char **argv) "dcacheline," "dcacheline_node," "dcacheline_count," - "tot_recs," "percent_hitm," "tot_hitm,lcl_hitm,rmt_hitm," + "tot_recs," + "tot_loads," "stores,stores_l1hit,stores_l1miss," "dram_lcl,dram_rmt," "ld_llcmiss," - "tot_loads," "ld_fbhit,ld_l1hit,ld_l2hit," "ld_lclhit,ld_rmthit", c2c.display == DISPLAY_TOT ? "tot_hitm" : -- 2.17.1