From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21F80C433DB for ; Thu, 14 Jan 2021 20:13:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ED3D523117 for ; Thu, 14 Jan 2021 20:13:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726602AbhANUNo (ORCPT ); Thu, 14 Jan 2021 15:13:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726374AbhANUNo (ORCPT ); Thu, 14 Jan 2021 15:13:44 -0500 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2620C061575 for ; Thu, 14 Jan 2021 12:13:03 -0800 (PST) Received: by mail-io1-xd2a.google.com with SMTP id u17so13825689iow.1 for ; Thu, 14 Jan 2021 12:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=erIA/lSh4mbluHxm/ANIO8rRbgUM63xnChvxcoG6rx0=; b=X208WmP2OYiY/uZRl2VbmbBaGJolET1+r7frr8XJmHOEPfAYBFSEYHH9YHakyXZZ0H Vpvb/m+CZTio+qLE2luJ55e2mXuRCcQGcFNJPHS++5H41LeWKXp0WEeQdUipF7PVo6k7 YGurqkot9wVEQzp0Jp5Wugpm6ZNdPMv+hNKsllnV8H6ByySjeSKfAX6Dk56e/U1vCGbu C+Y8NS9QzaPnqvEghgl5gUu/iBt6zXjryCu2GQ4JD6NZvUrFZeYzxzSwy1CA/49ID/PX 3VYSKxZrqUj2Yo1QYn7Oe0TmSF+eksbW6xqQ5NlcWuIOToePh1VpzlcjnxvTOWumGUtq Zkcw== 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:reply-to :from:date:message-id:subject:to:cc; bh=erIA/lSh4mbluHxm/ANIO8rRbgUM63xnChvxcoG6rx0=; b=ajA6NL7IfqrFbhg3A7HdswYEIxu41UbHHj+Y+eE1AVjDc5695/7B3ArsrOXIPMBSRx ihxxQp9oCnl/eiAbgP79iOcWMhYuTSsSbdWnefG9E08H1vfTTjApDa/rwAUdVjjzg8F6 Mx7lHGY+ahygG+HAwwPYkN7/MIc1/F+mQRCDepWYA6v024Y71pclh9muwE447Y7Hh+bt /FeBMCUGgIe4FvC107yelsBR0DrHR+8lEynwK+sRivKMx9cxKhS8vh1fqlbIC3RCIAfL 5Zt7SBNffZO3aJmkb8rHHxCFEB3G4y+5Uk1u3ZkjE13HlCoguCQZea2mCJuxl3SUUyGz RJyQ== X-Gm-Message-State: AOAM533WMdCwtSuVDtxAsL259jlr9YobiB1rOlQaaJUtgggbDkMHtczb Ubq+O9GEikEvoB8P150XkpdqtHQZGI2RrpnwZtI= X-Google-Smtp-Source: ABdhPJxcpqhBvUCALwcsXnMrd54uB8EaZQpVnCNFIuOAZoyN2C+4sWaln/u+h2IPuzRaFUI89pCrs0+LoCob5+bbAGY= X-Received: by 2002:a92:c692:: with SMTP id o18mr8296573ilg.215.1610655182714; Thu, 14 Jan 2021 12:13:02 -0800 (PST) MIME-Version: 1.0 References: <20201204011129.2493105-1-ndesaulniers@google.com> <20201204011129.2493105-3-ndesaulniers@google.com> <5707cd3c-03f2-a806-c087-075d4f207bee@fb.com> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Thu, 14 Jan 2021 21:12:51 +0100 Message-ID: Subject: Re: [PATCH v3 0/2] Kbuild: DWARF v5 support To: Nick Desaulniers Cc: Yonghong Song , Jiri Olsa , Andrii Nakryiko , Arnaldo Carvalho de Melo , Caroline Tice , Arvind Sankar , Jakub Jelinek , Fangrui Song , Clang-Built-Linux ML , Nick Clifton , bpf , Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org On Thu, Jan 14, 2021 at 8:20 PM Nick Desaulniers wrote: > > On Thu, Jan 14, 2021 at 11:13 AM Yonghong Song wrote: > > > > > > > > On 1/14/21 11:01 AM, Nick Desaulniers wrote: > > > On Thu, Jan 14, 2021 at 10:53 AM Nick Desaulniers > > > wrote: > > >> > > >> On Wed, Jan 13, 2021 at 10:18 PM Sedat Dilek wrote: > > >>> > > >>> On Wed, Jan 13, 2021 at 11:25 PM Caroline Tice wrote: > > >>>> > > >>>> On Tue, Jan 12, 2021 at 3:17 PM Sedat Dilek wrote: > > >>>>> > > >>>>> Unfortunately, I see with CONFIG_DEBUG_INFO_DWARF5=y and > > >>>>> CONFIG_DEBUG_INFO_BTF=y: > > >>>>> > > >>>>> die__process_inline_expansion: DW_TAG_INVALID (0x48) @ <0x3f0dd5a> not handled! > > >>>>> die__process_function: DW_TAG_INVALID (0x48) @ <0x3f0dd69> not handled! > > >> > > >> I can confirm that I see a stream of these warnings when building with > > >> this patch series applied, and those two configs enabled. > > >> > > >> rebuilding with `make ... V=1`, it looks like the call to: > > >> > > >> + pahole -J .tmp_vmlinux.btf > > >> > > >> is triggering these. > > >> > > >> Shall I send a v4 that adds a Kconfig dependency on !DEBUG_INFO_BTF? > > >> Does pahole have a bug tracker? > > > > pahole could have issues for dwarf5 since as far as I know, people just > > use dwarf2/dwarf4 with config functions in the kernel. > > > > Where is the link of the patch to add CONFIG_DEBUG_INFO_DWARF5 to linux? > > Latest is v4: https://lore.kernel.org/lkml/20210113003235.716547-1-ndesaulniers@google.com/ > > > I think you can add CONFIG_DEBUG_INFO_DWARF5 to kernel with dependency > > of !CONFIG_DEBUG_INFO_BTF. At the same time, people can debug pahole > > issues. Once it is resolved, !CONFIG_DEBUG_INFO_BTF dependency can be > > removed with proper pahole version change in kernel. > > SGTM, will send a v5 tomorrow in case there's more feedback. > Please CC me on v5. Feel free to add my Reported-by. - Sedat - > > > > > > > > FWIW, my distro packages pahole v1.17; rebuilt with ToT v1.19 from > > > source and also observe the issue. > > > > -- > Thanks, > ~Nick Desaulniers