Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp196500lfo; Tue, 17 May 2022 22:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFsCIaEgmpq3Ta8ryQCSTC5FGGJB56ndeTHVDKRHOS7SksSuB3RlWiOsVcE7bKYC0eO6k9 X-Received: by 2002:a17:903:228f:b0:15e:be12:a181 with SMTP id b15-20020a170903228f00b0015ebe12a181mr25467814plh.21.1652850343184; Tue, 17 May 2022 22:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652850343; cv=none; d=google.com; s=arc-20160816; b=Wwgj/Q5oPUefPnZqvN1lnVcXFd3XhSMRhUfGsuIivOjsDDLmnKkAIxosfR4xX20sS/ 6AK0XxYYUdEg+LWyVQU9xctUOWIvYrLpl8uEkwArv0ewiK1M8z+NJLYU5+wzS+HNhuAL PAiWj3qWSFJOfhEq1AzDgUJOOss+TpVkKK2qRNGFlVgBXKMXQonnI437yCs0owkMPHGC pp3SpGj4vnUexW/BneEQh+i4TG278SUW3cSJPHGiEk62ihiHv8ETZi4DESg9JqRcUktZ P2aJkvNXKGIWCzjshCAnJ0iSj23qn2bI9dRmq6U344Scm1SJ3UgvZPnbvuJfx5nZ4QH0 Sm7g== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a1/wuoT5db0kZRpIcSlyOn+OdTYXUqFFSk5R5NCmBHw=; b=r/yFuOc1UtlxKTQimPh+HkZ2VyoPdDTj6BfyIvo4g9qgHltQCog/HFWelBznmdLYhl xOxPo7dvDBrqKhwdJmAdlSFbijjiWJRmH0jITU6Ao4nAt+/zNx8G5CESIqNZDBou0Vu2 aJ2UvHzklTAff+cAmp8Y8SSPYIDYgshvcZwpU991B0d3juXjXhkV6vzMquPieawB39NI IERemvHSOC7JoL0YKRLYTlmZiU+d0fPB68w5GRi3FFCAlMZOdFEB8NKfNklU5NrWrt/W /rT8PQRuPNAP0pfPQvaRHsXwgQZn5ZR36j4m3m4qh1Yq9BDcrxnvzupkIxhdmNK8XlMV NREg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MyF+2wck; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id jd6-20020a170903260600b00153b2d165d8si1253344plb.480.2022.05.17.22.05.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 22:05:43 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MyF+2wck; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 59B8B193FD; Tue, 17 May 2022 21:16:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229582AbiEREQo (ORCPT + 99 others); Wed, 18 May 2022 00:16:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiEREQl (ORCPT ); Wed, 18 May 2022 00:16:41 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB35118E24 for ; Tue, 17 May 2022 21:16:39 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id j6so979147pfe.13 for ; Tue, 17 May 2022 21:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=a1/wuoT5db0kZRpIcSlyOn+OdTYXUqFFSk5R5NCmBHw=; b=MyF+2wckfA0xYav8+EWfGdnkUM0DYtS4Y2y9V/ytqWLSrqhylsXZ2s8Mq/FwmlhHTq lxy7FfrbV8Ab+3HwWgL2PI6Y6FSeSSbOvBijJNxilLM156T5cCkLfa2mR/pUiLxy48Xx x8WGMoK7dbEGOcP9xeFijVk+gWVRAX8xXilDHmGp0kXMQPvqoI3nl3uya0+Vmck8dpFQ 9wDqW4/ODwpDMX2TfgDg94LOwZrur7HoIiSsRbBbTyr1DyAvksOdQu/GjL0B0k2a32VY xfFSvTFSZGm5qBDg+NsrxsizvAE8eD7RzwAAMBBM3nF1lb4JZz62ffvjJ/QE8dMb6mBk NYAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=a1/wuoT5db0kZRpIcSlyOn+OdTYXUqFFSk5R5NCmBHw=; b=BQi/BUamru9boF6HGqMvsu5uf1ak5WnmarP+dmnmYiB9iZVypSZT4UngLpFORS0jfl Xv0h64bfVjSTKs9JyDqSWZt1RuQMcHjfy/IHSyA3DCFFlTodcGA38BGpVFIZQ47YU/r7 9gM3vEmbQwj5vFbmmVNv4v2ynLbymp973Bt1YlPxuIO32WYnsRbB8ZB95S1ul1HKEE4O GjlKS2DoQW786SWCW2CGemSFWZVXk6DSeHFEGyr8zL1XZepYhKjV2894QIQf10Oy+Ffu bkncVDWViO2CHF2A1PlpVk1zDQplj/dmGgCr2bY6ZIh6ZOqiABDTPxjd+kBrijVUHEd4 NLXw== X-Gm-Message-State: AOAM533+XIWCMZwGhIiYEFcUMzaShKi+WjfB+qWUItXYYW6MHRrDtJve GKDu+o9pjh2ipNSpx/5G4cu7DA== X-Received: by 2002:a05:6a00:170d:b0:512:ebab:3b25 with SMTP id h13-20020a056a00170d00b00512ebab3b25mr22777489pfc.32.1652847399126; Tue, 17 May 2022 21:16:39 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([137.184.121.66]) by smtp.gmail.com with ESMTPSA id p123-20020a622981000000b0051811c2aa89sm568212pfp.196.2022.05.17.21.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 21:16:38 -0700 (PDT) Date: Wed, 18 May 2022 12:16:30 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: Ali Saidi , Joe Mario , 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 Subject: Re: [PATCH v8 0/4] perf: arm-spe: Decode SPE source and use for perf c2c Message-ID: <20220518041630.GD402837@leoy-ThinkPad-X240s> References: <20220517020326.18580-1-alisaidi@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe, On Tue, May 17, 2022 at 06:20:03PM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, May 17, 2022 at 02:03:21AM +0000, Ali Saidi escreveu: > > When synthesizing data from SPE, augment the type with source information > > for Arm Neoverse cores so we can detect situtions like cache line > > contention and transfers on Arm platforms. > > > > This changes enables future changes to c2c on a system with SPE where lines that > > are shared among multiple cores show up in perf c2c output. > > > > Changes is v9: > > * Change reporting of remote socket data which should make Leo's upcomping > > patch set for c2c make sense on multi-socket platforms > > Hey, > > Joe Mario, who is one of 'perf c2c' authors asked me about some > git tree he could clone from for both building the kernel and > tools/perf/ so that he could do tests, can you please provide that? I have uploaded the latest patches for enabling 'perf c2c' on Arm SPE on the repo: https://git.linaro.org/people/leo.yan/linux-spe.git branch: perf_c2c_arm_spe_peer_v3 Below are the quick notes for build the kernel with enabling Arm SPE: $ git clone -b perf_c2c_arm_spe_peer_v3 https://git.linaro.org/people/leo.yan/linux-spe.git Or $ git clone -b perf_c2c_arm_spe_peer_v3 ssh://git@git.linaro.org/people/leo.yan/linux-spe.git $ cd linux-spe # Build kernel $ make defconfig $ ./scripts/config -e CONFIG_PID_IN_CONTEXTIDR $ ./scripts/config -e CONFIG_ARM_SPE_PMU $ make Image # Build perf $ cd tools/perf $ make VF=1 DEBUG=1 When boot the kernel, please add option "kpti=off" in kernel command line, you might need to update grub menu for this. Please feel free let us know if anything is not clear for you. Thank you, Leo