Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp782791imw; Wed, 13 Jul 2022 07:58:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ufXv6lMl2SThvMskjASONhyYZEHdDPZCmFtubxkVRqmsufyJqlIMM7NMk+rlcEY4650Lrc X-Received: by 2002:a17:907:6287:b0:6e1:6ac:c769 with SMTP id nd7-20020a170907628700b006e106acc769mr3987063ejc.388.1657724303962; Wed, 13 Jul 2022 07:58:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657724303; cv=none; d=google.com; s=arc-20160816; b=rDM/kLkx2fkiEKZdWOtlC9JteSbHIks6L9AvPKbx07E2OKqW5ruN9wQC5pZ0NhFLBX MMOpG2KMO6xCPXkyZZFSxKbS8ItDTIfl28JVb4WWyFjrfOu/Vz37Oue6am99xHla87j7 9o2BxgeHul/onEI1ao7OjdhAyR7Qjc6M12UEphMgGOb77Xi/U5uNA2AQ/3JHWBthr3Uc lmf/WBgZOEpBkI3BwwdDwLRhpU0GOIoLLyOFP9IenWU8rQAHRanz3ISEngfhE9JBndkR +0rEFbsx7TeZHNGpab5ylyNLgIHjVR63oLzkKupNO8gd/tMTKhXcTBtgAZVjqKFkFeoz 2WaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=4e7qkV+LKd+kLlyAhHf8ddjIHjZpGLFgX9sc7oWeITs=; b=IV+CpFWfmUU7c/Oi040OxjO0W38uMPC6TzglWXhBDZ2ID0ZWPX4FL5c7ylXAhsDsUj pv3zEndrGHNbeIMVFgjyR0b8yQU4Zxd0YmNF9x/602Fi/ad0SAUu4VuNxEjoKBJEF3Y2 Zha+PekgFI2Jlt3usxMrTjiu0rStn5PB8+gMnBgRW/F/x/oxA4MaZt4fnUqiUlfK2POG S18xKk5QXJueA2mN/+hFpmwbFuhfJlKP9m5PJhYb9+vxIxkbnrUmJ9KRwcnTvYq1U1ug RibIzXfKENw5i8imsKeSHd/iUuVm0WiJW8458pguwUZNciH4i+i6UeLwrKNZwyU58fcZ 24Jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=pJFmLDu0; 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=NONE dis=NONE) header.from=linux.microsoft.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a50fa8c000000b0043770635d0asi6686932edr.576.2022.07.13.07.57.59; Wed, 13 Jul 2022 07:58: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=@linux.microsoft.com header.s=default header.b=pJFmLDu0; 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=NONE dis=NONE) header.from=linux.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236509AbiGMOxZ (ORCPT + 99 others); Wed, 13 Jul 2022 10:53:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbiGMOxX (ORCPT ); Wed, 13 Jul 2022 10:53:23 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5D7783CBE7; Wed, 13 Jul 2022 07:53:23 -0700 (PDT) Received: from pwmachine.localnet (240.119.92.79.rev.sfr.net [79.92.119.240]) by linux.microsoft.com (Postfix) with ESMTPSA id 67BB8204DE97; Wed, 13 Jul 2022 07:53:20 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 67BB8204DE97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1657724003; bh=4e7qkV+LKd+kLlyAhHf8ddjIHjZpGLFgX9sc7oWeITs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pJFmLDu0lYHjSNIx+1fVGKdaP18mavRzVphgIfCBCE5vLBMGTwFU5SFEbmZQRjzBm OdAzLrj3ium5JipsYucveHm87D1HhZj90gWdQrI8bJtBSWSGDFlGst+po9aEFxKzOs npmTFV7D0NfS8plWdjJNMB9g5ZBD5B1NFLbtiQxU= From: Francis Laniel To: Alexei Starovoitov 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 Subject: Re: [PATCH v3 1/1] bpftool: Align dumped file generated header with skeletons. Date: Wed, 13 Jul 2022 16:53:18 +0200 Message-ID: <4411407.LvFx2qVVIh@pwmachine> Organization: Microsoft In-Reply-To: References: <20220713144439.19738-1-flaniel@linux.microsoft.com> <20220713144439.19738-2-flaniel@linux.microsoft.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-Spam-Status: No, score=-19.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL, USER_IN_DEF_SPF_WL 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 Le mercredi 13 juillet 2022, 16:47:17 CEST Alexei Starovoitov a =E9crit : > On Wed, Jul 13, 2022 at 7:45 AM Francis Laniel >=20 > 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. > >=20 > > Signed-off-by: Francis Laniel > > --- > >=20 > > tools/bpf/bpftool/btf.c | 2 ++ > > 1 file changed, 2 insertions(+) > >=20 > > 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, > >=20 > > if (err) > > =20 > > return err; > >=20 > > + 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 Oops sorry, I will send a v4 dropping it. Nonetheless can you please send me a link for a discussion about this? >=20 > > + printf("/* THIS FILE IS AUTOGENERATED BY BPFTOOL! */\n"); > >=20 > > printf("#ifndef __VMLINUX_H__\n"); > > printf("#define __VMLINUX_H__\n"); > > printf("\n"); > >=20 > > -- > > 2.25.1