From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC7ABC433F5 for ; Wed, 18 May 2022 04:16:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbiEREQn (ORCPT ); Wed, 18 May 2022 00:16:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229546AbiEREQl (ORCPT ); Wed, 18 May 2022 00:16:41 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5FC518E22 for ; Tue, 17 May 2022 21:16:39 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id p8so1000675pfh.8 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=NRudpVRNhEjiRhl47+ksUqflhzA2IbOq5z7fTK3av3tYp7avZMAz4i+DPa+JDTj5Gs qjxi/ypMlvSh6wYPKq0yOZ2mGi25HHBiunC117poWfGWEHz2LObxVJ6cJ+KnjrCQRghn j22gC2y4nC7mdYBj0kpVcBWJZmoUvAQBrBWihk6tcV7kvKe/28GXKJWHZ96d+kqoYNEi 8BZlITTgklgdvUYkjaryKqx+6BDHuxwj4Nrg56RN4yxn6emCa1p66ni/0TxYvhAX861w 0d74xQYQigxoiu+5P2lWCWXP/lLFUOwjMS6QYmpn2pOFJDkhUVo78NufkIQJsiuzUvJe MNpg== X-Gm-Message-State: AOAM532TDz2CyjQWYY5bvSu9jjWwQzW6+Fk3O1nWHD5lgB2OfbYE7bDm md9EWsxZZXMwYN1VIr6PnfM1dw== X-Google-Smtp-Source: ABdhPJxIV/XkPSMp7Do5pkXR6Jtk0s9fhWG2Gr5Uks+e1PYfpOasm2UKlDlq1CpPFhRZ9d2o6C/HGQ== 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: Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@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