Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp551857pxu; Wed, 14 Oct 2020 07:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfcfvUUTj8c9cL8KEsoCVg8pSvtEWQ8KJ4poRx8AJumh/HrfyNbe/4ngS6rY0GlufcJwWK X-Received: by 2002:a50:9b1d:: with SMTP id o29mr5811805edi.56.1602687385306; Wed, 14 Oct 2020 07:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602687385; cv=none; d=google.com; s=arc-20160816; b=PEBLeF9M0J3/GmpCtxO+FhSnYrKuVu8rQpLLzb2jj28l4vrdytW1jGOsuLPvuEhxbt Aw/S/BUA4+ebNhS+dBiU/hX/rMEV3zbxjnlviOY2Oa6qEZaLoEgIEdFftv0fpBv8Xwum +OyUusTIJh5or0ObKm77+EZb5XB3MoXLcQliokLeUZ3ZneBF8B3NhChRbO6wyENM4het 5MD5BTRLOaEatcBw7FskUbh2N/TGhLIZsWyxLHn//OInmtPvipi4tjcE0ZkwIOChANWk sfQ/a7PD/XnXK8xOjXxj1C3y1qQtrtF5RvxFGJuQj28nD/4sPeFltI7lILhpNzVnISrr BLMA== 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=c1KU/u1XvFV1/DzHOJSQxp2UACwpRThoBvf4nVHIH4s=; b=xycfsZG+G7Xqa3MJCscrrhg7gdtSTVqw6Id40JYQJpj+nSDAOotlTUFGAhYUzIfiGP FWQrlCMKRSQ4s+j6Ovv412nLftI8JK7ODXCs7ERNCgGYWOyFWftYV7sgLsUSAm0Y5sjE 7/0KLqTCWispVXtOZpgH0EQqDpZWM27Xq8VZ5iitluu0swzMdUYDYl5GAQ9CGhLFO0AC kE92B39g6dBqpDuAZBfrWZHU3W+H1HEtmMIxhEtaZWoy+K4pA0VEo/SClfB/qQNB0HSG 4pW+y2/lfMjPSIbNKuatBBUJs+dwhLosQ8PH/Ejoa1qz5HMskxqoC0UDH+qTd3PNnqsd gyzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pOpOecqs; 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 q20si2530326edr.351.2020.10.14.07.56.02; Wed, 14 Oct 2020 07:56:25 -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=pOpOecqs; 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 S1730367AbgJNIyv (ORCPT + 99 others); Wed, 14 Oct 2020 04:54:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730254AbgJNIyh (ORCPT ); Wed, 14 Oct 2020 04:54:37 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68E07C04584E for ; Tue, 13 Oct 2020 22:09:36 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id y12so2148033wrp.6 for ; Tue, 13 Oct 2020 22:09:36 -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=c1KU/u1XvFV1/DzHOJSQxp2UACwpRThoBvf4nVHIH4s=; b=pOpOecqsck8XVdzOuzSM9YkCAJ+kNXWZj1ydF5TPQBGk05H7ylk8cBFkDwqMP2nF1S UnoC2N+VMbwTJemfGsoC7vghhZNTVqF5bdWIgoBVsf93LjEBlY82U1B0FJnF/3IGLqxJ gZRAObabZSDdlsW7Ol35IY4/6z+lSvykLZ6xxx5W1qHjGvQH4fCnqpPL26xm1oStIehq Xu7KhlrwT+y0g99OQ1K1SkL8YIYOJsoopGNK2FrytlEB+taeai0EJfI7qDEu8Pv8RtGf ZT683sLMDgHc2nKhgf5KD/lLUZN2PkWWrRdRvhDky6zXubkdpfsftTm5DF6eQ02CZIX4 vNJg== 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=c1KU/u1XvFV1/DzHOJSQxp2UACwpRThoBvf4nVHIH4s=; b=GKdOzzdMt1WvYOf9rY05JcL1s4hCzLCELT/EhrOYqfMsXFdpr7Q7OckuLi0SWzugYs uTuLYS9TncRZ9dpQu4pylRcj4BP4t+Hmqzf39JF43PuV/Cf8GRgNT9fV65P95YdFg8tV Srpk2aFgoPD8K6AMJkNSILrbFSMCg3MEKf6756lDb/IOPgaaqb/kHLgEwdsUA8eTWHws vTSK6gKneA4atlyDZ78v6oDfJ0l9OagHc3DUgPzO5lB8M0um2BZ0BBTd0tBowaPEW7mA 7Q224lrG/Edb53eDOlL3S+5mlFQh6D4HeHpitnMekKKr3mXJ/KLcs8Dz4LZeODuciGtf h7Uw== X-Gm-Message-State: AOAM5333bvLDXZ7TzNB28n1wmmjba8w93rOXncjUPTyXTXMhZmrKjqLm 4IZysInKsy0ni+/IFzI3RWIzYmmc1/72jkG1 X-Received: by 2002:a5d:6407:: with SMTP id z7mr3379158wru.271.1602652175153; Tue, 13 Oct 2020 22:09:35 -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.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Oct 2020 22:09:34 -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 3/8] perf c2c: Organize metrics based on memory hierarchy Date: Wed, 14 Oct 2020 06:09:16 +0100 Message-Id: <20201014050921.5591-4-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 The metrics are not organized based on memory hierarchy, e.g. the tool doesn't organize the metrics order based on memory nodes from the close node (e.g. L1/L2 cache) to far node (e.g. L3 cache and DRAM). To output metrics with more friendly form, this patch refines the metrics order based on memory hierarchy: "Core Load Hit" => "LLC Load Hit" => "LLC Ld Miss" => "Load Dram" Signed-off-by: Leo Yan --- tools/perf/builtin-c2c.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index a2ad24799aea..404d4739b8c1 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c @@ -2852,10 +2852,10 @@ static int perf_c2c__report(int argc, const char **argv) "tot_loads," "tot_stores," "stores_l1hit,stores_l1miss," - "dram_lcl,dram_rmt," - "ld_llcmiss," "ld_fbhit,ld_l1hit,ld_l2hit," - "ld_lclhit,ld_rmthit", + "ld_lclhit,ld_rmthit," + "ld_llcmiss," + "dram_lcl,dram_rmt", c2c.display == DISPLAY_TOT ? "tot_hitm" : c2c.display == DISPLAY_LCL ? "lcl_hitm" : "rmt_hitm" ); -- 2.17.1