Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp780617imw; Wed, 13 Jul 2022 07:55:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sVwhmultZZuN6golyepJaIW4Nc1IoSv+zcwP0RohsGiTNRJIMgEXYO2jT7vh9aetPTWKUK X-Received: by 2002:a17:903:25d6:b0:16b:f6ad:1027 with SMTP id jc22-20020a17090325d600b0016bf6ad1027mr3439170plb.25.1657724122276; Wed, 13 Jul 2022 07:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657724122; cv=none; d=google.com; s=arc-20160816; b=kTOCedjzFsO5kUJgNcpmpBUPhIqtZPwtrxw37UuztP9He1jToXBEGDX+b2SSY3IR6w DSZqdO0jhB6roxaYtOEjV5r3ggO6V7c++M8sVALbBBVgEZ//fQr/JcE4NdRFEsvTzQww b/Gho81VfXtjIRUDuIOtP/3nDAUDDaTbLqHR4GHEpjWTBg5I3HvFiTA5hQ1NUTG5lN8F c8F3zX9TmGlM7DehxuC2hqaIMPn+T6THfM4idasJehejz0gE0KLpO05eAGTFWoDtQcUZ nxTYmMQ6k/tMUXiJbOp0rUkItXPj1et4EdEo1j9d7QnHxfQzZP4J7/m9k/yAK6h6+CL2 Y8dA== 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=nVPYGVEqgFvdgKTCaucYk9KATG8V1rjN5GDIXGgYphk=; b=dnzdUZeEjHVLHlDggzjfFPJCpZ1y70k8mS2iigEUyBC5mJefdQI6GjfUDQCniO0J3e 87BFbbcKwKKM45KnHsMuBeZ+bWj/THJocNKWlm45UoLs+/a4FGoPFdCaD/hxZkSTuOdc S46tPi/4odFtexZDuXtnMpi24HAABS4ds3asY44+mpMRcNmqzarBLDECPyhrUqX2CT5C feFdM/fSIVeMflCcVVsmb7wCNF5seviFpYRHuOe/naBUT3gVX6l3+3nUlB9cqYyCRIZL uulgQj5wEO/vnfqYe/5AO3hhTaj75qWTTgy4Lt+hc/xowReMi9alatwkTHJSI4sh2SVl AyYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.microsoft.com header.s=default header.b=cihL9RYM; 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 i8-20020a63d448000000b003fdda84798bsi17790606pgj.117.2022.07.13.07.55.10; Wed, 13 Jul 2022 07:55:22 -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=cihL9RYM; 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 S236219AbiGMOoY (ORCPT + 99 others); Wed, 13 Jul 2022 10:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236093AbiGMOoQ (ORCPT ); Wed, 13 Jul 2022 10:44:16 -0400 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E40EF1FCEC; Wed, 13 Jul 2022 07:44:15 -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 2EBE6204DE98; Wed, 13 Jul 2022 07:44:13 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 2EBE6204DE98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1657723455; bh=nVPYGVEqgFvdgKTCaucYk9KATG8V1rjN5GDIXGgYphk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cihL9RYMaV7+hjbuk+5xX8Cz/Htlqhku1rxIZ1aPvwJ9BJZJUmTmcybPWc6ftU6aK dUyGkSh3cTi3+GKXNR6JtJjfeygBxqnUpE9xx5+7pvso4aZQqGaGql4+GgUcTR3g8u 0/w0KyRWUbgYqvD6Kd7DH2HPzbDjhYvYpHStPTDQ= From: Francis Laniel To: bpf@vger.kernel.org, Quentin Monnet Cc: 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: [RFC PATCH v2 1/1] bpftool: Align dumped file headers with skeletons. Date: Wed, 13 Jul 2022 16:44:10 +0200 Message-ID: <5839621.lOV4Wx5bFT@pwmachine> Organization: Microsoft In-Reply-To: References: <20220713134046.15020-1-flaniel@linux.microsoft.com> <20220713134046.15020-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, 15:57:13 CEST Quentin Monnet a =E9crit : > On 13/07/2022 14:40, 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. > >=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) > > =09 > > return err; > >=20 > > + printf("/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */\n"); > > + printf("/* THIS FILE IS AUTOGENERATED BY BPFTOOL! */\n"); > >=20 > > printf("#ifndef __VMLINUX_H__\n"); > > printf("#define __VMLINUX_H__\n"); > > printf("\n"); >=20 > Looks good, simpler than v1, thank you! >=20 > Reviewed-by: Quentin Monnet Thank you for the review!