Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp87407pxu; Tue, 5 Jan 2021 06:00:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxIufFcFao2z1YtoZvzLO4VafeoaHCeUbIrWOQL2hW/ov2tLytK33vSQ98zPrdohsgYqVqZ X-Received: by 2002:a17:906:d81:: with SMTP id m1mr70668949eji.550.1609855235084; Tue, 05 Jan 2021 06:00:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609855235; cv=none; d=google.com; s=arc-20160816; b=WmY6si88lb5gA5Y7X9TIAVyC0AZay0JXqNJ0Boe2QNEkc+m9/Ef0XCOuf+R8qcDZwh UHW7MUG6EN+f+vq0kMq5a0bD/jACgKV1KElBdzN7maCoyWWXTTBvEq/8dMEiVd1FHxEh re2ORFXrsKwCxIvkan3NpQRUsyjRs8G2Yrxc8NF5Mt8efRKcgOe7DsfwnNwkRAQ0GcB0 xAs1qszIUz80GKj2akz9o8T1Htoi1HetQXrFJ3K7EY2AYQ44ai7WD2k7qkWQ2eqfxd4K JmSmCwVYS5oAZ49gg/rWnkw2m5tTHlG9tTAqlPxw6WJdOnPjR+viLgrY/IHkanhI/L3d Qd0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gJTK/1pMo6A+qaLw01gzTFXJRugznQUayRvN5SaM+RA=; b=wmPr2Hx0KvR/Ghy0zSAQScXt+C6YAxgLFhYhQNHfP7fdNweFW6IFhfKh0J0+4qdrTL qH/Qa7FcBZsJPdXv0+0GMosuQvg9lXcX8q9bPueK56v8ggmO+q13VKbclvYYieJvqDSD 2D4MpnUiwCU9V3Rbr9qBNTQ7Bol2ZbFDCLgsgRwc8aLW/Z/P2TqKEYwPg7VVdADlFYdq lBZ1ip3kTundVAh5RgxaR/Et2eSAEEAfp3KSvxcROs4tAb/LtFxVoe6/A9igkbk0weeS hx6rEDYs+Omlh70IK23Q/OPpCtf5gHVJogQKERIsTsezaQjidQlZrSmDVF7sd+9G/G8E FwfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mess.org header.s=2020 header.b=Gv6wjYb3; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z27si34712546edl.135.2021.01.05.06.00.11; Tue, 05 Jan 2021 06:00:35 -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=fail header.i=@mess.org header.s=2020 header.b=Gv6wjYb3; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729536AbhAEN6w (ORCPT + 99 others); Tue, 5 Jan 2021 08:58:52 -0500 Received: from gofer.mess.org ([88.97.38.141]:45217 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbhAEN6v (ORCPT ); Tue, 5 Jan 2021 08:58:51 -0500 Received: by gofer.mess.org (Postfix, from userid 1000) id F2539C637E; Tue, 5 Jan 2021 13:58:08 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1609855089; bh=gH+Lz6nVQLvOPcvGmGMj2CJj4YjwnBzm+oF+wUpTKBo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gv6wjYb3gwZkeT1yOF/i+WCz0iHlLUILW8Lj+yeF6Pk7W3PCwposSzOrlgyfnt4CG E6i7P7zI+sYpI6D8z1mvlxt04wejgD+qSO6ypv5yY83LUZyNyOJAL9ubzjjpCmjiUb +UXOfU64U4P1e1bAw1/IA+BkBtKHYbjq0av9vodOXCc4QT1OGiu4nDsLGDlQ4jiSK3 FQPbpE9SaHQe5NuL+/WFUTGfsyxgj+1sSj9YM7a1RYmoChlTITvkmnfdDoB6QV3PoO LVttg9P6ny4co6Peh016HnKUhyZnKDeHqfq+xnVxpyDMF79UOfsSvp1YsjBQxzpSYZ /7ut9Xx1dJQKg== Date: Tue, 5 Jan 2021 13:58:08 +0000 From: Sean Young To: Yonghong Song Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , Nathan Chancellor , Nick Desaulniers , Quentin Monnet , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , linux-doc@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v2] btf: support ints larger than 128 bits Message-ID: <20210105135808.GA13438@gofer.mess.org> References: <20201219163652.GA22049@gofer.mess.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 10:21:09AM -0800, Yonghong Song wrote: > On 12/19/20 8:36 AM, Sean Young wrote: > > clang supports arbitrary length ints using the _ExtInt extension. This > > can be useful to hold very large values, e.g. 256 bit or 512 bit types. > > > > Larger types (e.g. 1024 bits) are possible but I am unaware of a use > > case for these. > > > > This requires the _ExtInt extension enabled in clang, which is under > > review. > > > > Link: https://clang.llvm.org/docs/LanguageExtensions.html#extended-integer-types > > Link: https://reviews.llvm.org/D93103 > > > > Signed-off-by: Sean Young > > --- > > changes since v2: > > - added tests as suggested by Yonghong Song > > - added kernel pretty-printer > > > > Documentation/bpf/btf.rst | 4 +- > > include/uapi/linux/btf.h | 2 +- > > kernel/bpf/btf.c | 54 +- > > tools/bpf/bpftool/btf_dumper.c | 40 ++ > > tools/include/uapi/linux/btf.h | 2 +- > > tools/lib/bpf/btf.c | 2 +- > > tools/testing/selftests/bpf/Makefile | 3 +- > > tools/testing/selftests/bpf/prog_tests/btf.c | 3 +- > > .../selftests/bpf/progs/test_btf_extint.c | 50 ++ > > tools/testing/selftests/bpf/test_extint.py | 535 ++++++++++++++++++ > > For easier review, maybe you can break this patch into a patch series like > below? > patch 1 (kernel related changes and doc) > kernel/bpf/btf.c, include/uapi/linux/btf.h, > tools/include/uapi/linux/btf.h > Documentation/bpf/btf.rst > patch 2 (libbpf support) > tools/lib/bpf/btf.c > patch 3 (bpftool support) > tools/bpf/bpftool/btf_dumper.c > patch 4 (testing) > rest files That makes sense, I'll send out v3 shortly. Thanks, Sean