Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1061686ybf; Thu, 27 Feb 2020 04:23:51 -0800 (PST) X-Google-Smtp-Source: APXvYqwXgTscgRJ1jE6N6KpsNWb+DoxwH7C77Oco05++ws70UHDhZL/uu/iJKDFl7+WrbzToAssY X-Received: by 2002:a05:6830:1305:: with SMTP id p5mr2935453otq.124.1582806230963; Thu, 27 Feb 2020 04:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582806230; cv=none; d=google.com; s=arc-20160816; b=Sla5IUAuRhcquwhx591yRcJOr29ep0VHnIqppXGdbyzBvsbfL5HvJEf83b6VB6jnOJ e2Os5P0I/mx7JLou6M3WNkVc7SsXhOOS/qICHvnSAgNVVTG6Iv3tOyXIosnsSiPP+mO6 dgrsc1QOSveP3xycVn1amPN+76yD2/86aGKZPKlbhdBd+W8BxGkHcIqev6xLSAqq3hRE mDvrXfMyAGFgmcRrtbKx/ueI9MhxggVh1/BNd7QG6Ph+vr6awuclGuzLWQCmmKF5aDk0 PEgZaTJDVQiySNV5YnqoXC/pz1/1NZtZ87W8EC3RTWyDGa613a25ghaKM+D8Tt6RDfe6 aUSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:mime-version:user-agent:date:message-id:cc:subject :from:to; bh=r6uHOW8cMh++1tyd15uFaedNtxTqWdueFJTB8HAHB6M=; b=0s1M/wcfbRW1rqGJYKPHbdgJzROaQU2k6pSj4Ji5qkeNrJKJc/YUxJ9xfQT1alEoGL 5zJV1zkOBPz/77RugWUeO8X81+zMLV/HFhmXwrg+v8I6hyiaznse6FkWyjoORPnmqNPT WwtQVbTggbc4jB2nCgF9o+f3MVCaMeC+faWSdBFdmnN/9tfTr14aFyHwgfW/WVONXeiw MdHb+tQtKjbs+6CuMthkIWh7qKDjHp2g9bGdnUu0QdLzpbwj+CRX0TGH6k5A8VQvv1Cz KawdFxgGVQ+0opgYruIeHOMN+n6w4fmiH4sJXvTpVlifd29cfcZUQBHl9ZBB2Wa/4as9 l4cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l14si1244331oic.222.2020.02.27.04.23.39; Thu, 27 Feb 2020 04:23:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbgB0MX0 (ORCPT + 99 others); Thu, 27 Feb 2020 07:23:26 -0500 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:48377 "EHLO relay1-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728929AbgB0MXZ (ORCPT ); Thu, 27 Feb 2020 07:23:25 -0500 X-Originating-IP: 81.250.144.103 Received: from [10.30.1.20] (lneuilly-657-1-5-103.w81-250.abo.wanadoo.fr [81.250.144.103]) (Authenticated sender: alex@ghiti.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 72A7E240003; Thu, 27 Feb 2020 12:23:19 +0000 (UTC) To: Masami Hiramatsu From: Alexandre Ghiti Subject: Perf tool regression from 07d369857808 Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Sasha Levin , Greg Kroah-Hartman , linux-kernel@vger.kernel.org Message-ID: <2bb02f9b-1413-97c3-684b-104a0fab9144@ghiti.fr> Date: Thu, 27 Feb 2020 13:23:19 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masami, The commit 07d369857808 ("perf probe: Fix wrong address verification) found its way in kernel 4.19.98 (and debian 10) and I observed some regressions when I try to add probes in shared libraries. The symptoms are: $ perf probe -f --exec=/home/aghiti/lib/libdpuhw.so --add 'log_rank_path=log_rank_path rank path:string' Failed to find symbol at 0x3bf0 Error: Failed to add events. Whereas when I revert this patch, on the same shared library: $ perf probe -f --exec=/home/aghiti/lib/libdpuhw.so --add 'log_rank_path=log_rank_path rank path:string' Added new event: probe_libdpuhw:log_rank_path_4 (on log_rank_path in /home/aghiti/lib/libdpuhw.so.2020.1.0 with rank path:string) You can now use it in all perf tools, such as: perf record -e probe_libdpuhw:log_rank_path_4 -aR sleep 1 Actually, I noted that this patch reverts a previous patch that stated that dwfl_module_addrsym could fail on shared libraries 664fee3dc379 ("perf probe: Do not use dwfl_module_addrsym if dwarf_diename finds symbol name"). Let me know if I can be of any help, Thanks, Alexandre Ghiti