Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp399122imn; Wed, 3 Aug 2022 08:34:28 -0700 (PDT) X-Google-Smtp-Source: AA6agR5a4hS8N4fhlSyImGps8nb3GC50HPuiV5Q6hp8B3XI2RpQRcZtv9FqzSpdr/FU60N89NFAR X-Received: by 2002:a17:906:9f2a:b0:730:bc30:da30 with SMTP id fy42-20020a1709069f2a00b00730bc30da30mr1040619ejc.763.1659540868246; Wed, 03 Aug 2022 08:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659540868; cv=none; d=google.com; s=arc-20160816; b=qZwJh966QumRpRk4asqzFkwnn6Rp0UfpZwwO0ABnXbUO/yZgOBYUyiulJFZ8JbtMeS 28ZsWlIWgjRBmLxlkJrbKEIe25bQn/jRMWKRjsmpvhXJOE6dKRgkR7o+cn2gZv9WaslW g4v58LXsxO07Z4n1MgzrjM82kfpLOJl4W/ftbnw1vEBf4f+46h/Zslk3hKZ46OrNAd3m o/mRYxQFDeM9wmOQKj6yJLvBPZcSix7R0O6jKr/LArXyM3mkHtWGKLQIHlg+8PNbNiUr hBkrj5qA7mMIIQQaMkjwgI6KS15SJOXjuQ1f+E1wiQzyhqVrJ3Lh2itnyCPlFV7+6Mnf ImdQ== 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=vY5Gs44ObcZqhnAkDw1pnGHq29Y4iUKBpPeypGL8C04=; b=DDZRcgrdh4xb7EeJ1557NxcmdZmDpqab6shU4/CMSIjr3FXixU9Tbu/p7J4xdEO2qy 15LFmYD53sa6BZI/gH1jh3OBlwMKOEzkEZoOSD+beGMyX86NMDoXq4Jo5wjQFK0JRyVH oDORExmVR8h8NJpWgHlG4K+6sUpZYoRu67hdvmxoKXY6/3AlS31FU/YyCKcD7bw+6MyD 6jDPb1DURjwlaAMxOK4Uv6xIcJTvrxzXt8DMRjFDq2o3aagymTGMszGjsDgnQRjUY3C4 APWUrtB6KYm2La8vevMaaA1GGQOtHoQc1gi0KwsYfzNRgAbceszIDuMYs13DyLfUhAv0 HtdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="lJgAtu/c"; 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 nb13-20020a1709071c8d00b0072b4b8a0ce7si15694918ejc.946.2022.08.03.08.34.03; Wed, 03 Aug 2022 08:34:28 -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="lJgAtu/c"; 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 S236547AbiHCPZm (ORCPT + 99 others); Wed, 3 Aug 2022 11:25:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238082AbiHCPZf (ORCPT ); Wed, 3 Aug 2022 11:25:35 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 733AF264E for ; Wed, 3 Aug 2022 08:25:33 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id 17so16813014pfy.0 for ; Wed, 03 Aug 2022 08:25:33 -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=vY5Gs44ObcZqhnAkDw1pnGHq29Y4iUKBpPeypGL8C04=; b=lJgAtu/cwXyf8s1wIwQZ0CNNCCdmo3JMXJHH0lscHNOrNNBxXncxE/VrJgKSC2OmjC NOerG+8+aBL44+OZSHHph5NPJruytt71lzo8W8GEOnfS5lwOAUxXXIw2UcxyknUXR/1L lrVum/jmFqx0a1SppZUxYzDhGpaUJrzClIxxqSDWVBqc1ZjPa2kFfiJJMtWL/QhR5YOu /SaveEvW+ChdAin3Rtr7GwieqNMZCrxQJSNTs8AQckr40CoFwDoWcA9et803Nq9RtZ7J lrZ+le+z4NnubOJuVZXbTqF06axzexzf8tC/L2kW1P/kN1hk1pcSDjSyrqdoaXFeehIc 6pxw== 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=vY5Gs44ObcZqhnAkDw1pnGHq29Y4iUKBpPeypGL8C04=; b=puzGvyoyMIFR3zMYHxzIgv8E6k1flPSHZRsHWe6RTQDKapyJhz/Uf3wozg0V0Nson+ 2KToY1DVOn4wwr7Siurvpa5oQUBuyCrTLtBkkv05sEqepKj1Ccm7EeEGp0to20DXD7wq AqpuxwNcPDrelcH4oUWA140p5DD7wLV7uLC9xkPp9sdkzOXS4FO+H6SSBuvEfnTzehoN so83SRvJQL0/w+gU5W1r0wFyJKwM7fCwm8JPLh7cafXErTIAGSja3y5sgSw71T+7VYEp DHBYyBZkfOLzPFmAdR5qZRHwYVLqXp9cSZ/L58MrGDbQVDz+DWoBHiiH8DAtVVh/B0hz ZVdQ== X-Gm-Message-State: AJIora/w8+sdz37jc2vuOOz+rr9xAn7be0KM7gSrDueJCaQswE0aSV3R OtRH3xesVAzlYPcCMQExoWkpPHWzM9Hrhtyo X-Received: by 2002:a05:6a00:1a0c:b0:528:6baa:a2e3 with SMTP id g12-20020a056a001a0c00b005286baaa2e3mr26609309pfv.27.1659540332794; Wed, 03 Aug 2022 08:25:32 -0700 (PDT) Received: from leoy-ThinkPad-X240s (173.242.120.83.16clouds.com. [173.242.120.83]) by smtp.gmail.com with ESMTPSA id h23-20020a17090a055700b001f3162e4e55sm1756596pjf.35.2022.08.03.08.25.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Aug 2022 08:25:32 -0700 (PDT) Date: Wed, 3 Aug 2022 23:25:27 +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: <20220803152527.GA133193@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=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, Ian, On Mon, Aug 01, 2022 at 09:38:23AM -0300, Arnaldo Carvalho de Melo wrote: [...] > 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 am working on testing script for java symbols, one of the steps shared by Ian is: # /tmp/perf/perf record -k 1 java -agentpath:/tmp/perf/libperf-jvmti.so \ -jar dacapo-9.12-MR1-bach.jar -n 10 fop The question is how we can specify the path for the lib libperf-jvmti.so in the testing script? If we can run the test case from the root folder of Linux kernel source code, the lib libperf-jvmti.so can be found in the folder $linux/tools/perf, but for the integration testing the lib should be placed in an installed folder. Any suggestion if we have exited way to specify the path for libperf-jvmti.so, or need to introduce a new shell envorinment variable for the lib path? Thanks, Leo