Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp328945imn; Mon, 25 Jul 2022 18:08:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uI2SYEMIpBnTbclMlOVxFYalu6q9gzkhayN8tkms0NelFivJeM1izlZoij0Zd3NN+cRwBa X-Received: by 2002:a05:6402:51d1:b0:43b:f89e:a751 with SMTP id r17-20020a05640251d100b0043bf89ea751mr8538791edd.391.1658797695419; Mon, 25 Jul 2022 18:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658797695; cv=none; d=google.com; s=arc-20160816; b=dBsPzk5Q4FE6gldLCA55n1YLoVem9mCUMqyvTlneX4+/SJH3pHMOJbrvU2yp3UdnxY dgbL7r5lqQAuQ+pQ6bhVpy7T+/VtfMW/lpqPiosJ6d/wZNZiyp7ypgXyI3fE2DV6mKYq LkMMMwPDni7wvf55341zcfxTJDSPJyqXpO5EddXRmVUbCNoKIjZb0D52mLrStIBj14HT vUEt7pjh/St930feFmQVKLwCkHAWa1A8+povWHvWnZiZVaepDEEa9tej55MEBFiDWzgD TUaOOYLhlRaHatwfBj4SF/JxY3Tsra1oAi1EXmL+X/Wojhul2xIjknEmz2NiNu1jUHPc V12Q== 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=wvN812HJX/f4OQCgFtTSENSrwvfkdLlaJPljBTRD9iA=; b=GPXNbSNYH0AslTB3iI793h2YchgmsKGI+OxmI+0xWoa2XpRugkerQNfZi+hkybLDRs KVPezUZZsKe8dMCm8IKSZQb8ypvh/sdJEyxPIZzmaK2rqfPhsVpUmogMO8/mhome+LoW HQN4T7CTTs7kbI3Z5rB6GBoIANs62By6E8CS5YwDb/TKP4VplEw4CEO0id/xHQjcIhh1 z6M2ifMJl8pm/9EYo7hN1Bu1HvOz1rN59vm/S1hArtgbDP98yUEzw19MZniH+bWkeiVj PDlsQ5TOcr0GMDMeVQ4X9NgP7UGXpcJwpZvmhVGNmjCqySGoZ/UE1Rac/rIr96h7D9cG uEXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EmLi77bo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf33-20020a1709077f2100b00726b4533cd1si9045646ejc.170.2022.07.25.18.07.50; Mon, 25 Jul 2022 18:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EmLi77bo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236428AbiGZAxS (ORCPT + 99 others); Mon, 25 Jul 2022 20:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229971AbiGZAxQ (ORCPT ); Mon, 25 Jul 2022 20:53:16 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC0327167 for ; Mon, 25 Jul 2022 17:53:15 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id bp15so23506077ejb.6 for ; Mon, 25 Jul 2022 17:53:15 -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=wvN812HJX/f4OQCgFtTSENSrwvfkdLlaJPljBTRD9iA=; b=EmLi77boATp1j5sFlXwc1PIt0zQyUIkOUvnmCGMddCioMWcEDCkCqAowbfhYPGZdvk Ji6G9wzGNF0snc/2LHXlPQhO0fnKR6V8QGajuxjPzfBB6ZEpLUyutnLwKnV2tr2VlY8D CbB1wtPusll4Oq84E5SELOdovai9pLJRXQlN/3A9MzUd4UvVaDsfEJh/FGYrD4pYc8KF HhPcE25o9BAHvqE8i87byn4vto0qHBAV15U5v7ew6/OORMkAaDtky+zTMMHDidi/bNO0 P2vjZCMe4+jlrj85xaOV1d9mTYaDi0cgyvXwGgrt+zRBYzpnMhDqpT0S6rT2+1mUNSk3 +ulA== 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=wvN812HJX/f4OQCgFtTSENSrwvfkdLlaJPljBTRD9iA=; b=EGDCm7Fm0IWwWWpcf6Me/IX141vLvxCWnJ0eH7W18l73VLWnewXLRF9Iybqi6wtn2p /UvilwVuJKwLNAU0JpXUz+7DWTv66Mzqxdmk0bLAJ1RwDiidgyVO5jXhUl05IXL1U3Pj GtkfOBhGi4cI93LphqAXXnYLNBR7BVqm/BWEQJT6JzwYsvR7tAKLrX0au2zNxquZtUpj X8BvCgVS1D689exg1cnjEa1/ffjy42ow3CELA/6PCmd8pMtIDvzaeYPdPs1kU/Nbzc8R Z2kpjUkTTRpdsDBJayRVzJ1ckgsjg7pfQLS/vhPj8AXNw0nklU84f9d+Wgzxkk1QP2Pm tCCQ== X-Gm-Message-State: AJIora+jrH7Q3qYxZV7GS2gCepNiZvdXy8z118sXnP49iHqHsE5JHJ8Z wyxg8NgZOpI2TtuU51w8Qco6TA== X-Received: by 2002:a17:907:1c1f:b0:72f:1ccc:bc3f with SMTP id nc31-20020a1709071c1f00b0072f1cccbc3fmr12178732ejc.281.1658796793730; Mon, 25 Jul 2022 17:53:13 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([104.245.97.243]) by smtp.gmail.com with ESMTPSA id m15-20020a50ef0f000000b0043a2b8ab377sm7912001eds.88.2022.07.25.17.53.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 17:53:13 -0700 (PDT) Date: Tue, 26 Jul 2022 08:53:07 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: Peter Zijlstra , Ingo Molnar , Mark Rutland , Jiri Olsa , Namhyung Kim , Alexander Shishkin , Ian Rogers , Fangrui Song , Chang Rui , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/2] perf symbol: Correct address for bss symbols Message-ID: <20220726005307.GA36862@leoy-ThinkPad-X240s> References: <20220724060013.171050-1-leo.yan@linaro.org> <20220724060013.171050-2-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Arnaldo, On Mon, Jul 25, 2022 at 03:29:45PM -0300, Arnaldo Carvalho de Melo wrote: [...] > > First we used 'perf mem record' to run the test program and then used > > 'perf --debug verbose=4 mem report' to observe what's the symbol info > > for 'buf1' and 'buf2' structures. > > > > # ./perf mem record -e ldlat-loads,ldlat-stores -- false_sharing.exe 8 > > Can you share the source code for your false sharing proggie? We need to > have something in 'perf test' exercising these routines :-) Sure, I am using the false sharing test case: https://github.com/joemario/perf-c2c-usage-files/blob/master/false_sharing_example.c ... with build command: $ gcc -g false_sharing_example.c -pthread -lnuma -o false_sharing.exe Do want me to proceed for adding test case? Otherwise, it's fine if you will work on the enabling test case :) Thanks, Leo