Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp90550ybk; Thu, 14 May 2020 17:11:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+1kj0C6Uf9Er0MRA6DXQ3MUFuvOYwA87igj3aoeF7MQUgZUB1hTARK5vU7qiBaxJe8fgQ X-Received: by 2002:a05:6402:a48:: with SMTP id bt8mr556046edb.197.1589501502638; Thu, 14 May 2020 17:11:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589501502; cv=none; d=google.com; s=arc-20160816; b=C2v4xCWpLQzhczQCjkGgfY8c1nxyMZLcaS0fMALbgJak5HZcSrANsU4gt/5P314KR9 d8IogxooufXtjaIPK2H0SfmNZTLVDMOdc43UlhM9p+bEgHk5oOKDXkPi2qqJrmmHazoK TqEPAkHEYyVBDoOHFU5ybJwU+VunNSg/j2oMs46q6H0Llxl2xJwhLU9UxQGKEU09ThIW znNl3mcutq3zxb4PX8A49im2bJN2J1Nc3Eh20FP4c+DwgIGbBvAMDwtMKujA6FUQkCeU YXvDAH6G/tK7qkQVu1PGsK/HPqCeP69DXLb8UugdEtNRV3dO7KC624MswdHm2HCQDPv6 y9PQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ah0+2uSyJ1tzkppjBImuG7UEaIqlnYN0RR1RbLnlBGY=; b=EwIcDbTvnjb03mwncrejr+qbqa8alwr4TC4F/H8Mu3RjyQva0Sxxs03UREzgaY4GVG WMfmGH+8kMobb6qVKOGqfrA4dafqEKK7WcjY9VEa76anex3xGxvhGnQbaVbU/WTxKJEL 9rZ2JLnqFTRrQiJl3Yze7MJ4gQC3WqYiE16t7jbql2JQtAzKQl77khfxpzw2IdPmXSbz XHhF013YVU3O+lxDYn9Ax9Vr+y8Xwem9M6b4eB0Knaa1KW7lYhDUYV9dL4zbHfL+FsCT a3VDEdZu0ih/9xDv2d2qu7XrpHIMpMdh7dLcVqKV0vQIcjQT+/3lMJe7ajymg1mBEa6O pgvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NczCZ3UG; 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 t9si192300edw.135.2020.05.14.17.11.18; Thu, 14 May 2020 17:11:42 -0700 (PDT) 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=NczCZ3UG; 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 S1728094AbgEOAJ1 (ORCPT + 99 others); Thu, 14 May 2020 20:09:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgEOAJ0 (ORCPT ); Thu, 14 May 2020 20:09:26 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4304CC061A0C; Thu, 14 May 2020 17:09:25 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id 23so115799pfy.8; Thu, 14 May 2020 17:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ah0+2uSyJ1tzkppjBImuG7UEaIqlnYN0RR1RbLnlBGY=; b=NczCZ3UGdi1OaVj2w53MUQTPs1fmLRzdv0SwUbupu6J8bdYITMhm+VNz1ld5OrdU/Q GEwZB/00I5bYWvfqzl1AopN2rHHz52xDbXU9zMb36xuCM8KQSHKb/Ti+nxZb/5/ylX6Z bnCFqUnNCSYlgjdxuF+sVWVm61hdgYYxjO4TRDqD0DhOIYz459K/rSuMoOR4kbw6Kss3 ojChb4Bf91wZ7mMCDQw9zBZ4gc6Idd2AjRXopqCFoF0hX2wNLxAK98xi1LfLPsKVtMbY z0Ys6rAKegzXN1MvvwbHeQOqMo86dD601BR/2Qbk1PUjmq5OQnrZILkQ4P18+o65zM9K oQRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ah0+2uSyJ1tzkppjBImuG7UEaIqlnYN0RR1RbLnlBGY=; b=CjkYazk+iC4C1WlHf7WPCpXXO0c5JY8fuNwHiy2iWPhO32rkOf5gCpgdI7TEKFO+LO QwovoOBRUnvtJDjztvVboy0980FxKp0P6Gt7SnKhpzZMoVlkkMBj/LxVw7ZJ0ujjQCVb 2wJT8XBEaCrQMBMuWHjkDTsYvCuKW27oIZq/b2NyOj+qQhLjhoM9GWVLU7+Euci1nstF QWrCyoGl9PdDuPz+Wiz8O4+Q4Z4kNfle7HpT8vEo0W+T6KcWlgG5a2uayGm5MljXxoys pViKwALoKm8tgDAqj3q4pxyEsLLvZvJ7JaIlap25+BhL6NJEsZT/YyO6feaNZIDwwToV vv9A== X-Gm-Message-State: AOAM530AThrJ/6dSlYUdXdQ8RNF2I2/SKyme4nTCnWkoiN0NMA9QRyO2 Vkl1Baf1s890+wkUM2q5cNZt51Z4 X-Received: by 2002:a63:3d7:: with SMTP id 206mr600878pgd.45.1589501364772; Thu, 14 May 2020 17:09:24 -0700 (PDT) Received: from ast-mbp.dhcp.thefacebook.com ([2620:10d:c090:400::5:9720]) by smtp.gmail.com with ESMTPSA id b11sm278737pgq.50.2020.05.14.17.09.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 May 2020 17:09:23 -0700 (PDT) Date: Thu, 14 May 2020 17:09:20 -0700 From: Alexei Starovoitov To: Joe Perches Cc: Alan Maguire , Alexei Starovoitov , Daniel Borkmann , bpf , Rasmus Villemoes , Arnaldo Carvalho de Melo , Yonghong Song , Martin KaFai Lau , Song Liu , Andrii Nakryiko , John Fastabend , KP Singh , LKML , Network Development Subject: Re: [PATCH v2 bpf-next 4/7] printk: add type-printing %pT format specifier which uses BTF Message-ID: <20200515000920.2el4jyrwqqbd6jw3@ast-mbp.dhcp.thefacebook.com> References: <1589263005-7887-1-git-send-email-alan.maguire@oracle.com> <1589263005-7887-5-git-send-email-alan.maguire@oracle.com> <1b63a6b193073674b6e0f9f95c62ce2af1b977cc.camel@perches.com> <397fb29abb20d11003a18919ee0c44918fc1a165.camel@perches.com> <28145b05ee792b89ab9cb560f4f9989fd3d5d93b.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28145b05ee792b89ab9cb560f4f9989fd3d5d93b.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 14, 2020 at 04:43:24PM -0700, Joe Perches wrote: > The ``BTF_INT_BITS()`` specifies the number of actual bits held by this int > type. For example, a 4-bit bitfield encodes ``BTF_INT_BITS()`` equals to 4. > diff --git a/include/uapi/linux/btf.h b/include/uapi/linux/btf.h > index 5a667107ad2c..36f309209786 100644 > --- a/include/uapi/linux/btf.h > +++ b/include/uapi/linux/btf.h > @@ -90,6 +90,7 @@ struct btf_type { > #define BTF_INT_SIGNED (1 << 0) > #define BTF_INT_CHAR (1 << 1) > #define BTF_INT_BOOL (1 << 2) > +#define BTF_INT_HEX (1 << 3) Nack. Hex is not a type.