Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3877635pxu; Tue, 20 Oct 2020 02:55:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8DTPeo2M4DM9BudYhHBDbiBa85kN2zISWYtjDE5GSEfY04qlosZmmBH4merpwpRXlXNFZ X-Received: by 2002:a17:906:ad8a:: with SMTP id la10mr2295152ejb.176.1603187745896; Tue, 20 Oct 2020 02:55:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603187745; cv=none; d=google.com; s=arc-20160816; b=FHV5QFlworsRe6QjuumG7Mbs57qnGizZO+QT9ckGnFEFSj5puW6UZR7gFrxYFWCTt6 6fwCtrblvAwzhFd0MB1yqsJybSgcxMCHb160kxPfoZ1yes/qanqLA4bd8mEfTQ8x5Kgo CFrajujPYWvcVkNZbAacLo3F+A9/DMHgIR3HlayCqzAN6lm7G/y6SgSlqo9v68FWpc/X ahP96Zpjk5tiSETQa4bHGFeP1+4dDaCMWdjqLh/zuQXF/rUCvoTSGqa+kgG1Y4DzIl94 oZqHWJQ3WoNClT+ots1p3Qw8SNYnd8h9nfQL7quNVxt7M4dLs7FodOK6iTZwkkUrfgaY tG1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=WCFAopo+cEFCy2X+ReJ+801uHfD9Q6flHYrpBpeHGik=; b=04i7gVDBo1NumbFO0xmkvLi2nRBitVuHIJjeKf47loIhOOoata0kl/t71H7MvK/ZH0 KrZLkUZ8FNW+Vx1UZIlppk6VHf35TtN+NKn6z76UoRas2T5BbXPGLnaA2rKHEoLMA2LF mQVDPvOub1df5SZsIfQ2rlYQM5F93B4f3xqcbxLX1pKpKb43EY+UEH12DVPwFmFf+Y7q 9iiYLHjGYdcP2z6MbxuPPi7jDXJYCqvus8x5DAk9zxgElu8fLv7GFrCBU6wEabBN0PsQ gfVZ2rbFPKYufHPy1hUsrzBWSvi6MGcNezVnnqLPvyXhRctgWlBpqQ7zTmZdtFrrzshK +YFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JOgtrOyX; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t18si850141eje.652.2020.10.20.02.55.24; Tue, 20 Oct 2020 02:55:45 -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=@redhat.com header.s=mimecast20190719 header.b=JOgtrOyX; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405104AbgJTH0Q (ORCPT + 99 others); Tue, 20 Oct 2020 03:26:16 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:59054 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731225AbgJTH0Q (ORCPT ); Tue, 20 Oct 2020 03:26:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1603178775; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=WCFAopo+cEFCy2X+ReJ+801uHfD9Q6flHYrpBpeHGik=; b=JOgtrOyXWkZpvtHCr637UF6TIK6hMaVeArDJGMW4jxuKrV8DQuCJAiHAbx2ukAE7BuJGzg cddooYRVpG9LVa4/p6hsZteSnblSLNZVX17o8ptxjMIaWa1utUQezJ/2ExysH29us3lbI/ R9vIj1/ncoZrlhz8foTMau/hnHe4hj4= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-590-VfkAECRnPKSBrusFbIdktA-1; Tue, 20 Oct 2020 03:26:13 -0400 X-MC-Unique: VfkAECRnPKSBrusFbIdktA-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5E13D875060; Tue, 20 Oct 2020 07:26:11 +0000 (UTC) Received: from krava (unknown [10.40.192.162]) by smtp.corp.redhat.com (Postfix) with ESMTP id CE80860C13; Tue, 20 Oct 2020 07:26:04 +0000 (UTC) Date: Tue, 20 Oct 2020 09:26:03 +0200 From: Jiri Olsa To: Leo Yan Cc: Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , Kan Liang , Andi Kleen , Ian Rogers , Joe Mario , David Ahern , Don Zickus , Al Grant , James Clark , linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 7/8] perf c2c: Add option '-d llc' for sorting with LLC load Message-ID: <20201020072603.GD2084117@krava> References: <20201015145041.10953-1-leo.yan@linaro.org> <20201015145041.10953-8-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20201015145041.10953-8-leo.yan@linaro.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 15, 2020 at 03:50:40PM +0100, Leo Yan wrote: > Except the existed three display options 'tot', 'rmt', 'lcl', this patch > adds option 'llc' so that can sort on LLC load metrics. The new > introduced option can work as a choice if the memory event doesn't > contain HITM tags. > > For the display with option 'llc', both the "Shared Data Cache Line > Table" and "Shared Cache Line Distribution Pareto" have difference > comparing to other three display options. > > For the "Shared Data Cache Line Table", instead of sorting HITM metrics, > it sorts with the LLC hit metrics "tot_llchit". In this case, users > should be interested in LLC related statistics, so the dimensions of > total LLC hit is used to replace HITM related dimensions. > > For Pareto, every single cache line shows the metrics "cl_llc_hit" > instead of "cl_rmt_hitm", and the single cache line view is sorted by > metrics "tot_llchit". hi, I'm getting compilation error on newer gcc: CC builtin-c2c.o builtin-c2c.c: In function ‘perf_c2c__report’: builtin-c2c.c:1979:9: error: ‘sort_str’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 1979 | return hpp_list__parse(&c2c_hists->list, output, sort); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ builtin-c2c.c:2900:27: note: ‘sort_str’ was declared here 2900 | const char *output_str, *sort_str; | ^~~~~~~~ jirka