From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2237C43334 for ; Wed, 13 Jul 2022 14:53:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236617AbiGMOxZ (ORCPT ); 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" 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