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 E0C7DC433EF for ; Tue, 26 Jul 2022 00:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235706AbiGZAxS (ORCPT ); Mon, 25 Jul 2022 20:53:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230247AbiGZAxQ (ORCPT ); Mon, 25 Jul 2022 20:53:16 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 445C12716B for ; Mon, 25 Jul 2022 17:53:15 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id os14so23539314ejb.4 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=aN3WttoEUR9shtvdWY9zv8lDOxTxa0Vskc9v7/MJbCqE3bQRjjJFy8e2zKh5ay2SMy 9WgtmhiGqjI9rM72lifQkk2FneF1Tu3/pLr1iWV0ZUZf7/msc3xZVhXQZofLLl2HKxnF KAtkwoAnw5dSmXldOSXwaKAuGQzeDhSECiyDCWOxlerp9OlblSWR+vEzf3lsNx7Gp3YY IUx6rEN+wpFDqtIpgxECGWf5bAooyWhArXXmSuOkP1NFYoaglR9Bh5Ioj9Mq956KpMLb 8m76C7vG1h1dYAENIG94lxa6vVNBKJcPgu3r4W9278FP8yqNX7IXKZf1e/oGi3uNzeuP 3ioQ== X-Gm-Message-State: AJIora8Gnu7MlQpguTPYun2vpp82EuPG1Br5xXq3aVYLWkcGddadNNe7 s/B4HVs1jW67xtq3al1CZr30yw== X-Google-Smtp-Source: AGRyM1vMtKa9GoFOwwRjF56McF8u7TC7HmlZJR3DgwUAs0Drq6G14agxLmErcjsy8ldHGI0cgS7QuQ== 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: Precedence: bulk List-ID: X-Mailing-List: linux-perf-users@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