Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp4098902pxv; Mon, 5 Jul 2021 13:51:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuCWqXaSTri3C/im9kYoSFkVpcJi9wCITBSRp1zIuHgYkPb8N4/B9zzZuqaQEfLRKMeiyj X-Received: by 2002:a17:906:8584:: with SMTP id v4mr14759785ejx.301.1625518267248; Mon, 05 Jul 2021 13:51:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625518267; cv=none; d=google.com; s=arc-20160816; b=daDX3UlpFG5IXuesHErZP8G1dnKUI2aFQWfSQySmmUv5Q0hVp3+gWuWuLRwftR4hAu xgjPr9my+5mbkVI9HJomJ7/5NcVQ7G5LDoFaPzMTDkTIJyqAInU1gxQrVDicBbLJjBYZ 5WA6BHxM/bTgUTEQ8Z62swcAKJhbcodqizNs50a2bqIGHQsnYzV2fkAExmTUMZLiW4hD hf/0xXpyD//31QM5MlCi5MPn2BVQ44U7CbNy62/Y9rYa1rN6docBk2dsFJ8uKASLH1+r Rr0VZ0yuiM6QDXtOWwg1QngTTzCyV5bVUf7tqVHhTuF7T6Mjb7pzUHP+oON3+6/i/1as Yhtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JSiA5dyVn8zv0+eT4D7tVl3QtiwSLMc/3FaTxgI9gME=; b=QzPl7ITl/TKjeuoFJQMxLWS77iVuV+gKrPDAmDd22Pzx7uovj7UE2i5V/HuSJDbaDV I/M8/TrEOfwoRWBRt2ij7Gnz2EqiSIKFdCfojDkPogoiqbNSf9QSCEEGCDwI8z81ju34 YlfpPvtL/Mnug604bDcXfRL7Vxp2W7bkPW2W1VDJZCxOTuWAsBD8M9zQ4DSo4dEo9DxP cjlY7k7wB8Na1bum68LXYSH2za4UEifLomxMEI5nlkRMxaxQfNPmv0qBWmfv9DeGVpVl V5Aux2zmj3Pyo8BTKpaL1Plb8Jfpc2pw0SpOf1N9FBoEcT4ZpevoW6wYKxk99qehCqNF DATg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="DK/4yX9k"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u19si151708eds.343.2021.07.05.13.50.44; Mon, 05 Jul 2021 13:51:07 -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=@gmail.com header.s=20161025 header.b="DK/4yX9k"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbhGEUu4 (ORCPT + 99 others); Mon, 5 Jul 2021 16:50:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhGEUu4 (ORCPT ); Mon, 5 Jul 2021 16:50:56 -0400 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD931C061574; Mon, 5 Jul 2021 13:48:17 -0700 (PDT) Received: by mail-lj1-x22c.google.com with SMTP id u25so26117268ljj.11; Mon, 05 Jul 2021 13:48:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JSiA5dyVn8zv0+eT4D7tVl3QtiwSLMc/3FaTxgI9gME=; b=DK/4yX9kQqxPbVsJUNFEpx/Ad+HeaOjR9kQOdcGoxCP9UqNcruq1+KnMa8xY+VqKov txOweGEupbFn8lqniF6EqC01CGAAPLvlNN7lXn4aeok/lQNQtC//rsZ71SFwwJng6tMo WyD+qXCbEau9wMbtZV1l7YM4HorQeRci65zwYlNv0Yh+dFY/BkvJf3UTWu1XM+L2KV3i xq0/MVLsUMz8atiG78qWEU7mFGRVN3pyUC1U+hJyg27Bi1dqP1qQdtIq761wpILFc5+u QqDiTFZ8NTyFDnMCM45Ems+WPz2JwitIxYQO2+9a7kfd7h2sZhCod+RIHb6x5EMFdR4p eLQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JSiA5dyVn8zv0+eT4D7tVl3QtiwSLMc/3FaTxgI9gME=; b=tGoERNkgCTFIzOxC+rJs1edd64ugL1vMTQ4uSF8ztOMLaoScfZBVs5wIhB/ZdN091N eKFTmsYOQ8wBqUqGMSFT7LsXhCJzL3vAahlYwiA6WgXAnadxAcelZ3eelRasqVb6Fh3g HI7yzKtKFclxyd10yd1Atkja/EMJl8lE+FqU13O6ny++3aWm/QqQiNhBKwqnH13H3qan Ly2QIcBuCLw3T0dlv4yuIGzy3m0OQ+eibOpRVlEAtqtx470GIFKatOwR4p6qg6a1bGIC KA4/ApZQjOf6OpJcq9oPCJf3A+WSVcIieZWeixFjH6tuGjbJoen6kixnigIZZEH+L49i agsA== X-Gm-Message-State: AOAM530pie3wGy4sbhh9m6W4c1rQijM+8IjM1MMzEYWQpM6XKPkmuss+ s9L4B02tccmOJSzlRdjwhY5uw4L6TMZSk8s9OMUWKrHf X-Received: by 2002:a2e:8e6d:: with SMTP id t13mr12241177ljk.26.1625518096113; Mon, 05 Jul 2021 13:48:16 -0700 (PDT) MIME-Version: 1.0 References: <162532651032.393143.4602033845482295575.stgit@devnote2> In-Reply-To: <162532651032.393143.4602033845482295575.stgit@devnote2> From: Namhyung Kim Date: Mon, 5 Jul 2021 13:48:04 -0700 Message-ID: Subject: Re: [PATCH 0/3] perf: Fix perf probe for Fedora34 glibc update To: Masami Hiramatsu Cc: Arnaldo Carvalho de Melo , linux-perf-users , Sven Schnelle , Heiko Carstens , Stefan Liebler , Thomas Richter , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? 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)