Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DA420C636CD for ; Thu, 2 Feb 2023 02:55:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbjBBCzo (ORCPT ); Wed, 1 Feb 2023 21:55:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbjBBCzm (ORCPT ); Wed, 1 Feb 2023 21:55:42 -0500 Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7346A728CA; Wed, 1 Feb 2023 18:55:41 -0800 (PST) Received: by mail-wr1-f44.google.com with SMTP id t18so512126wro.1; Wed, 01 Feb 2023 18:55:41 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=W9EyjIfbgptUK2LF3a5kUjyxnjAVq3qXJFHfKvB2EjI=; b=osETY1mJFb80FK1f4Ue19oEOS/pVKRrsMk+Hq+DCKJOUSFvrcML4lVkTd7RbguoPzb GtgNfs9PIWpNyONn4TYsQievYkSABB2bX8zsAZ1mgiHbUAQfNPQSWe6MnZCzE3cq+TwD s8ykX5wRUatxNw3sjXyUhY/HAQ6EWY5mTAwseUl+QL9nYYXtwQQ3HYaUlkJBdcE75uPv YtZDWOdP1NO+63AlNXhvyP2qS5jQzfiSoyrnqhW81gBnVtILhsH2Bmrz2L0dD9/fpoP/ Pr8w/sW4wB1E78kXyT5TQGw/enQP7PIAOhfqLIffyzgfaqNetx+33+sid7Wm3e80lQlc RxrA== X-Gm-Message-State: AO0yUKW/jYFcPIVdyftCb5GCYcZo2x4uCP7y+/czdN+cb6nvpsNhZcJt c+UP+dw4H1qqVkPeupoFIXudMdUzh2Yh/NtnxblGwSjp X-Google-Smtp-Source: AK7set9pN1Xwh2+NZpOZEphmJ3EBcZWVA9ozm4WKeqHyI35rya+xVuCT51sRxFmOVcgWgFLGGEp9jIGBPWoXvxP6fgo= X-Received: by 2002:a5d:6605:0:b0:2bf:c1b3:e015 with SMTP id n5-20020a5d6605000000b002bfc1b3e015mr223798wru.220.1675306539694; Wed, 01 Feb 2023 18:55:39 -0800 (PST) MIME-Version: 1.0 References: <20230129232145.31307-1-hcvcastro@gmail.com> In-Reply-To: From: Namhyung Kim Date: Wed, 1 Feb 2023 18:55:27 -0800 Message-ID: Subject: Re: [PATCH v3] perf: fix the probe finder location (.dwo files) To: Arnaldo Carvalho de Melo Cc: Henry Castro , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , "Masami Hiramatsu (Google)" , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Wed, Feb 1, 2023 at 5:22 PM Arnaldo Carvalho de Melo wrote: > > Em Sun, Jan 29, 2023 at 07:21:28PM -0400, Henry Castro escreveu: > > If the file object is compiled using -gsplit-dwarf, > > the probe finder location will fail. > > > > Signed-off-by: Henry Castro > > --- > > > > Hi, > > > > Polite ping? Any feedback? > > Namhyung, are you ok now? Masami, can you please take a look and provide > an Acked-by or Reviewed-by? Sorry about that. I completely missed this.. Now it looks ok, but it'd be nice if Masami could review this. Acked-by: Namhyung Kim Thanks, Namhyung > > tools/perf/util/probe-finder.c | 14 ++++++++++++++ > > 1 file changed, 14 insertions(+) > > > > diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c > > index 50d861a80f57..5f6781e712db 100644 > > --- a/tools/perf/util/probe-finder.c > > +++ b/tools/perf/util/probe-finder.c > > @@ -1200,6 +1200,20 @@ static int debuginfo__find_probe_location(struct debuginfo *dbg, > > continue; > > } > > > > +#if _ELFUTILS_PREREQ(0, 171) > > + { > > + uint8_t unit_type; > > + Dwarf_Die cudie, subdie; > > + > > + /* Check separate debug information file. */ > > + if (dwarf_cu_info(pf->cu_die.cu, NULL, > > + &unit_type, &cudie, > > + &subdie, NULL, > > + NULL, NULL) == 0 > > + && unit_type == DW_UT_skeleton) > > + pf->cu_die = subdie; > > + } > > +#endif > > /* Check if target file is included. */ > > if (pp->file) > > pf->fname = cu_find_realpath(&pf->cu_die, pp->file); > > -- > > 2.20.1 > > > > -- > > - Arnaldo