Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp727130imw; Wed, 13 Jul 2022 07:01:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sO0ByothmJcb6QxycW+qBXKGqo6y3BzGqma+wVqbMyAFc0RbDJ+O8CsiNjvmSY+Tu+v05W X-Received: by 2002:a17:90b:4f4a:b0:1f0:65d:d888 with SMTP id pj10-20020a17090b4f4a00b001f0065dd888mr10667164pjb.136.1657720900887; Wed, 13 Jul 2022 07:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657720900; cv=none; d=google.com; s=arc-20160816; b=1DOBuDRpPzBX0PD2tkHYCIOl/Iuzur7T8iB96cmzS2BLzGsOYb4i7ycg20c4KMtwbY EPfK//yNxR6r9VL8WRkZ2LvmDvqgSESyoZn/J4ScHeowuxtety/nXov6riddhCsff8Ld Va0DEdk3gocytfaUJujbgn1WQ0jZfcsrUwa56DLVlO6E0K/i0edOIqr1QlCiBELxQ2nS bLyCvEhC+YH4fW7Ynuz07hIkmaEUkW21299DHrj5YC9Fpw8utUrF4Ptanw8IZ9y6xmPY h3ougVHa0ulfCCRWMIms4Gs0YKldzBX0f4j43kEfdsSr6wANNrTY2HZwHbQo8metilAp Toyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=kxqBWdiXM5WNeClMPGN89m5g9fK7yBoXSaVViiNVQ8g=; b=OOnIAeBFZ9grTKKOfoV+Vg8bxqR3r3kTZcufFXNzpB9gfQchKzXCujeUQQjgwjzmtt H3PFOBxxrTs6mhsUdHziUYpguHDScpKFo4dxKxrJEqAannKOMbtOAk+00xw51w7Fx1Eb QRA1/JJDPgDSofDTipSuUwtMR1acIMaFz1dnCce6ZYljSWr3SGViBG98haEcB8ij50J3 Ye/3VZ2PSwsV8gjkCQxPb/1UDfvy83FRJ2tkKKf5fO0t0d9A3t0iFD5dMLwqc0n5u+L2 x+2BbAM8lsPSoGc3JgUlGbZNgXVMAcmmQST3JEoKd8koG21Fl4xTl2UTPqsIvWSfuBgn UULA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@isovalent-com.20210112.gappssmtp.com header.s=20210112 header.b=g7sCyBZ2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a056a0016ca00b005191e154399si18094861pfc.258.2022.07.13.07.01.26; Wed, 13 Jul 2022 07:01:40 -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=@isovalent-com.20210112.gappssmtp.com header.s=20210112 header.b=g7sCyBZ2; 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=fail (p=NONE sp=NONE dis=NONE) header.from=isovalent.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236423AbiGMN5R (ORCPT + 99 others); Wed, 13 Jul 2022 09:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236221AbiGMN5Q (ORCPT ); Wed, 13 Jul 2022 09:57:16 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E5DF12CE1F for ; Wed, 13 Jul 2022 06:57:15 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id p27-20020a05600c1d9b00b003a2f36054d0so1235949wms.4 for ; Wed, 13 Jul 2022 06:57:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=isovalent-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=kxqBWdiXM5WNeClMPGN89m5g9fK7yBoXSaVViiNVQ8g=; b=g7sCyBZ237J9K19/0sLWl+a9stt/xgvJwPjoGXhb1JnLwI9WgOT5UER5tZx+ucO7HG TUidhRNoQx+iPvX8Cgu5YLiKO+LQiydCKckRhJpvZ3WLOOvGGvPFEdLoR27DGwu4V6FC zIkvixE0WB/haEqVW38dd4zgrBNkJ999UIgBDvj/EELkdCw9TTP2uxxC/AvujWJGOgkL Wa0VFTm0j38hB0F08Z+72EJ9vjPAazAJ0OZ27HkdmdS/UrumBa6DjT7TOHxKNfhNd77N c0IJDm7qvKme7P5/5iNKwpPqgpF4gdnSBFULZkFpjmRuC1ToMJxx3gDnMCXaxFwyYjma rxWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=kxqBWdiXM5WNeClMPGN89m5g9fK7yBoXSaVViiNVQ8g=; b=6ztoAWxhCjpYmmQoMkf96qfVI3eSgfdaSH34k870FX6yB8t0en8JMV6xlT6MZoLoFe kmLWF2I5oiCl5YAoOObNzp+vqwtsyj+hFhTea6peUCgIABEcA3u08fdqFaZG0J6gNM3a pGUS+c1MDmt7v7lN6dgTBIBsk3u2yt6KOh1kghZXrYSLbUohJPMHvhHwc21K3+YgwZxP 76JtaDz5wC8WSB2+eVFcDWwut4qXwNTbRucNN/fIOVduUVE1HtcNoIwYDiUoKH6y7OyI NCz48yYpEJqvTNAwjt2OL1l702sU1Ph+NFPqvCxyiDjMfuOs96jh7pSXnc61KLe95w62 apSg== X-Gm-Message-State: AJIora99gFrq8mgtQdpEPCAEh0SKDdkqRxBQsRyVPFhWP4cz1Gabqple 236ZM0VgCEEFZ6gc/D91y+chzg== X-Received: by 2002:a05:600c:2117:b0:3a2:d44f:4d9f with SMTP id u23-20020a05600c211700b003a2d44f4d9fmr9634057wml.17.1657720634459; Wed, 13 Jul 2022 06:57:14 -0700 (PDT) Received: from [192.168.178.32] ([51.155.200.13]) by smtp.gmail.com with ESMTPSA id z11-20020a5d4d0b000000b0021b9f126fd3sm10946839wrt.14.2022.07.13.06.57.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Jul 2022 06:57:14 -0700 (PDT) Message-ID: Date: Wed, 13 Jul 2022 14:57:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.0.2 Subject: Re: [RFC PATCH v2 1/1] bpftool: Align dumped file headers with skeletons. Content-Language: en-GB To: Francis Laniel , bpf@vger.kernel.org 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 References: <20220713134046.15020-1-flaniel@linux.microsoft.com> <20220713134046.15020-2-flaniel@linux.microsoft.com> From: Quentin Monnet In-Reply-To: <20220713134046.15020-2-flaniel@linux.microsoft.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,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 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. > > 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"); > + printf("/* THIS FILE IS AUTOGENERATED BY BPFTOOL! */\n"); > printf("#ifndef __VMLINUX_H__\n"); > printf("#define __VMLINUX_H__\n"); > printf("\n"); Looks good, simpler than v1, thank you! Reviewed-by: Quentin Monnet