Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16755239rwd; Mon, 26 Jun 2023 14:52:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4VwsHgXpTqvVonIHcrN8qx3mH5P+KMirzyKbCOmtBzmIRorq9diWokuyAdLH+Rd09BNDdp X-Received: by 2002:a17:907:36c5:b0:978:acec:36b1 with SMTP id bj5-20020a17090736c500b00978acec36b1mr24562413ejc.17.1687816356624; Mon, 26 Jun 2023 14:52:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687816356; cv=none; d=google.com; s=arc-20160816; b=ZFVCjJuhRCpo18+KI9m83FGztE9imT3ZXKaORKct53eOY+eUEb83kkkWVxMHJlvvC7 XcP9YBSi5hUFSGm2X8+QgIWcVCXuYZNodhTzh1iTTe5ptXSrVV5sF53+aZFzBJyq3nmi TmqUHcisSmFZyRWA5WcPw3MSGyIJwRyHPqobrBVek2TieWPy9vRLnNVjHXNiMDJs6dSG C3ZRqNx4MV0ee+Kzby+A3mdK3hzyW0WmjMgp2YBthACW0GRXgaOWMToXYbPbivJ4nzeR BYuNXepzlsqvDv+LPwuz38l0xShd4kcpmofIGvtKK7e5gO3rdrZaGOVCzNfcv/C937/l ujkA== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=vamHq/qrcUnjtTGzF0VphGxuKID/X1O98LFz8uG8tRk=; fh=4Tkb+irSdQB7JbFDbGn0vLtRTrIWyTYEPGA54yHyA+A=; b=J9R3mWYWKR+8Eu29hJqyjaAYZK7Vf/9U2Y37EfHJ7P1gaiUDM6w4vijbh8H3WUt6ax iCjG1uuwZNSQDienXCFAaNoXLZQZa/JeD22XyYalqGusDj273aNIqjzLEAExZIPhcXao 3ib0dBpw4FslemgGoBI86KvA6kQDQupHnpEm7sx2M1rs0tLmkiEsCTZoWD3Rt63wIeoB 3Z54gOu1KKRmgwXKfYlSMXQASv4wz7GQgeNxhybDy3kUL1eIhnWdf3o1oOF8YiPMskVk Cd3ptWxlXdWgDIEJVRHF+Tf44echQV7DIojib+C2szySOIdoTRpmeT3fMw5Pgo+j13Zd 3KJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ljNIZ97K; 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 t23-20020a170906179700b00988770ed502si3462733eje.558.2023.06.26.14.52.12; Mon, 26 Jun 2023 14:52:36 -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=@kernel.org header.s=k20201202 header.b=ljNIZ97K; 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 S230397AbjFZV1k (ORCPT + 99 others); Mon, 26 Jun 2023 17:27:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230383AbjFZV1j (ORCPT ); Mon, 26 Jun 2023 17:27:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56A1D1702; Mon, 26 Jun 2023 14:27:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9DAE160EB2; Mon, 26 Jun 2023 21:27:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57EAFC433C0; Mon, 26 Jun 2023 21:27:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687814856; bh=cD+DlgssDHp9bWUfoAqdwHPtpJlWEj+4Ut4kvVblUg0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ljNIZ97KtuHOBzk+gfTMQAonQtKrXqmArEvp6gf6th8U9snAirn5HZDr1pg39P5AM 38gQsvUyYJlV3jRaJ6kdS4HMZqqEbbjpqCwKDqWHdOiJQ00c6CDF3KnUyl1a+uCfIT +xjUvT7wagBbCIUxOr1Ysw1TFcb4kRMdstAYOVJmeh1c2aJ1ajmTMXLray5ohrZA1k TGJKSOFKLXOkfZHHSsu2DT8/xHwyfZDfAaRIj4k7jAwNPPrkoK47wsuRy8FgpA5QG0 MiMilxWpzVqMxN+muUL8m1ErVMR7jUvIEziUej63OU+jBJM+NfvkJEhv2s1qez5gY8 SzPCGc2kupEtQ== Date: Mon, 26 Jun 2023 14:27:34 -0700 From: Jakub Kicinski To: Arnaldo Carvalho de Melo Cc: 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, namhyung@kernel.org, netdev@vger.kernel.org, peterz@infradead.org, sfr@canb.auug.org.au Subject: Re: [PATCH net-next] perf trace: fix MSG_SPLICE_PAGES build error Message-ID: <20230626142734.0fa4fa68@kernel.org> In-Reply-To: <20230626090239.899672-1-matthieu.baerts@tessares.net> References: <2947430.1687765706@warthog.procyon.org.uk> <20230626090239.899672-1-matthieu.baerts@tessares.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 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?