Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp3672455lfo; Mon, 23 May 2022 11:00:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjRTn8c0fEu+JmscFSeNlwo2rhQL14wRcl5fOB21Y439VR0ijH/J91xvuMuNLaWrUL/Snx X-Received: by 2002:a17:90a:3f8c:b0:1df:28c5:e87a with SMTP id m12-20020a17090a3f8c00b001df28c5e87amr211753pjc.170.1653328839716; Mon, 23 May 2022 11:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653328839; cv=none; d=google.com; s=arc-20160816; b=D9AsUXlt/IMzL6hxEE/XNAVDXnvDKwm3Zkr/0ww+ArVHsdzxMPCX7fzZ0JtXXjzCvw VUyojSI92OfsPwLJiBfDK8dEneb3VAjH1xHca40rKw1L62oHQuEL5RpgcUWZlpn20xeq /rJc0yIxHDOf4mY5FZPH1Ftl/rgGa5bIh/VzMAY4xZJxTnFonvWUghA0NdKiP2mHmcgc LqbQo4FRmO7oj81kUmT6xF0CfeYvbyNSG2wpL2u4XVXtfP1JZZ1Ekci6/QsOAkDWFwOi Qtae7PINhEpJ7luYpIwU2tweh83iQjlLjjUPLNtUO/5kOS3FuSMSVHRyQTwFzFeTypXj HENw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=weOcs0SP0Itwl3y4nqcPRNxrz6fRVorG523c4Uo/pJY=; b=Jp5otwQZVNtljP4Xt/UBHv2Hv6tf+o1nLyZRjZ7TBZpCcsoEfYoYVSeAjOYpXcohZs KzWcwN4XgGJ8D/1hTy6CBpLiNUBV0Ycnk54uiXlE4OUx0CANadayuKdY7+4CjJSF0cET KRjpnIjfh8AmugdcS0kUWqU25EaD5vd8C96v9ornT69HgbY4JKorzEFKCqc5xsVfdU0S 36FzC0u8IJX9+01SwJWsYsxapw+K1bMX9AX1hE+Bj7w9anENoHqtLuN5AxIouesdeLvU Hdmi2KxxLSigMxOenn8C4JnrsrpIMf15NenGpYvgRfDioXvrIwekHNS/Iskq2Ry4FbFf cl7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aQ7BjRNh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id x6-20020a170902ec8600b00161debec41asi12258235plg.103.2022.05.23.11.00.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 May 2022 11:00:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=aQ7BjRNh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 20E571312B7; Mon, 23 May 2022 10:59:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243599AbiEWR5K (ORCPT + 99 others); Mon, 23 May 2022 13:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241684AbiEWRbC (ORCPT ); Mon, 23 May 2022 13:31:02 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C684663CF for ; Mon, 23 May 2022 10:26:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1653326677; 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=weOcs0SP0Itwl3y4nqcPRNxrz6fRVorG523c4Uo/pJY=; b=aQ7BjRNhNGMm9fhA/EZUz7pzdSAu9aNjsBbwzpRpu+a9BDDtMegfmnvKGm885XvVcBJdc0 1LXpw9YYYgHj0Vei8H25FVCZR/4IheFhJmjFh7+OCD0TnzV9e9/DLKWF1VsyagxNDpEOhL h39SJg0j4y7cD/FDvXUUOv1v5VhhwQ8= Received: from mail-qk1-f200.google.com (mail-qk1-f200.google.com [209.85.222.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-322-L1kG3ar0O3-tDNQGfbdspw-1; Mon, 23 May 2022 13:24:36 -0400 X-MC-Unique: L1kG3ar0O3-tDNQGfbdspw-1 Received: by mail-qk1-f200.google.com with SMTP id b1-20020a05620a118100b006a36dec1b16so4283892qkk.2 for ; Mon, 23 May 2022 10:24:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=weOcs0SP0Itwl3y4nqcPRNxrz6fRVorG523c4Uo/pJY=; b=2JuHXmciRb/bof7maqH+TXWUbO3J98SeJuMKMAV3hyJaHG1PA7tiaNE1Oltk9PnGkL ZeajwagfI5z28v4TXtIfwZmFOoRdKBsQXhEF/Ku9b4RsWhb2tb16wfcX/YTbkluhiLff iFjuq4sfWABBkPRV/nP+jzKD9O45Fr+p8LsByYBsvKgRTe/TvW2M4vlCH6PFqxukaDvd /2jW+0sJz3Mv26XXZZXlDzVek3XdXYvbo6THbWt20LBVbgR8fR59LiUsJx9xITVjKKkf 5TA2lr/bHL6NsscBfr8orpp8Vdr3y8wWGxQVpZvgCBmVgV8GX6xZAowcP7LFpazVwrG4 /1uA== X-Gm-Message-State: AOAM5323vDn25G2g/BMgSiabhFgxDNJco2XNK5effy1cTQ2KAYDtuIUC w9Dx5Mwn2p8wjCdtODjfutSDJuf/ZanacLUZx6xmrdM4aqKJFLg1bvGfLU8o7OzpAA/iQjYTd+P HUVRkzU0c5jR2juqKSCiCyVIA X-Received: by 2002:a05:620a:24d0:b0:6a0:7ba7:c6d1 with SMTP id m16-20020a05620a24d000b006a07ba7c6d1mr14114472qkn.514.1653326674371; Mon, 23 May 2022 10:24:34 -0700 (PDT) X-Received: by 2002:a05:620a:24d0:b0:6a0:7ba7:c6d1 with SMTP id m16-20020a05620a24d000b006a07ba7c6d1mr14114448qkn.514.1653326674117; Mon, 23 May 2022 10:24:34 -0700 (PDT) Received: from [192.168.1.86] (pool-173-48-131-43.bstnma.fios.verizon.net. [173.48.131.43]) by smtp.gmail.com with ESMTPSA id q186-20020a37a7c3000000b0069fd21d0b09sm4945054qke.0.2022.05.23.10.24.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 23 May 2022 10:24:33 -0700 (PDT) Message-ID: <7bf021df-2755-6937-629f-b3ed9281804d@redhat.com> Date: Mon, 23 May 2022 13:24:32 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH v8 0/4] perf: arm-spe: Decode SPE source and use for perf c2c Content-Language: en-US To: Leo Yan Cc: Arnaldo Carvalho de Melo , Ali Saidi , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-arm-kernel@lists.infradead.org, german.gomez@arm.com, benh@kernel.crashing.org, Nick.Forrington@arm.com, alexander.shishkin@linux.intel.com, andrew.kilroy@arm.com, james.clark@arm.com, john.garry@huawei.com, Jiri Olsa , kjain@linux.ibm.com, lihuafei1@huawei.com, mark.rutland@arm.com, mathieu.poirier@linaro.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, will@kernel.org References: <20220517020326.18580-1-alisaidi@amazon.com> <20220518041630.GD402837@leoy-ThinkPad-X240s> <32e5a3b7-9294-bbd5-0ae4-b5c04eb4e0e6@redhat.com> <20220522061533.GA715382@leoy-ThinkPad-X240s> From: Joe Mario In-Reply-To: <20220522061533.GA715382@leoy-ThinkPad-X240s> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 5/22/22 2:15 AM, Leo Yan wrote: > Hi Joe, > > On Thu, May 19, 2022 at 11:16:53AM -0400, Joe Mario wrote: > > [SNIP] > >> Last Comment: >> There's a row in the Pareto table that has incorrect column alignment. >> Look at row 80 below in the truncated snipit of output. It has an extra field inserted in it at the beginning. >> I also show what the corrected output should look like. >> >> Incorrect row 80: >> 71 ================================================= >> 72 Shared Cache Line Distribution Pareto >> 73 ================================================= >> 74 # >> 75 # ----- HITM ----- Snoop ------- Store Refs ------ ------- CL -------- >> 76 # RmtHitm LclHitm Peer L1 Hit L1 Miss N/A Off Node PA cnt Code address >> 77 # ....... ....... ....... ....... ....... ....... ..... .... ...... .................. >> 78 # >> 79 ------------------------------------------------------------------------------- >> 80 0 0 0 4648 0 0 11572 0x422140 >> 81 ------------------------------------------------------------------------------- >> 82 0.00% 0.00% 0.00% 0.00% 0.00% 44.47% 0x0 N/A 0 0x400ce8 >> 83 0.00% 0.00% 10.26% 0.00% 0.00% 0.00% 0x0 N/A 0 0x400e48 >> 84 0.00% 0.00% 0.00% 0.00% 0.00% 55.53% 0x0 N/A 0 0x400e54 >> 85 0.00% 0.00% 89.74% 0.00% 0.00% 0.00% 0x8 N/A 0 0x401038 >> >> >> Corrected row 80: >> 71 ================================================= >> 72 Shared Cache Line Distribution Pareto >> 73 ================================================= >> 74 # >> 75 # ----- HITM ----- Snoop ------- Store Refs ----- ------- CL -------- >> 76 # RmtHitm LclHitm Peer L1 Hit L1 Miss N/A Off Node PA cnt Code address >> 77 # ....... ....... ....... ....... ....... ...... ..... .... ...... .................. >> 78 # >> 79 ------------------------------------------------------------------------------- >> 80 0 0 4648 0 0 11572 0x422140 >> 81 ------------------------------------------------------------------------------- >> 82 0.00% 0.00% 0.00% 0.00% 0.00% 44.47% 0x0 N/A 0 0x400ce8 >> 83 0.00% 0.00% 10.26% 0.00% 0.00% 0.00% 0x0 N/A 0 0x400e48 >> 84 0.00% 0.00% 0.00% 0.00% 0.00% 55.53% 0x0 N/A 0 0x400e54 >> 85 0.00% 0.00% 89.74% 0.00% 0.00% 0.00% 0x8 N/A 0 0x401038 > > Hmm‥. At my side, I used below command to output pareto view, but I > cannot see the conlumn "CL", the conlumn "CL" is only shown for TUI > mode but not for the mode "--stdio". Could you share the method for > how to reproduce this issue? Hi Leo: I figured out why my output was different than yours. I did not have the slang-devel rpm installed on the host system. In my original perf build, I missed the this output in the build log: > slang not found, disables TUI support. Please install slang-devel, libslang-dev or libslang2-dev Once I installed slang-devel, rebuilt perf, and then reran my test, the pareto output looked fine. When the TUI support is disabled, it shouldn't corrupt the resulting stdio output. I don't believe this has anything to do with your commits. Last, it looks like you should update the help text for the display flag options to reflect your new peer option. Currently it says: -d, --display lcl,rmt But since you added the "peer" display, shouldn't the output for that help text state: -d, --display lcl,rmt,peer Joe