From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AD0DB34028F for ; Fri, 3 Apr 2026 21:08:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775250522; cv=none; b=l0FB4rcYy8EDaessLKnPCFVWfcbKjVBRgnF/FrlJ2oOeO54+s3cJc7fVR6QbcyExjPMZvtf1Y83qcBs9YXpVHT+EoWrkpMuh7Bj7z0Wbz5qDmQN8DtBPMUhdhIZihVZKdXd8lsGDaJMul3mJM2J4DRtMbkiQSOoHBhbGJMnz/Ak= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775250522; c=relaxed/simple; bh=sjrOcmBeonQeUKhF+7FaAXLL1ZCqKwAzenU3FPeT9aQ=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XDpcMKPyRNsSL9/Ofcvcwm6n0NW8VpyV7s0x82ARNJ16NyEEBWxTuBvqBVA7MirVpABvN26bBZAOuxry7N6ltKOvxzrhGW/MUJ1CNHWjjt3co4DfmHsP9QgofFKQvKmm4trsihonKyBK7V2n4ol4vYtpdAFQ4ApKtCQZsd2LaQc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NWAKprnX; arc=none smtp.client-ip=209.85.128.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NWAKprnX" Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-48558d6ef83so22638905e9.3 for ; Fri, 03 Apr 2026 14:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775250519; x=1775855319; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=rtz6zW8ohpnkRnnbqIqGqsqLu4coVv09fBIfiINDmEw=; b=NWAKprnXpeCbjmSke3StP87/3Jhk7PmdeZDTtAYiCRUddM0yZd3Y9Z+YMiADweIgPC dkmsg3csqg4mXabTpzqWt/aDpV6A7vQRnaNeSx5uLOOW3rSwgG5cmIYhcsj2wP9t0For yPwu/sOFjHze7VWqsNg7l+C596kBM/ZlHdQ8R7eqwVw21fkzjdy2kSRI8PkiUrxiDvDs /37dor3A+yH733mgx/vbXqQMJCr9lijNABaSb07HQ17hZpZ+UwsRL45js7I8rdA6RIWv G673ewd3ugMI4UvWJPvW5LkhsUVJLXgdeZNG2U9vRDlo8PEapIuJsTHLFSGrVB757OFu Ej4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775250519; x=1775855319; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rtz6zW8ohpnkRnnbqIqGqsqLu4coVv09fBIfiINDmEw=; b=qDoeSv9T8LDaqJV+WuPi3r59ZDX0yvmENEs/AB70qlIf2/cSruTTe7dRrS67QYSnIt Xz0KEXg+Q0aHlKCH78mJrgV1RgtH9JQM2hM8++IrOzn0BLKI2JwUhqOYLMsjqyozDnpD GihUcw4j9qwCfhjrvVdCZLZD/i0TYn2MRrU+0OvRDnABBuvFMcRqSQUCKpy9pw4/QDTD Hi5ukydPplUiZWJL0VfTab19hwsPACsConAEwsFW1pTVD63lDkifbI+ju4d2FeuQJclr 0npCZfP1gGgzIxZn4OeM3e0sDhQ5Zq0+QgDUxCkBPsBfQWxEv8o7sATjV0ZwuS3bv7zD 02Sw== X-Forwarded-Encrypted: i=1; AJvYcCXjAilhV4/V1yCinkxZPSkkHibXCFovMDYtzG+YlorcfG/13I7FGBPvmYz7ybTXC0xOHpNnbldi@vger.kernel.org X-Gm-Message-State: AOJu0YzpiIKmco3nO7iQnT7FfFydXB0Z/pxbHSCaAa3HU1m8pgqeze2Q zaquD7m1NSvmMRmZ7AntZBP1IBsZcrfGMYARJnsX4Uy/j2MhHgblrVZd X-Gm-Gg: ATEYQzwIr/pKx9f0CQt23eL87t1VFPKLfgCMQPymMc3pEbEY6o9BUrnv63Fatf3guZl lqrQknwn0+DfDu+EKmxo3/lWmFlZNq44kdARBO8WEHeykOo0nDCRDeX7JTWDE1+/BzFrhos78WC VoVH1JtWynUlIDTwVAcLSQWakaMew31GeshhKm64QUxkUF0LFFCz3+5Z6v83t6LTAdVkQ4GlBRp NiAwTU6M4pfFuWfaDAE6upemrKxvbTQtomyxDMrrOLCJjCwDgd2fhlggwWcg3Hb2IgAmC+hf7Tz jwL0JQM0ftscgfXxr0Gbn9tq/KeQIZEmImYntlSaZK8c1EXXHrhBoRZB3F5uFqSK9e+CSlGAGsQ gVKUxx6YT0vg9CceOodV9xpNKTCmTkrFRATxSnoV4dCt2ZS/RO1Ay0QNRGNWnXu5z9HCKMuLmyN VtUZM6mr5Y9IGBlYhRt27Pnu33wwpsqHU3elRAk55iUEXin360kpngmxg= X-Received: by 2002:a05:600c:5292:b0:486:fbd1:9dc0 with SMTP id 5b1f17b1804b1-488997a51b2mr71073585e9.22.1775250518655; Fri, 03 Apr 2026 14:08:38 -0700 (PDT) Received: from krava (ip-94-113-247-31.net.vodafone.cz. [94.113.247.31]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e2a720dsm18895321f8f.4.2026.04.03.14.08.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2026 14:08:38 -0700 (PDT) From: Jiri Olsa X-Google-Original-From: Jiri Olsa Date: Fri, 3 Apr 2026 23:08:35 +0200 To: Alan Maguire Cc: andrii@kernel.org, ast@kernel.org, daniel@iogearbox.net, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, qmo@kernel.org, ihor.solodrai@linux.dev, mykyta.yatsenko5@gmail.com, dwarves@vger.kernel.org, bpf@vger.kernel.org Subject: Re: [PATCH v3 dwarves 0/2] pahole: add BTF layout encoding feature Message-ID: References: <20260226085240.1908874-1-alan.maguire@oracle.com> Precedence: bulk X-Mailing-List: dwarves@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260226085240.1908874-1-alan.maguire@oracle.com> On Thu, Feb 26, 2026 at 08:52:38AM +0000, Alan Maguire wrote: > A soon-to-arrive v9 series will add support to add BTF layout > information to BTF; this describes the BTF kinds known about at > time of encoding in order to support parsing even in cases where > the kinds are not known to the parser; the layout relates a > BTF kind to the amount of space it consumes via an optional single > element following the BTF type or a set of vlen-specified objects. > > This series implements the support for the BTF "layout" feature > but does not require the libbpf changes to support it; the feature > test uses a weak declaration of btf__new_empty_opts() to handle the > unsupported case. > > To test pahole with this feature, the following approach can be used; > > 1. Specify -DLIBBPF_EMBEDDED=OFF option to cmake > 2. Install latest libbpf with associated patch series with layout support > > Alternatively with embedded libbpf the changes can be applied to > the embedded libbpf in lib/bpf/src. > > Changes since v2 [1]: > > - Resynced, renamed kind_layout -> layout > - Avoid encoding layout info in split BTF since it is a waste of space > > Changes since v1 [2]: > > - Resynced with latest pahole > > [1] https://lore.kernel.org/dwarves/20251210202752.813919-1-alan.maguire@oracle.com/ > [2] https://lore.kernel.org/dwarves/20250528095349.788793-1-alan.maguire@oracle.com/ > > Alan Maguire (2): > pahole: Add "layout" BTF encoding feature > man-pages: describe layout BTF feature lgtm Acked-by: Jiri Olsa jirka > > btf_encoder.c | 21 ++++++++++++++++++++- > dwarves.h | 4 ++++ > man-pages/pahole.1 | 2 ++ > pahole.c | 6 ++++++ > 4 files changed, 32 insertions(+), 1 deletion(-) > > -- > 2.39.3 >