Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp16186407rwd; Mon, 26 Jun 2023 06:56:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5bWCnkXaSTFV9tr/mr/lCQxmFORVDpy0BroqC6axjbyhmNHHnSz0lfarAnN5o4vSjPM6cc X-Received: by 2002:a17:907:16a9:b0:98c:e3a1:dbb4 with SMTP id hc41-20020a17090716a900b0098ce3a1dbb4mr13034633ejc.68.1687787816424; Mon, 26 Jun 2023 06:56:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687787816; cv=none; d=google.com; s=arc-20160816; b=oUItNGgd4pQZOMr7e9s2zr6AHHFEiGstikhlTJLfmDuBHRbgFFdqlKxZmRFczeHssX XezPB9HvX1ydNzbknJB/FCDTg7+S8aOxmXBj0VjsxpVAQyrAQIHcbLZAPLtQl11bkkF8 4mazPyVgR810oFkxg7qMdAcDkTmc40w7Oud9aWWjbxf16HnOnfxSJRQSrYztnTCcv88Z 8C/13ZfyQCFEmVFj2e4yd9TWX3/5U5yFw1JNp6KpsNYp8oiKZGW842ix2XKpmPQXJ5Vi gEIOSteFA/tKtFjixTm/hPFxnxR4KjraFvKI0dKA6cXQs0fPcG8Nfra0+8i4FVfCLZ7V +5CA== 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=3ajgNyIwWVcjYzMwm3DqnghOvwsLRw6qD3CZhsNi77c=; fh=flFR4QgSoYOe5LgTwMvUgq5ottE5v2AL2hmroCW4qRk=; b=LNS+4wqRksWi8WaahfGMhoyim2Z51qZiSceVIe38Bo44DqcW7T8EmclrSbkolu6HRe oBnLw7h6aVfQgReG+BqcmbAsJUp0yVorwLGiAZ2j6PN7YBkskSSCDnAubymiFucIbdTd HzaXAOtcBGk87fS2jj5D16TX4O8xfMD2IUbuPNUkJGY1T2D5LUTm3vT7XEEbIEe9aHoD y1hbZuMAxVqC9BOCJmWePJg/lCLmN+vKCMHA1kRifVpffe/T5u/xkNJr+2zrqkiG8r1o POtpZWWTw9Cpf9zXI4PIprFPxwYaEZlcS7+1o+wx6/RiGjdeGoVmzddz0pypjVrl4erY 7a+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tessares.net header.s=google header.b=V8u9lIov; 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=REJECT sp=REJECT dis=NONE) header.from=tessares.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jp2-20020a170906f74200b00987463b4b32si2843729ejb.535.2023.06.26.06.56.31; Mon, 26 Jun 2023 06:56:56 -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=@tessares.net header.s=google header.b=V8u9lIov; 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=REJECT sp=REJECT dis=NONE) header.from=tessares.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229706AbjFZNrM (ORCPT + 99 others); Mon, 26 Jun 2023 09:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229788AbjFZNrK (ORCPT ); Mon, 26 Jun 2023 09:47:10 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0147E10C0 for ; Mon, 26 Jun 2023 06:47:07 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-4fb41682472so1859999e87.2 for ; Mon, 26 Jun 2023 06:47:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tessares.net; s=google; t=1687787226; x=1690379226; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3ajgNyIwWVcjYzMwm3DqnghOvwsLRw6qD3CZhsNi77c=; b=V8u9lIovuozTtLYUjXpTS7ULYjyFXNNH91wqTcdZLzgyKyyep5wVeXZCMcMy8wX9jF bFZ7vDrmDSceVrr7oDg+wbgk4TKsV7sq+NHSWOwEYO8XTENMv4rFSFUjeszEYgm/3anL ZSY8rR3ZF6c6OtMdC6Y76w4uVX0QNMrVRBh6a+fCocx77Hp3Q8HyakiAKh5RM3dS9OUk rLbcsr43EA/DQGnVN8a7Zt7OWr5FFJAN/Eh3spRhI6dHfxdvS75vlizeP2assm03fNwm NjPnafyE7zUejngXe65jjCyijnu/+OiRggEdOwFtGL3Rlg8OPVf3m/wCIg0Ily+fDnBY ccuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687787226; x=1690379226; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3ajgNyIwWVcjYzMwm3DqnghOvwsLRw6qD3CZhsNi77c=; b=RUzORhH2T4VUgQUVL/kTwpKv2IgpWyXU5TKil9hI6xpXDpPTFm2XM7C7HObVKMhx55 IrDFHtT7HFarNNtIbjVg53aOcGVrn5Gs+pCvBnLWNhyJuuy0G0/RNFXQLApIkuopfhYv xutKkkWNhATE6fauKccfeSILuTSM9EOOYABpFVVjYsDf3zi7qoM4AxdpOSw2KJCYHiaj NRJYOpXSHGkS2Vkm2/AQwlZb1o7leSUbd2yAMnIWvYlB9/4uwqgKKnPXqDrkLzj7KPTC MSjEXW4NfgMuAjln2QfEpQc4jPSHNs9Q8SN2xC+ttiZzm4+t+Ymf9vPVQTsT6LZNonkq F9Qg== X-Gm-Message-State: AC+VfDyZHrg4eGYKtav+o8rshoetAycHaHkW0OUEebOvR2tNmyQfFvzD DCyuthKTPHgMHu53bJrx46Wzaw== X-Received: by 2002:a05:6512:31c8:b0:4f9:5d34:44b1 with SMTP id j8-20020a05651231c800b004f95d3444b1mr10794636lfe.2.1687787226112; Mon, 26 Jun 2023 06:47:06 -0700 (PDT) Received: from [10.44.2.5] ([81.246.10.41]) by smtp.gmail.com with ESMTPSA id o16-20020a1c7510000000b003f9b155b148sm10720189wmc.34.2023.06.26.06.47.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 26 Jun 2023 06:47:05 -0700 (PDT) Message-ID: <5791ec06-7174-9ae5-4fe4-6969ed110165@tessares.net> Date: Mon, 26 Jun 2023 15:47:00 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH net-next] tools: Fix MSG_SPLICE_PAGES build error in trace tools Content-Language: en-GB To: David Howells , netdev@vger.kernel.org Cc: Arnaldo Carvalho de Melo , David Miller , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jens Axboe , Matthew Wilcox , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, linux-next@vger.kernel.org, linux-kernel@vger.kernel.org References: <3065880.1687785614@warthog.procyon.org.uk> From: Matthieu Baerts In-Reply-To: <3065880.1687785614@warthog.procyon.org.uk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,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 Hi David, Thank you for the patch! On 26/06/2023 15:20, David Howells wrote: > The following error is being seen the perf tools because they have their > own copies of a lot of kernel headers: > > 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); > | ^~~~~~~~~~ > > Fix this by (1) adding MSG_SPLICE_PAGES to > tools/perf/trace/beauty/include/linux/socket.h - which looks like it ought > to work, but doesn't Commit 58277f502f42 ("perf trace beauty: Add script to autogenerate socket families table") seems to suggest this file is only used by tools/perf/trace/beauty/socket.sh script (and later by sockaddr.sh) but not by msg_flags.c. If I'm not mistaken, it is then not required to modify this file to fix the issue you mention. But it is still needed to modify it to avoid another warning: Warning: Kernel ABI header at 'tools/perf/trace/beauty/include/linux/socket.h' differs from latest version at 'include/linux/socket.h' diff -u tools/perf/trace/beauty/include/linux/socket.h include/linux/socket.h So another issue. When checking the differences between the two files, I see there are still also other modifications to import, e.g. it looks like you also added MSG_INTERNAL_SENDMSG_FLAGS macro in socket.h. Do you plan to fix that too? It might be clearer to have all these modifications of tools/perf/trace/beauty/include/linux/socket.h in a separated commit as it is fixing a different issue but that's a detail. As long as we can have perf compiling without issues when using the net-next tree :) Cheers, Matt -- Tessares | Belgium | Hybrid Access Solutions www.tessares.net