Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp17452883rwd; Tue, 27 Jun 2023 03:17:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7r4faa2Z+AKNyP8eH/wM/FCRrcMwFQs+B7Cz1zSvskDTTv+bXLtx0EenjE3UbyKNg7pvKk X-Received: by 2002:a05:6a00:1483:b0:65b:351a:e70a with SMTP id v3-20020a056a00148300b0065b351ae70amr30412333pfu.29.1687861046232; Tue, 27 Jun 2023 03:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687861046; cv=none; d=google.com; s=arc-20160816; b=vr9W1SbZq1+RiIGIl+SrvGudWAOFdQ/NM07RhwMdBfRr1hTJFI4Nfl9uOFa3I+i50l yuHm6QniPDonDKLNCvSG2DftPLGwBN0NxCEXz4GlD8htGNTEZ1GO5YFoCf3q69U016W2 IibrCmsMpfemfmq5mVe+iHi5yoOcQ6mog8kohVtiMOe5e0uvns1PbV8LNdxNMNoEcvat 2hFPDRzFh7bzDvY3eu2x6LJuDAAVCET3sHYKpxTfXBNGzb93Xtuo9EBME7hKU3IxfUFI uietfHKpeYALCMFSlBb4eVaKcUXg1vtFzou+2ItaCkc4x37UzRn1uQpzSNmSmb4yKlI7 P7dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=DERs8uzDMpyvp9qgsa7AlFpdBE9PZMETpYtSHAfUjAo=; fh=9K8NAedO+WeO8QwvJza14lP3k65QZ33bwtuDGmRYv20=; b=leiGGfxXQur+9bZxp4fGESt3SjGN/C+/50CMr4dQWKY1glXum18hE+g0wLG+hEs/Y4 /x1+E3p6W8vKkxv4RGjzJ45i4Eh2S40QMENa5iVYW0jOCEU373YW//zw+/lg5qdIwPVV jRqXtnmioprSoWZx76ZNbZFA9CBDmx2t4JiBSBEEP4Tm7wbH6T9fV1bYp3xTs2AgUH+8 +ZL2YSKshqmxEKnJiDQqWUhhOvSUklgpZe2WZk6VOq80z3xfGMtZcgEDP9m2ziPdJr1i 1O3bd+jR8UifwOYrlpDk0eRNM43Uby0eFg5uwXKK261g9mJcpGg7Jb3Ck41MgwItRWIg 3f7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=XrCIi5V5; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g124-20020a636b82000000b0055acc9229a4si4582487pgc.803.2023.06.27.03.17.14; Tue, 27 Jun 2023 03:17:26 -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=@redhat.com header.s=mimecast20190719 header.b=XrCIi5V5; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231783AbjF0Jyj (ORCPT + 99 others); Tue, 27 Jun 2023 05:54:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230477AbjF0JyM (ORCPT ); Tue, 27 Jun 2023 05:54:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72F47269E for ; Tue, 27 Jun 2023 02:53:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687859596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DERs8uzDMpyvp9qgsa7AlFpdBE9PZMETpYtSHAfUjAo=; b=XrCIi5V5Pljw/4mTrK8nQgzhgUr8wfh8LnkdutgdjMUYAQoFYlQ43JcQAUJcVwtQr8mxsW wV+B6RwuVfj5QuPSxZ98ofY//RTd2e8tlpjWBLt0Z8WipcTGtUT6Zb5aOBbF3Ai3ElPcfr TSki5fjnk+2dRnmMHkDE4NmQqCN+nGo= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-472-clHjlF82NaiC7I9z2ymlVQ-1; Tue, 27 Jun 2023 05:53:11 -0400 X-MC-Unique: clHjlF82NaiC7I9z2ymlVQ-1 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-40234d83032so1687021cf.1 for ; Tue, 27 Jun 2023 02:53:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687859591; x=1690451591; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=DERs8uzDMpyvp9qgsa7AlFpdBE9PZMETpYtSHAfUjAo=; b=k9aw2eQSwupAsf+ZhcRVQEkPewFQwsaeVHVDmvmsM/fBJovmdZ/n6wmbtXzhVdvkS5 1yKkgBXe13ufIxVdfFlwjoWJtR0vmMkzXI3vuaA9lyncsIdvfUrCnGF6fQlK/Pr/EQ0+ ZC/HeGdYX+DyMLtoxpOUrnS5Cu8V/e8rVAzFEPWcZiuDxpc/0jfdxjqSJjGUtvQs9R9Q dI4qwHmNVHKb92U3IkdcmK7Aie4Ak3E0Vf29LgjpI0Bsvw+hw9VOLrQz+zkOCxDB9Qne DLIF3oSajCqGj7xM6aCvY4Ij4osdRZ+uWSQWY6qGSql6v+oPgAHMOxnVFl4Fh3aDGSLO uN4Q== X-Gm-Message-State: AC+VfDyU/qBh0z9cL22BDHK3bdia8+rrx/soGCDmyVEXTeIKw185LaPQ 6nSFy/Ilb74RUCFINQUl4gBzO7bpMAN6F89UbsbRp0eLfeUiBC6lBinzALD07uGEmr4Y1cQi/0O /ev6gTKHxYj/gpV7nRzoMGNy3 X-Received: by 2002:a05:622a:1191:b0:3f6:b493:8ee4 with SMTP id m17-20020a05622a119100b003f6b4938ee4mr39729420qtk.0.1687859591376; Tue, 27 Jun 2023 02:53:11 -0700 (PDT) X-Received: by 2002:a05:622a:1191:b0:3f6:b493:8ee4 with SMTP id m17-20020a05622a119100b003f6b4938ee4mr39729413qtk.0.1687859591104; Tue, 27 Jun 2023 02:53:11 -0700 (PDT) Received: from gerbillo.redhat.com (146-241-239-6.dyn.eolo.it. [146.241.239.6]) by smtp.gmail.com with ESMTPSA id cq14-20020a05622a424e00b003f9bccc3182sm208798qtb.32.2023.06.27.02.53.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Jun 2023 02:53:10 -0700 (PDT) Message-ID: <35d67fc65d5ff70c102040ce095a7c4a8b5da8bb.camel@redhat.com> Subject: Re: [PATCH net-next] tools: Fix MSG_SPLICE_PAGES build error in trace tools From: Paolo Abeni To: Namhyung Kim , Jakub Kicinski Cc: Matthieu Baerts , David Howells , netdev@vger.kernel.org, Arnaldo Carvalho de Melo , David Miller , Eric Dumazet , Jens Axboe , Matthew Wilcox , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 27 Jun 2023 11:53:05 +0200 In-Reply-To: References: <5791ec06-7174-9ae5-4fe4-6969ed110165@tessares.net> <3065880.1687785614@warthog.procyon.org.uk> <3067876.1687787456@warthog.procyon.org.uk> <2cb3b411-9010-a44b-ebee-1914e7fd7b9c@tessares.net> <20230626145353.468fd133@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Mon, 2023-06-26 at 14:59 -0700, Namhyung Kim wrote: > On Mon, Jun 26, 2023 at 2:53=E2=80=AFPM Jakub Kicinski = wrote: > >=20 > > On Mon, 26 Jun 2023 14:31:39 -0700 Namhyung Kim wrote: > > > Right, we want to keep the headers files in the tools in sync with > > > the kernel ones. And they are used to generate some tables. > > > Full explanation from Arnaldo below. > > >=20 > > > So I'm ok for the msg_flags.c changes, but please refrain from > > > changing the header directly. We will update it later. > > >=20 > > > With that, > > > Acked-by: Namhyung Kim > >=20 > > Ah, missed this email, sounds like this is preferred to Matthieu's > > fix, we'll take this one. >=20 > Hmm.. I believe they are the same when it comes to the > changes in the .c file. >=20 > >=20 > > > Also I wonder if the tool needs to keep the original flag > > > (SENDPAGE_NOTLAST) for the older kernels. > >=20 > > That's a bit unclear, because it's just a kernel-internal flag. > > Future kernels may well use that bit for something else. >=20 > Ah, ok then. I thought it's a user-visible flag. >=20 > >=20 > > Better long term solution would be to use an enum so that the values > > are included in debuginfo and perf can read them at runtime :( >=20 > Right, we also consider BTF to read the values and hopefully > get rid of the business of copying kernel headers. I read all the above as the preferred solution is the one provided by Mat's patch (not touching socket.h, same changes as here in msg_flags.c. As such, I'll restore Mat's patch in PW and will obsolete this one. Please raise a flag if I'm wrong ;) Cheers, Paolo