Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16754033rwd; Mon, 26 Jun 2023 14:50:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7sL4IoAQ0B26NT7G9d5F8bQ2EMiYfzx8tXKVPhaUc8aMnfyxXWrb4e8ITa5E0aHJhqY6O2 X-Received: by 2002:a17:906:fe0e:b0:96f:f19b:887a with SMTP id wy14-20020a170906fe0e00b0096ff19b887amr24139206ejb.56.1687816255041; Mon, 26 Jun 2023 14:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687816255; cv=none; d=google.com; s=arc-20160816; b=j1Z00PSTWyge5mKMQAzNsySGVv8tD9vfcpROpV6RpVqgXvxJRoO9OqhcK81h5WRBOk WxoBfCjVYD+PmfYs3B0saFx0roCxRmEZnxbx+X1DN/CBHzK3RWa/ebHdBa7dDP6cQqWc v4nCxJhrWyAvf4fHCwsA0oi7g3dm+y40bcHnnarAdTS5MF2WpVfVRM+8c5ukjIg5rAQz UfCNmsXh+PltvxbVxKg+/Rztatnlxp/VQrf/0KZa+VhCkxG229j71vGLT9QeOIv0cf6Z ZZ3WJ6912aPozHEsMV90OAVOciSpWg1aVt2aCdeu12MiT1lSWI6JWxrBlop10so3Yx3D pWkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=61TCuxC/8ckm1Y25EXOMbw+9ebTDdmrEAX8tBmUtI3I=; fh=uZpFZvFI1ZUKfdnCroCx23XJ/h9VuaKVNmMvQLWLNLI=; b=QpO6CmnY1LrPq2x+WDZsoNTyp7Gl3LQUzetnvgQb11XIaxn5T0uU8xuLfSgJrU8uHH D7ff8k6czPoZYxzKME0R+M2Z8cxsg48odw8xcUsj5iFu6sYJQ6U3VZUAh++IHDLLnt8Z C817RFdkwGK4+zc59FZjxIxdSsZAT5cPK6DC/sjH1dqJeQSzn2YEcdNAK2j9K9HuPy5Y 7whaWzfoLumAv8MD+PKc1CJZzEoDtI0sS3p+DgwfkybdX0v42zoP7388sxWOk7pSISlw NWRJNZMq3AVuUlgQdEBMjm+90rg/jaUdFFvELskHwkRIlg4XE4CYhXcde1gfZrwZCFDb kVeQ== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020a1709064d0800b0099206858285si251333eju.125.2023.06.26.14.50.29; Mon, 26 Jun 2023 14:50:55 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229788AbjFZVmP convert rfc822-to-8bit (ORCPT + 99 others); Mon, 26 Jun 2023 17:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjFZVmK (ORCPT ); Mon, 26 Jun 2023 17:42:10 -0400 Received: from mail-yb1-f181.google.com (mail-yb1-f181.google.com [209.85.219.181]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D18B9116; Mon, 26 Jun 2023 14:42:08 -0700 (PDT) Received: by mail-yb1-f181.google.com with SMTP id 3f1490d57ef6-c1061f0c282so3139655276.1; Mon, 26 Jun 2023 14:42:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687815728; x=1690407728; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=PdOZq17J4e8rhRHEPHZEQm6bDkdkz7IHg5SEQcMgbCQ=; b=F/b0SRZckjDKkvhaGSIhXhtsmldaTZK9N0PVYK93/BjD/cGU6NgbqJZl6RVOvM3TUr nDMBtoGrbPtASj1/0YV6hG9bUokVOGSd7B0JUp6oGTO6YcAWfNeEQyPXdaqJQHvAp12z zLDHTBDsjVjk/14auXqlXR8S4/Qnce3iqLXK4FhtvchMaazzS1Q9VLw1Me7NI+ZItq9g h8fzfzWuXFJGGhZmaj0fys/TCxIB78YCCDCn0jx4QyhKUb5jPw3LdBLq8vd5DTwAyMw2 TQ+eSu7beo6xjQrNd23FkbG0rjO2/mHRoGMmMfmloSDA6I6I3uA5tXMranEdcianErSJ QrPg== X-Gm-Message-State: AC+VfDxU9+3SEU+UKZRepeX/orClvqUCjipTSLBgSBu6/Z1ixYbKJ+/2 uncTpZj0FyvKnLPhK4IVndoy6kCsDCrK6KE7xh4= X-Received: by 2002:a25:2d02:0:b0:bcc:a4a6:bf34 with SMTP id t2-20020a252d02000000b00bcca4a6bf34mr25830890ybt.37.1687815727899; Mon, 26 Jun 2023 14:42:07 -0700 (PDT) MIME-Version: 1.0 References: <2947430.1687765706@warthog.procyon.org.uk> <20230626090239.899672-1-matthieu.baerts@tessares.net> <20230626142734.0fa4fa68@kernel.org> In-Reply-To: <20230626142734.0fa4fa68@kernel.org> From: Namhyung Kim Date: Mon, 26 Jun 2023 14:41:56 -0700 Message-ID: Subject: Re: [PATCH net-next] perf trace: fix MSG_SPLICE_PAGES build error To: Jakub Kicinski Cc: Arnaldo Carvalho de Melo , Matthieu Baerts , dhowells@redhat.com, acme@kernel.org, adrian.hunter@intel.com, alexander.shishkin@linux.intel.com, bpf@vger.kernel.org, davem@davemloft.net, irogers@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, linux-perf-users@vger.kernel.org, mark.rutland@arm.com, mingo@redhat.com, netdev@vger.kernel.org, peterz@infradead.org, sfr@canb.auug.org.au Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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 Hello, On Mon, Jun 26, 2023 at 2:27 PM Jakub Kicinski wrote: > > On Mon, 26 Jun 2023 11:02:39 +0200 Matthieu Baerts wrote: > > Our MPTCP CI and Stephen got this error: > > > > In file included from builtin-trace.c:907: > > trace/beauty/msg_flags.c: In function 'syscall_arg__scnprintf_msg_flags': > > trace/beauty/msg_flags.c:28:21: error: 'MSG_SPLICE_PAGES' undeclared (first use in this function) > > 28 | if (flags & MSG_##n) { | ^~~~ > > trace/beauty/msg_flags.c:50:9: note: in expansion of macro 'P_MSG_FLAG' > > 50 | P_MSG_FLAG(SPLICE_PAGES); > > | ^~~~~~~~~~ > > trace/beauty/msg_flags.c:28:21: note: each undeclared identifier is reported only once for each function it appears in > > 28 | if (flags & MSG_##n) { | ^~~~ > > trace/beauty/msg_flags.c:50:9: note: in expansion of macro 'P_MSG_FLAG' > > 50 | P_MSG_FLAG(SPLICE_PAGES); > > | ^~~~~~~~~~ > > > > The fix is similar to what was done with MSG_FASTOPEN: the new macro is > > defined if it is not defined in the system headers. > > > > Fixes: b848b26c6672 ("net: Kill MSG_SENDPAGE_NOTLAST") > > Reported-by: Stephen Rothwell > > Closes: https://lore.kernel.org/r/20230626112847.2ef3d422@canb.auug.org.au/ > > Signed-off-by: Matthieu Baerts > > --- > > > > Notes: > > @David: I solved it like that in MPTCP tree. Does it work for you too? > > > > I guess tools/perf/trace/beauty/include/linux/socket.h file still needs > > to be updated, not just to add MSG_SPLICE_PAGES but also other > > modifications done in this file. Maybe best to sync with Arnaldo because > > he might do it soon during the coming merge window I guess. > > > > Cc: David Howells > > Cc: Arnaldo Carvalho de Melo > > Hi Arnaldo, are you okay with us taking this into the networking tree? > Or do you prefer to sync the header after everything lands in Linus's > tree? Arnaldo is on vacation now, and I'm taking care of the patches on behalf of him. As it's introduced in the networking tree, it should be fine to carry the fix together. I'll sync the header later. But in general you don't need to change the copy of the tools headers together. It also needs to support old & new kernels so different care should be taken. Please separate tooling changes and let us handle them. Thanks, Namhyung