Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp780640imw; Wed, 13 Jul 2022 07:55:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s5H5huykVc7HceE2nDZfePWlxf3i2ROuC9vPUjikMPm0uS/tDW/tfp7y7nhCuNHA1vrUxR X-Received: by 2002:a17:902:c205:b0:16b:f021:4299 with SMTP id 5-20020a170902c20500b0016bf0214299mr3505409pll.70.1657724123765; Wed, 13 Jul 2022 07:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657724123; cv=none; d=google.com; s=arc-20160816; b=nHC5B5zMOuwJBf9/vcU27AAKrPnIOlmWhuwqu74czwfZJunHN8mnZPffp7H3Srqd5R nzGFoTLG1CxlAXaye8JB0mFYO82mfX0vsCCAU/Lj1HEBQfroiRZaIsGgI8jy0ZupH2hy B61KY/HZfXS51sEBs77MGXsDPq6W+QhRHCNFP9MxbgVxYHtP/NKUFjIwr2vAd9z4E0KW W5ymktuaAiKHUY24sGCz5if5Hpc06vVGvUTxC+Ja0nktj2GDbwcGNIJJgAwEbhVR/X07 UFTppozCohfALf2M+pczcYMtdtyJlAoavMzvE6xEVBCxdWPZ35jAKEe85LgTCh5LlMs6 IvAA== 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=q6z9Dl76yDttJavavZnxzS7LrELhIAc+LaPuVqCl3+o=; b=haywxtiMzCkyKFTOp3JlLWDS3iwxJdo6MCGShAhXrbavYHEE945e6CmgmGEPnaJJJn E2IBLjv9r5BajijZMDnt+fnzI7j0cg9PSQ0j29Oj3PNiIIJl1A8/Ld8x44zYyVlXjefw JoCB0XXCWsqLT6CFs8oph3Zj42g+FFmoQwriP0RF0TKlRZaTqDSDdr+xNeEEd94DhZ+n LEjP9m3OqRz18r1pp0PO0sKJbbXZMcBhbGbrwy33tylMzOC42In7XlKTe21hT/L9vFsF Y0oy5A1UzLA0oYk35jXq2Ep7DaVGEU5/I8eWXpexGFCwg0Ysj7OMLhLtJazLjoVClLas FxAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cTyWu9j2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a627912000000b00525babab840si17502808pfc.324.2022.07.13.07.55.12; Wed, 13 Jul 2022 07:55:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cTyWu9j2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233839AbiGMOrf (ORCPT + 99 others); Wed, 13 Jul 2022 10:47:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231789AbiGMOrb (ORCPT ); Wed, 13 Jul 2022 10:47:31 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6008733A04; Wed, 13 Jul 2022 07:47:30 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id fd6so14401411edb.5; Wed, 13 Jul 2022 07:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=q6z9Dl76yDttJavavZnxzS7LrELhIAc+LaPuVqCl3+o=; b=cTyWu9j2qmgrxvlhxQ4je25qfu46rIVo00wue5qr8v+coYJaK3a7rtHlW8NmulliVI agFZLYL50V70mySRAjERfRSnznC3eNRTd0j/0+CSYJS4V1ZP0f7IREQfGZUfELewD3lR Sgjef13/hk42na4Flkl03zo+I56J/tgQTgz9Fcx0DSmJusf6ZyS6ek6M1xcrajS5LCua 0UX3RgHbofmg4r1LMrNibW01MtYtVT0+ZOLIWzY/QVNSKJVWY2YgB+g/PJvWPPmfbdU2 ytl1FS7tlu7zjkFuCC+oTYEsOwKr1pKgS8G+aE6m3WhfdE3kFuu7hNoa//UhT/bObz+W VntQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=q6z9Dl76yDttJavavZnxzS7LrELhIAc+LaPuVqCl3+o=; b=sugNIyH+ZH42InH+8aFKznTBpKzIY7JRZfHuMZDDhwF3vcmjaj5ALRIl0Cw6zjy+yN v0rfjUKEQhR+poPZe1WJ+GKTTjXFYISfBKyqHonNcXLbsYpu2DCsC3SYb13fIyrxGMx9 FLKibBfsGe8DkFUmQ+8lBOoiYxcM829gD3ssOA2RUCxTFhd+5vll/3VxOh4JWMm99OGF twBYBdWNz0hdARDxLPiKt4VscE1xiZHJN3WzA6GMU048DLIGqIqmTpwG8A9pBIYjzEwY eriMaAk2YUlq7527TISDlPv1AuVhcw0PLmvapfDtwD8Njz/Jb0BPCK6SSdX9/TgaAlr+ xSsQ== X-Gm-Message-State: AJIora8+oPvVlZcGKztpIfyIUcW3c9e9WnzdRhTWP2JJHZxF3Q9Hxewg 9qlPGP11bqpmPkjxzpra21GI6AEXoc63jqYm+BY= X-Received: by 2002:a05:6402:378f:b0:43a:d3f5:79f2 with SMTP id et15-20020a056402378f00b0043ad3f579f2mr5596951edb.338.1657723648850; Wed, 13 Jul 2022 07:47:28 -0700 (PDT) MIME-Version: 1.0 References: <20220713144439.19738-1-flaniel@linux.microsoft.com> <20220713144439.19738-2-flaniel@linux.microsoft.com> In-Reply-To: <20220713144439.19738-2-flaniel@linux.microsoft.com> From: Alexei Starovoitov Date: Wed, 13 Jul 2022 07:47:17 -0700 Message-ID: Subject: Re: [PATCH v3 1/1] bpftool: Align dumped file generated header with skeletons. To: Francis Laniel Cc: bpf , Quentin Monnet , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , open list Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 13, 2022 at 7:45 AM Francis Laniel wrote: > > This commit adds the following lines to file generated by dump: > /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */ > /* THIS FILE IS AUTOGENERATED BY BPFTOOL! */ > Hence, the dumped file headers follows that of skeletons. > > Signed-off-by: Francis Laniel > --- > tools/bpf/bpftool/btf.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/bpf/bpftool/btf.c b/tools/bpf/bpftool/btf.c > index 7e6accb9d9f7..066a0acd0ecd 100644 > --- a/tools/bpf/bpftool/btf.c > +++ b/tools/bpf/bpftool/btf.c > @@ -425,6 +425,8 @@ static int dump_btf_c(const struct btf *btf, > if (err) > return err; > > + printf("/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */\n"); This was discussed earlier. It's incorrect and we cannot add just header to vmlinux.h > + printf("/* THIS FILE IS AUTOGENERATED BY BPFTOOL! */\n"); > printf("#ifndef __VMLINUX_H__\n"); > printf("#define __VMLINUX_H__\n"); > printf("\n"); > -- > 2.25.1 >