Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp579543pxu; Tue, 5 Jan 2021 21:15:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHGVPxOPkch5Gh0+d5QQPXs8U0mw6yxEpx6rdxEp+hS8U0cTj62k4P8uufljK3wZbNO+j9 X-Received: by 2002:a05:6402:95c:: with SMTP id h28mr2795492edz.26.1609910115364; Tue, 05 Jan 2021 21:15:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609910115; cv=none; d=google.com; s=arc-20160816; b=xqQ7sDcq9FP/0AkfoZM7Z6CUm2nYf1ehutN9HAKutAMiywI7DcYFSwM0STqUw+1KKE hw2Zxt4FywCe8lScgCrFYhX0kzNW8bKO321HwYVWE9iKuuxjaqKxWEZ+JAJT4z8WyHFe k9xoknLoaKLzir0nUygBKOFknllLeHeD/iyyExZ2R2fYLcVOCW9Htc6ibR2FWmOqfVzM zKJB+bu6DJAkhBMKiuyU84CSPgKgV9aXK98U5fhIkMO7omD1VywJiQb9n/iPkhjsSyxF YO4CG78VM7GvdYYjqdKnaKmoxtUDsoEGZb5KH0KIxyBoDudIpjkUDsFAA4LafToN8D/7 SEtg== 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:in-reply-to :references:mime-version:dkim-signature; bh=JQUlyOnlBcqYVUIlvxW8hwy4E/pavn1J3HXdQXV8Lvk=; b=cgorCTGSvEyWCLzDC7lek5GvEFMM1UL8SBjOXAbQMiA/b+ApkA6ZKLxlWrCphwSWyZ ByVj5l8Wv3vYm1eyZeeI8FZMvFRz/x4qwoGsE0/6/Ot23lVf9co1mDnmxFjoSQodTfYa F+OqkccxFVGjjUnwHSuc0JwJdhY7EVh2weKXl4R3uvMZ/70i0N5q8wZjBwFAsSsrzvwn JfdEy+0JDKhKwRlwYodl6sm60TbLrhSa/2/cdMWLeV5Yv0yn1ZzctiBEwf8wpfITE7Kg 8MZvxSJg/t1YL6/4cnXxNJSM6JG+sdiKNJ701MiVXRqj1a/hZIiIRpY7CDEVlg4NrR+T dc9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kbCCrZh5; 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 i22si517805ejh.128.2021.01.05.21.14.51; Tue, 05 Jan 2021 21:15:15 -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=kbCCrZh5; 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 S1726192AbhAFFOB (ORCPT + 99 others); Wed, 6 Jan 2021 00:14:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725828AbhAFFOA (ORCPT ); Wed, 6 Jan 2021 00:14:00 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6CCBAC06134C; Tue, 5 Jan 2021 21:13:20 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id k78so1706073ybf.12; Tue, 05 Jan 2021 21:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JQUlyOnlBcqYVUIlvxW8hwy4E/pavn1J3HXdQXV8Lvk=; b=kbCCrZh5c1ImbAS9tD2b2hnbNIl79xI9+GPpSaJSu/1oVSwOOL8eUSODIIMiULfL4l ww7L5M4Marpbq3VDD4RB92aQxmssOHyQkqXLxGAYvef7EMutxLQ6BAQbbeoOapLm4XJH Y1hFrxdFOTlJn3d183K2x8+2w/SPg9957Z5ELM184TEONtUp3tPcoSJ1i4cYmZHv7F7s lL0lF2t5xt5EgrCyOa6zhwxZPNJygW4Y3e01Ec6K3QZEUsUaOAAdwMZ8sE3u9Xqw4tOK 1ME0k/rhic0I2Jn/cZc1LBxeif3d22rXlNyjdmvQtYK3klzh2CVyzAHVT3GkxAFwcGeN Sq6w== 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:from:date :message-id:subject:to:cc; bh=JQUlyOnlBcqYVUIlvxW8hwy4E/pavn1J3HXdQXV8Lvk=; b=IxNSq3p3H28X+XR76p+OD/CIOkY+d/h6dcx1RN6NeHRFKLxy7WOQH4PFABFjb6pCTe 0SOOtxzRqmAZ140i7Wx32DAk0Vi0rUEWuUbD8FyDJOmqny6mQnJ3wIDmv9OcGBrk63sR BM6+zRZrX7F9NLWf+gDX1IPqbdRW2o84qQc2emXrh9KJFr0UQzeHw3dIX5PpRZUq5EMF C/ndlN4/3GS5RTlK9YVWQWzcSuJ0ToHf35pNxMfSCiidr7HzPxlT6tugY5gjVOHXTZSA PuZ9Z8rKFjWu45SryaL3VD8ZDIsmzEfqwS5i0/oZrai50fZYZW+HIdbzHIShjyPnHMJZ 4SZg== X-Gm-Message-State: AOAM532xu12ie9nFBzLKjCEEC4TFy6jzBsbEBCibeOJshrpChe5Ga0hp 9hddtPOtkHnbFogk5vz1KL2aSpxksQKvmJTIUcg= X-Received: by 2002:a25:818e:: with SMTP id p14mr3703964ybk.425.1609909999694; Tue, 05 Jan 2021 21:13:19 -0800 (PST) MIME-Version: 1.0 References: <67ffe6998af5cf88bdda6eaa1e6b085db1e093ed.1609855479.git.sean@mess.org> In-Reply-To: <67ffe6998af5cf88bdda6eaa1e6b085db1e093ed.1609855479.git.sean@mess.org> From: Andrii Nakryiko Date: Tue, 5 Jan 2021 21:13:09 -0800 Message-ID: Subject: Re: [PATCH v3 3/4] bpftool: add support for ints larger than 128 bits To: Sean Young Cc: Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , Nathan Chancellor , Nick Desaulniers , Quentin Monnet , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , linux-doc@vger.kernel.org, Networking , bpf , open list , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 5, 2021 at 6:45 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. > > 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 > --- all the same comments as in patch #1 > tools/bpf/bpftool/btf_dumper.c | 40 ++++++++++++++++++++++++++++++++++ > 1 file changed, 40 insertions(+) > > diff --git a/tools/bpf/bpftool/btf_dumper.c b/tools/bpf/bpftool/btf_dumper.c > index 0e9310727281..8b5318ec5c26 100644 > --- a/tools/bpf/bpftool/btf_dumper.c > +++ b/tools/bpf/bpftool/btf_dumper.c > @@ -271,6 +271,41 @@ static void btf_int128_print(json_writer_t *jw, const void *data, > } > } [...]