Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4384701pxv; Mon, 5 Jul 2021 22:53:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwP9i6WOpOra6lJIPikemQi81Qj1GgIqOgIXYJalTpN9AnHspO12Bo+gH+eFMmMjsJ1zwie X-Received: by 2002:aa7:cd13:: with SMTP id b19mr20830763edw.45.1625550801082; Mon, 05 Jul 2021 22:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625550801; cv=none; d=google.com; s=arc-20160816; b=i+QN7mzTWIVofywaxEdA43/oioWmeKF4am1mOaDthGUlnm4+bJyCnXvbdrME0FMTCK dWk2WdQ9tPPLiThaIxoUIZnopdqRtTJp4P5xP/dXmSRvgigP4VIHN0ZlAkk/dtH3wXGe DbtQZF+kzFMJXY27HoGlncrQF2EDblvWIYr0TYfPt7hcEWV9NDAQk2dJ8r7LIfrJhcaT Y2yazptbeFeJn07avS5cp8eX3IWG2mRE6VrHBZesdB9J6LZ8bJXO8SeHMVvKnhkWBXgJ 9DPDuzGIJZSQsmIIZK43gl0h1KcYJKrJLrNRlAwlL58jOvy52TLKLfcp9LH0choJppMU lH+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=dy53NCSto0BXW5qn3jqi73FlrRrdQTdmr8jsDjiJajE=; b=gmGNADd1WVuKyp1qqF3PrmlU7eWxuCbzxU8kQgaGlLJvRLtXOET9XPdxiCovGHNZaR 1HGZ1y2Jk7xfB19CPmFU7G9rlqkR2fFVYvdnLJJWLue3RfA16glqpHtadx8RLDQQSPPh yB1hkNLsHgLxEYj2Bzr9tgcHYufgj0uIxKoo+YhxF+uwpieF+s1+qMAILXbhaFwqzG5n NM59y0BlD9Sk8zxcR/mnN9+tChqG3Xmp1yB0klIj8hbYQEh52UzOnSC1/+OyvdOs7/Sa fQtP4P0jvH7GffzNEvIAUAH6Bt2vVnWCh9HvPEJO3XYTxIQ1R8c8+fsaTDf3WwLgTbTP 8gBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NloMr11/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si12834647edx.349.2021.07.05.22.52.56; Mon, 05 Jul 2021 22:53:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="NloMr11/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230081AbhGFFyc (ORCPT + 99 others); Tue, 6 Jul 2021 01:54:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:46120 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbhGFFyb (ORCPT ); Tue, 6 Jul 2021 01:54:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5199E613D1; Tue, 6 Jul 2021 05:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625550713; bh=kQBDeqlMwObvMp1z1vQobCZU96+C9HkHnrkJ4+98krI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=NloMr11/8Yug7Objch3jeHZ+/XtB/s2GnywZvjCpw3vcRlXCVJ2OLsW9PqBqtDHsI 6mgCgS+kVJ4mZFRip8dVcRMJx5DfZ6PburDfN1kO5xZmuo1B3xDrBlI3sZ3E3pJHzu wOhEB74e8VQU7jqi8kZQX5UH+eA2SjiPZR+0pMhYxVPS7LimqylAFBXI4pynhFc2PD 3KVI5Y7NeA7dLf2845hWj6HGUyN9OSppIGPrt7SSAiHOvUwSGQEroJlbZy+G1EVZR0 ygsRtYgMKncTCLwWlWsMYmcKqLcxMJpcprgKeAOO7ZCTzNtKOUh1EpZhABlyLRA3y7 7BHNleg4c2/Fg== Date: Tue, 6 Jul 2021 14:51:50 +0900 From: Masami Hiramatsu To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , linux-perf-users , Sven Schnelle , Heiko Carstens , Stefan Liebler , Thomas Richter , linux-kernel Subject: Re: [PATCH 0/3] perf: Fix perf probe for Fedora34 glibc update Message-Id: <20210706145150.44130059496442b735962ab2@kernel.org> In-Reply-To: References: <162532651032.393143.4602033845482295575.stgit@devnote2> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 5 Jul 2021 13:48:04 -0700 Namhyung Kim wrote: > On Sat, Jul 3, 2021 at 8:36 AM Masami Hiramatsu wrote: > > > > Hi Arnaldo, > > > > Here is a series of patches to fix the perf-probe error against the > > Fedora34 glibc update, which moves most of symbols from .symtab to > > .dynsym. The key is that the "most of" symbols moved, but it still > > have some PLT symbols in .symtab. Thus the perf symbol-elf failes to > > decode symbols. > > Do you know what's the rationale of the move? > Is it a change from glibc or Fedora? I don't know, but it seems that this happens when updating glibc package, the version is same but revision is different. Also, in the Ubuntu, I saw all symbols has been moved to .dynsym in older glibc. Thus I guess that this depends on the build option or configuration. Might Fedora change the packaging script? Thank you, > > Thanks, > Namhyung > > > > > > Here is the original report from Thomas about this issue. > > > > https://lore.kernel.org/linux-perf-users/f6752514-eaf9-371e-f81b-0d9e41ebae0c@linux.ibm.com/ > > > > Thank you, > > > > --- > > > > Masami Hiramatsu (3): > > perf-probe: Fix debuginfo__new() to enable build-id based debuginfo > > perf symbol-elf: Decode dynsym even if symtab exists > > perf probe: Do not show @plt function by default > > > > > > tools/perf/builtin-probe.c | 2 - > > tools/perf/util/probe-finder.c | 5 ++ > > tools/perf/util/symbol-elf.c | 82 ++++++++++++++++++++++++++-------------- > > 3 files changed, 60 insertions(+), 29 deletions(-) > > > > -- > > Masami Hiramatsu (Linaro) -- Masami Hiramatsu