Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3675830pxb; Sun, 7 Feb 2021 18:47:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtYnHE4AtDMZM1ZfRXsoQyGIv3zNrdyws6iVXyDmmoWwcTV8sGwkZj3tWCKtvtDmdkIuTM X-Received: by 2002:aa7:c9c9:: with SMTP id i9mr14869870edt.160.1612752473981; Sun, 07 Feb 2021 18:47:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612752473; cv=none; d=google.com; s=arc-20160816; b=iyTbDOGvTvIwKUIpL8Up5/z5oTQsFGXaOGpOtt+DW3KRL2ZwEic28LEK/HJO7z++fc htqFojXoXsnI9H4GMBUGEy3M9KpUTzZN5em49kjDKe8AbUArsRcueo3Ohih4hUGsi/AL z7I6DK8HmLM/GYkyvfAhXrLABKLMe3B0ZNH2iE0QrnLlNQVZnTk4TZ0z5j9YBIzHF/vt N1iWUTxV/yNqM1irUAASnNsphAwgFT4AQxrckE4ybXcTFoa9q8R2STw7xPNz+W0PE8qN FhXv0m4piSb5aqmgW9aZGVKmpUuxNgEXfHcxmu+NhkTEMJN9BEBiYM3yFZyHQRCDIZ5j IHHw== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=mtjqJol7vTXvy12x0z4hkAgj+mfxoJ3qfBWD1xOomkQ=; b=g6Yn+9IwRcz1Bt/zaaa5hKdcQGvPR0B/S+yNAZwZJjXTtI2ISF0oswfAcgQv88tcRf jZ+tMDxHrUO+7ZXyodqy4YdeYedY2hvsX6UzPqpkFFJ7vKp1APkJ/eXg2S9hM773eu10 S2D0vO+d1h77Vdp5IbMwTZb+DAx/TuFA0R8ZBRD1PL3RiT5U884r4BG3D9YD/0hF3tsF 7Ue8JIp8BsaGxYt4GQjbMMNJHg79KbMnWiSgwovzc2ZqoyHrAsGrRyxGAd7MpzDls17I ZpHXQxbkni2lWcanzQW7xOSu/vskPiV7lgPPxl2q8VPFUns5dt01Rw6e877r9l+1kqoV D3Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ThbthEM8; 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 i19si11018503edt.336.2021.02.07.18.47.27; Sun, 07 Feb 2021 18:47:53 -0800 (PST) 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=ThbthEM8; 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 S229590AbhBHCps (ORCPT + 99 others); Sun, 7 Feb 2021 21:45:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhBHCpr (ORCPT ); Sun, 7 Feb 2021 21:45:47 -0500 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1979AC06174A; Sun, 7 Feb 2021 18:45:07 -0800 (PST) Received: by mail-io1-xd32.google.com with SMTP id u20so13444184iot.9; Sun, 07 Feb 2021 18:45:07 -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=mtjqJol7vTXvy12x0z4hkAgj+mfxoJ3qfBWD1xOomkQ=; b=ThbthEM8x/MN0Ii2BGBE7KfrUhIQnLkQjy+HpJ0fAFDuiNjc0fF7PbR88eBhBuMQSP uzpYnvxDW8NJ+ZnCzSUR/TSvGCx1kT0M5Jg7ge90GANv31RFpfLQPUWfaXjP9kKcFj75 RxuGGmCBbV7sNe2JXF3Gzyzqiiv+6BXXGbMJoDKr7wHaVFVRQtPes1EBweHQe+OBoMUl 1Zk9FlgD5pOOx0R9YwsO4MD7Pt4QHm4j288loRcx79kBjfoSk75dzKrJ0wj3GdNIl9IS fxztWLSqM+6FcvcqAboJRkeGMexcUGEUtDiwG7H3LMwnss5p+pVCLCGLFA/38CThnrhX qHbQ== 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=mtjqJol7vTXvy12x0z4hkAgj+mfxoJ3qfBWD1xOomkQ=; b=fs906nqtV4VnWigzh6gwpodXGLhFmYB6CnKh2jrv2ADUw+RUa6NNwVG/FjhZW5fVlr 2z4WYEsDUhXHvjqsON/PBKW3ZGXqfv2p6l93b7Rz1uKSMi259zbytb/TG0m7E5Dl7Y9N 9t3YT8ieP+94s0KjxS04SCNmfeZsCkdY5OcTV1i1RVXzxoo/SNXwy+VGoHmH8CNJRWr/ TTQWOViFTohHUawgRGtwFd+7yQwpDZoxEqX9bSfUMMNsxd9+LnyCSsL1hSznks0IMTQN /GskTvrYxumKOMCExgzUBirtm9jqEZJROVw5SbmiY8kXhmGm9dK7yu5/tcxVEKo1qCXb 88Sw== X-Gm-Message-State: AOAM532qKvOJ3psgoLQFcLEFiEPImcbj5eolANC+rYbKl+qDnmQ3i36z 3xgsbDSzwjI3708r3Alkjs0vpmC56VvkQbBOu4s= X-Received: by 2002:a05:6602:150a:: with SMTP id g10mr13772834iow.75.1612752306223; Sun, 07 Feb 2021 18:45:06 -0800 (PST) MIME-Version: 1.0 References: <20210204220741.GA920417@kernel.org> In-Reply-To: <20210204220741.GA920417@kernel.org> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 8 Feb 2021 03:44:54 +0100 Message-ID: Subject: Re: ANNOUNCE: pahole v1.20 (gcc11 DWARF5's default, lots of ELF sections, BTF) To: Arnaldo Carvalho de Melo Cc: dwarves@vger.kernel.org, Linux Kernel Mailing List , bpf@vger.kernel.org, Jiri Olsa , Jan Engelhardt , Domenico Andreoli , Matthias Schwarzott , Andrii Nakryiko , Yonghong Song , Mark Wieelard , Paul Moore , Ondrej Mosnacek , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Tom Stellard Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 4, 2021 at 11:07 PM Arnaldo Carvalho de Melo wrote: > > Hi, > > The v1.20 release of pahole and its friends is out, mostly > addressing problems related to gcc 11 defaulting to DWARF5 for -g, > available at the usual places: > > Main git repo: > > git://git.kernel.org/pub/scm/devel/pahole/pahole.git > > Mirror git repo: > > https://github.com/acmel/dwarves.git > > tarball + gpg signature: > > https://fedorapeople.org/~acme/dwarves/dwarves-1.20.tar.xz > https://fedorapeople.org/~acme/dwarves/dwarves-1.20.tar.bz2 > https://fedorapeople.org/~acme/dwarves/dwarves-1.20.tar.sign > FYI: Debian now ships dwarves package version 1.20-1 in unstable. Just a small nit to this release and its tagging: You did: commit 0d415f68c468b77c5bf8e71965cd08c6efd25fc4 ("pahole: Prep 1.20") Is this new? The release before: commit dd15aa4b0a6421295cbb7c3913429142fef8abe0 ("dwarves: Prep v1.19") - Sedat - > Best Regards, > > - Arnaldo > > v1.20: > > BTF encoder: > > - Improve ELF error reporting using elf_errmsg(elf_errno()). > > - Improve objcopy error handling. > > - Fix handling of 'restrict' qualifier, that was being treated as a 'const'. > > - Support SHN_XINDEX in st_shndx symbol indexes, to handle ELF objects with > more than 65534 sections, for instance, which happens with kernels built > with 'KCFLAGS="-ffunction-sections -fdata-sections", Other cases may > include when using FG-ASLR, LTO. > > - Cope with functions without a name, as seen sometimes when building kernel > images with some versions of clang, when a SEGFAULT was taking place. > > - Fix BTF variable generation for kernel modules, not skipping variables at > offset zero. > > - Fix address size to match what is in the ELF file being processed, to fix using > a 64-bit pahole binary to generate BTF for a 32-bit vmlinux image. > > - Use kernel module ftrace addresses when finding which functions to encode, > which increases the number of functions encoded. > > libbpf: > > - Allow use of packaged version, for distros wanting to dynamically link with > the system's libbpf package instead of using the libbpf git submodule shipped > in pahole's source code. > > DWARF loader: > > - Support DW_AT_data_bit_offset > > This appeared in DWARF4 but is supported only in gcc's -gdwarf-5, > support it in a way that makes the output be the same for both cases. > > $ gcc -gdwarf-5 -c examples/dwarf5/bf.c > $ pahole bf.o > struct pea { > long int a:1; /* 0: 0 8 */ > long int b:1; /* 0: 1 8 */ > long int c:1; /* 0: 2 8 */ > > /* XXX 29 bits hole, try to pack */ > /* Bitfield combined with next fields */ > > int after_bitfield; /* 4 4 */ > > /* size: 8, cachelines: 1, members: 4 */ > /* sum members: 4 */ > /* sum bitfield members: 3 bits, bit holes: 1, sum bit holes: 29 bits */ > /* last cacheline: 8 bytes */ > }; > > - DW_FORM_implicit_const in attr_numeric() and attr_offset() > > - Support DW_TAG_GNU_call_site, its the standardized rename of the previously supported > DW_TAG_GNU_call_site. > > build: > > - Fix compilation on 32-bit architectures. > > Signed-off-by: Arnaldo Carvalho de Melo