Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1976793imn; Mon, 1 Aug 2022 06:55:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR7GDVO8LxOS4+LJRR/lLAEXvQMa+y+aF8gu6Uc0OxFyltQ93BbAEpHRxrci25LkdGi0GJyG X-Received: by 2002:a17:902:9307:b0:166:41a8:abc0 with SMTP id bc7-20020a170902930700b0016641a8abc0mr16756773plb.135.1659362139367; Mon, 01 Aug 2022 06:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659362139; cv=none; d=google.com; s=arc-20160816; b=yhpEbGn9xHM9wFw3prJqXIZmpFkj33UFGzvX1e3Q7ak0U+vYdK8tkIk1uTdK8XBdKR mAFsed0X4PkiWW6pBhUJ9dWvFSMmMdGTvqZZ9vu1m9WTw7ECg24PENvcoF89BlWQiLlE kCscLeoof6khuvGlgMggatpPAcICatl8+ozekdy5RO4ev5yqC4CF1M7W5DT4lZiVQARw rvgT4dmxnRRC1xHJWqLnHe9fYPVguHjDtOpEwMh1+ikRZZIdPimxIw44Udn9loIeEjMW BhKlm2ssiDjWx6VLNGkUdQUWRDbh0uNGUI2os7FimCb8oZdMav66yRfKWZ161Dgn+7O5 TDtA== 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=HFfO1HMBlAYBBkGgrC3Zdil9m8wfHsNvxnffG7KMRuo=; b=X77eRLuKDIT70ThKKvqrXwpCc9Tde8UwgJ8Jmk23XRsduPBeiNOde19k90QTst4a9P k596DukMk2HG1SiFK1qZJvJdUiKCyjIMEeczSxEy1NsHOPTSE7M19jXiLpLZMYlpXjqq r78oMamPzIR+3H7hFbRXT1bLCn03AZIkE19XKiC1oPCKsCKWa2bWrlI0eirL0Zc6OM2x 3DP98SwW4iulGn1SA4ojb6Zhu0HS5fcobWUgWPEhfib2KywPtQVT+ZFOEtFxo95XAGDG yJIJjQ3Wz5T0/dx6i86GOeM3P8FaCmZvUQggvayekM84kUJVDF+EMLj1ZRXPER8pDnc+ WQEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NmziJKJz; 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 m25-20020a635819000000b0040cf7280474si13243258pgb.75.2022.08.01.06.55.23; Mon, 01 Aug 2022 06:55:39 -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=NmziJKJz; 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 S231416AbiHANZU (ORCPT + 99 others); Mon, 1 Aug 2022 09:25:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230349AbiHANZT (ORCPT ); Mon, 1 Aug 2022 09:25:19 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1ED4665C6 for ; Mon, 1 Aug 2022 06:25:18 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id tl27so2486886ejc.1 for ; Mon, 01 Aug 2022 06:25:18 -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=HFfO1HMBlAYBBkGgrC3Zdil9m8wfHsNvxnffG7KMRuo=; b=NmziJKJz1JfpVQc2os/blbsd+CkXJlYxuJ4vDzaF7b39G295OU5bumPkdwFdj6bDit EqmAmQZ2KTW3KWsUS3rmNaXkL0x69Wa7iBop+DaPrcbnajH+V+Y55VyU65Q8YaNth8uJ rf9XupigkmQo98VrQknB34nkIzsO1Pl8qtJdUdzIHia4Ijr86w2r10dRJAd6IioMBH48 VsimMUdUpwI7rKonMC0GX4dnt1vAmtBKQUjNcYh1a3JGUmWg8D1e9TI65QKQw4mebBDq Uh6baa7v1mTSQUnzOPvinTGpFuPFRan99auvMCWRiZ2coKShMA2h9e9vZUnK+2jkIA4J 430Q== 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=HFfO1HMBlAYBBkGgrC3Zdil9m8wfHsNvxnffG7KMRuo=; b=JI767R/kKydNXHluuCnLqhJx5uHP/aUAOkBIYZrFnZlafyRUr3sdwCnWLIxA85bOaF myz0bFvEDvZEBn02x5B6Dnf/sL/bX7dMRCJGdqetMgN45LE2BBHm9rYkb7IvPV077wCS NrvmwpsbG68PX7x+aFykke0we8QhYUOOIkmAXdWkcih+A8jXs4JA0iU6hc7Jqg8jsglM 3qltyFCeFsG+2n/b856ErQASVxT07H8aIA2WeVSBUleAj7jhWwBZOLoa1K1xByZF4N8d 0qbVdBhCQqlagPtB/BgjMH9ESXyrJl3x1+ZS821kfRexHCOvCGSXzqx/6L3a3mdl0CKY n2VQ== X-Gm-Message-State: AJIora9m9Oy2iXShLHrdat4+Si1L15jQsR/zt+Bk/KjZdib5bnq4J5UY EYGos7xbW/xTgojO0MpVKBWKKQ== X-Received: by 2002:a17:906:cc17:b0:72b:4561:9153 with SMTP id ml23-20020a170906cc1700b0072b45619153mr12127952ejb.249.1659360316572; Mon, 01 Aug 2022 06:25:16 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([104.245.98.208]) by smtp.gmail.com with ESMTPSA id 10-20020a170906218a00b006fe8b456672sm5171255eju.3.2022.08.01.06.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Aug 2022 06:25:16 -0700 (PDT) Date: Mon, 1 Aug 2022 21:25:11 +0800 From: Leo Yan To: Arnaldo Carvalho de Melo Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users , LKML , Stephane Eranian Subject: Re: [PATCH] perf symbol: Fail to read phdr workaround Message-ID: <20220801132511.GC73228@leoy-ThinkPad-X240s> References: <20220731164923.691193-1-irogers@google.com> <20220801015259.GA101027@leoy-ThinkPad-X240s> 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=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 Mon, Aug 01, 2022 at 09:38:23AM -0300, Arnaldo Carvalho de Melo wrote: > Em Sun, Jul 31, 2022 at 11:19:15PM -0700, Ian Rogers escreveu: > > On Sun, Jul 31, 2022, 6:53 PM Leo Yan wrote: > > > > > On Sun, Jul 31, 2022 at 09:49:23AM -0700, Ian Rogers wrote: > > > > The perf jvmti agent doesn't create program headers, in this case > > > > fallback on section headers as happened previously. > > > > > > > > Fixes: 882528d2e776 ("perf symbol: Skip symbols if SHF_ALLOC flag is not > > > set") > > > > > > It's good to change fix tag as: > > > Fixes: 2d86612aacb7 ("perf symbol: Correct address for bss symbols") > > > > > > > Doh! I was rushing this morning. Thanks for catching and reviewing! > > I made the adjustments and added a note with the repro, to help in the > future when trying to test this area. Thanks, Arnaldo. > I also think we could have something like a 'perf test' mode where, when > asked to, it would enable tests that involve downloading such files to > perform tests, such as this dacapo benchmark, and then would test if the > output matches expectations. I will add a testing based on the steps, alongside with the discussed testing for data symbols. Will share out after get ready. Thanks, Leo